Logs as localhost

René Berber r.berber at computer.org
Sat Oct 14 05:46:40 IST 2006


Mike Tremaine wrote:

> I have not dug into this so sorry if this has come up but does anyone
> know why MailScanner would report as localhost to syslogd under Solaris 10?
> 
> Oct 13 19:55:41 localhost MailScanner[5322]: New Batch: Scanning 1
> messages, 1393 bytes

It's a known bug/feature on Solaris, there's even a bug report about this for
Sys::Syslog.

I have changed it to report in the normal format, just change a couple of lines
in MailScanner/lib/MailScanner/Log.pm :

line 39 -
use Sys::Syslog qw(:DEFAULT setlogsock);

line 71 -
        Sys::Syslog::setlogsock('native');

This on version 4.57.1, It's the same in 4.56.8 but not before (or 2 versions
before), the line number changed.
-- 
René Berber



More information about the MailScanner mailing list