Tracking the wild mailscanner stats

Furnish, Trever G TGFurnish at HERFF-JONES.COM
Fri Aug 15 22:21:52 IST 2003


> -----Original Message-----
> From: Kevin Miller [mailto:Kevin_Miller at CI.JUNEAU.AK.US]
> Sent: Friday, August 15, 2003 3:31 PM
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Tracking the wild mailscanner stats
>
>
> The changes being, that I create a seperate stanza for
> /var/log/mail, set
> the rotate to 4 weeks, and take out the postrotate command.
> I'm assuming
> that the mail stanza will execute first, then the other, and
> the last thing
> done will be to reload syslog.  Is this in fact what will
> happen, or do I
> want the postrotate lines in the /var/log/mail stanza too?

The sharedscripts keyword doesn't make sense unless you have multiple log
files for that stanza, so you can take that out.  The syslog restart is I
think probably ... maybe ... ok i don't know I'm just guessing ... still a
good idea in the maillog stanza just in case something screwy happens that
causes maillog to get rotated but not the others, since otherwise syslog
will keep open the old file.  IE if logrotate runs out of space or dies
before restarting syslogd for in the postrotate step of the other log files,
then I would expect lsof -p <syslogpid> to still show the old (renamed) file
open instead of the one you want.  Small chance though and I may be
completely wrong.  Happens frequently. ;^)



More information about the MailScanner mailing list