Logrotate and MailScanner

Steen, Glenn Glenn.Steen at AP1.SE
Tue Jan 11 09:37:42 GMT 2005


The logging of mail-related entries to a maillog file is usually not
done directly by each program (sendmail, MailScanner ...), but
rather by the syslogd daemon. So the "resposible program" that need
be informed the file has changed is syslogd. So you'd need an entry
to handle all "syslogds files", and in that have a
  postrotate
    /usr/bin/killall -HUP syslogd #
  endscript
... or similar.
man syslogd syslog.conf
.... might be good reading;)
(Many, if not most systems come with an entry for syslogd already
configured)

-- Glenn

> -----Original Message-----
> From: MailScanner mailing list 
> [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf Of Mister PO
> Sent: den 11 januari 2005 10:02
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Logrotate and MailScanner
> 
> 
> Hello all,
> 
> My Mailscanner RedHat 9 Linux server logs its activity in the
> /var/log/maillog file.
> 
> I have added the following section to /etc/logrotate.conf to 
> purge logs daily :
> 
> /var/log/maillog {
> daily
> create
> rotate 3
> }
> 
> but my log file is still growing and logrotate doesn't do its job.
> 
> Do I need stop and start MailScanner to help logrotate do its job ?
> 
> I know there is a postrotate instruction, but is there prerotate one ?
> 
> Thanks in advance for your help,
> 
> PO.
> 
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
> 
> Support MailScanner development - buy the book off the website!
> 

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list