Re: logrotate and postfix

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Brown
Date:  
To: plug-discuss
Subject: Re: logrotate and postfix
>>By default, postfix logs using the LOG_MAIL syslog facility. And probably
>>your syslogd's syslog.conf defines where those mail logs are saved to.
>>
>>Look in your logrotate configs for "mail".


> I looked in /etc/logrotate.d and there is no config named mail and I
> also looked in /etc/logrotate.conf and there is no mention of mail.


RH defaults to using the Syslog facility for logging mail and so uses the syslog
logrotate.d script to actually rotate them.

> The goal is to keep 1 years worth of mail and to nightly rotate the mail
> logs and to name the file according to the date.


You can modify the syslog script in /etc/logrotate.d to do the latter. I don't
know how you would check and delete actual mail that is 1 year or older.
Probably with a perl script that can deal with the mbox format.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss