MailScanner logs not rotating
Denis Beauchemin
Denis.Beauchemin at USHERBROOKE.CA
Fri Mar 12 20:09:58 GMT 2004
Le ven 12/03/2004 à 14:56, Edward L. Hannaford a écrit :
> 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
Edward, I believe you should prefix your log paths with "-" to lessen
the burden of writing to your disks.
>
> logrotate.conf:
> ...
> # system-specific logs may be also be configured here.
> /var/log/MailScanner/ms.log {
> daily
> rotate 14
> }
I also believe you should reload MS with:
postrotate
/sbin/service MailScanner reload 2> /dev/null || true
endscript
>
> 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
--
_
°v° Denis Beauchemin, analyste
/(_)\ Université de Sherbrooke, S.T.I.
^ ^ T: 819.821.8000x2252 F: 819.821.8045
More information about the MailScanner
mailing list