On Fri, 2 Jul 2004
elemint@theriver.com 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 -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss