[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] old maillog, where?
- Subject: Re: [cobalt-developers] old maillog, where?
- From: "Jens-Peter Otto" <jp.otto@xxxxxxxxxxxxxxx>
- Date: Sun May 6 23:54:02 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
On 07 May 2001 07:46:18 -0400, Robert Brownback wrote:
> > - are the old logfiles stored somewhere? (no, mail.log in the sites logdirectory
doesn't
> > help)
> > - if not, what do I have to put (presumably into /etc/logrotate.d/syslog) to keep the
last
> > thirty days of log?
>
> The current mail log is located at /var/log/maillog. Archived logs are
> /var/log/maillog.1, /var/log/maillog.2, etc.. unless you have
> compression set (I'm not sure what the default is because I always
> modify /etc/logrotate.conf to compress log files). If compress is
> uncommented in /etc/logrotate.conf it would be /var/log/maillog.1.gz,
> /var/log/maillog.2.gz, etc.
there is one archive, maillog.1.gz. That however covers only yesterday.
> If you need to view a compressed log file then run gzip (man gzip) on
> the file to decompress it.
that's not necessary, since "less" does it automatically
> The number of logs kept are set in /etc/logrotate.conf, the default
> being 'rotate 4' meaning the last four weeks plus the current week's
> log.
My logrotate.conf states "weekly" , I just changed the default "rotate 1" to "4".
It seems however, that there is some other program (or config-file) responsible for
maintaining the maillog, since my maillog definitely contains only one day.