MailScanner logs not rotating

Edward L. Hannaford elhannaford at PSFINC.COM
Fri Mar 12 19:56:49 GMT 2004


I want to send MailScanner's logs to their own, daily rotated log.  I set up
my config files like this:

syslog.conf:
...
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages! ...
*.info;mail.none;authpriv.none;cron.none;local0.none    /var/log/messages
...
# Save MailScanner messages to their own log
local0.*                                        /var/log/MailScanner/ms.log

logrotate.conf:
...
# system-specific logs may be also be configured here.
/var/log/MailScanner/ms.log {
    daily
    rotate 14
}

MailScanner.conf:
...
# This is the syslog "facility" name that MailScanner uses. If you don't
# know what a syslog facility name is, then either don't change this value
# or else go and read "man syslog.conf". The default value of "mail" will
# cause the MailScanner logs to go into the same place as all your other
# mail logs.
Syslog Facility = local0

I found, however, over the last couple of days, that when ms.log get rotated
MailScanner logs continue to write to the old log (ms.log.1).  ms.log gets
created but remains empty.

Today I tried "service MailScanner restart" and the logs just stopped.
"service MailScanner status" claimed that MailScanner was running but no
logs were going anywhere.  I then issued "service MailScanner stop",
"service syslog restart", and "service MailScanner start" and the logs
started up again in their proper file (ms.log).

Is this a bug in syslog?  Has anybody else found it?  Is there a fix or
workaround?

-Ed



More information about the MailScanner mailing list