Log file rotation

Damien Hull dhull at digitaloverload.net
Wed Aug 30 01:10:49 UTC 2006


I've got Ubuntu Dapper installed and configured as a mail server. I'm 
using Postfix as the MTA. My problem is with /var/log/mail.log. I would 
like to keep the log file for a week and then have it rotate. However, 
this isn't happening. It seems to be rotating when it wants to.

I've checked /etc/cron.weekly and sysklogd is there. I ran the command 
to list the files that will be rotated and mail.log is in the list.

I have a test server with the same setup. It's only a test server so it 
doesn't get any mail. The strange thing is that /var/log/mail rotates 
once a week. Not mid week or when ever it wants like our production server.

Can someone tell me what's going on here? Again, I want /var/log/mail to 
rotate once a week.




More information about the ubuntu-users mailing list