Re: logrotate and postfix

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: logrotate and postfix
On Fri, 2 Jul 2004 wrote:

> When I look in /etc/logroate.d I do not seek a postfix logrotate config
> file, I do see a base-config file though is that what posfix logs will be
> rotated according to?


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 want to keep a years worth of logs and have them rotated nightly and
> then named by the date they are rotated, what is the best way to do this?


Maybe something like:

/var/log/mail.log {
  rotate 365
  daily
  postrotate
    /sbin/killall -HUP syslogd
  endscript
}


I don't think logrotate can name if with a custom filename.


Jeremy C. Reed

                 BSD News, BSD tutorials, BSD links
                http://www.bsdnewsletter.com/


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