SIGPIPE log problem

Stephe Campbell campbell at CNPAPERS.COM
Fri Dec 19 13:55:33 GMT 2003


Thank you very much, Mr. Field. That seemed to fix it without me finding a
way to break anything else (as far as I have determined).

Steve Campbell
campbell at cnpapers.com
Charleston Newspapers

----- Original Message -----
From: "Julian Field" <mailscanner at ECS.SOTON.AC.UK>
To: <MAILSCANNER at JISCMAIL.AC.UK>
Sent: Friday, December 19, 2003 3:49 AM
Subject: Re: SIGPIPE log problem


> 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