Log file rotation

Scott J. Henson scotth at csee.wvu.edu
Wed Aug 30 01:41:30 UTC 2006


Damien Hull wrote:
> 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.
<snip>
> Can someone tell me what's going on here? Again, I want /var/log/mail to 
> rotate once a week.
> 

Try /etc/logrotate.d/postfix.

-- 
Scott Henson
LCSEE Systems Staff
WVU MAE Undergraduate
Ubuntu User





More information about the ubuntu-users mailing list