> 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.
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.
Jim
On Fri, 2004-07-02 at 11:38, Jeremy C. Reed wrote:
> 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
---------------------------------------------------
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