[CentOS] logrotate /var/log/maillog

Thomas Antony

thomas at antony.eu
Fri Sep 21 11:06:06 UTC 2007


Hi,

I want to create a new log /var/log/maillog for postfix each day and so 
i created a new logrotate config for the log and removed it from 
/etc/logrotate.d/syslog.

~]# cat /etc/logrotate.d/maillog
/var/log/maillog {
      daily
      rotate 31
      start 1
      compress
      create 0600  root
      postrotate
      /etc/init.d/postfix reload > /dev/null
      endscript
      }

After /var/log/maillog has rotated, postfix doesn't log anything to the 
new log file till i restart syslog. It doesn't matter if i reload or 
restart postfix.
Is this a normal behaviour with this log file and if yes why?



Thomas



More information about the CentOS mailing list