SIGPIPE log problem
Julian Field
mailscanner at ecs.soton.ac.uk
Fri Dec 19 08:49:43 GMT 2003
At 20:39 18/12/2003, you wrote:
>I looked back through the mail I keep for MailScanner, and found numerous
>responses about "I get these also", but no real solution to the problem of
>the 'SIGPIPE received - trying new log socket' maillog entries.
>
>I am running MS 4.24-5 & SA 2.61 on a stock RH 7.3 box. Does anyone have a
>suggestion? I'm not ready to do anymore upgrades after yesterday, so MS 4.25
>will just have to wait if that's the answer.
Take a look in /usr/lib/MailScanner/MailScanner/Log.pm. Right at the bottom
you will find a "sub LogText". Replace that whole sub with this:
sub LogText {
my($logmessage, $level) = @_;
return unless $LogType eq 'syslog';
foreach(split /\n/,$logmessage) {
s/%/%%/g;
Sys::Syslog::syslog($level, $_);
}
}
1;
--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
More information about the MailScanner
mailing list