blu.org  wiki

 « Return to Thread: how to limit maillog size

Re: how to limit maillog size

by Gregory Boyce-3 :: Rate this Message:

Reply to Author | View in Thread

On Wed, 30 Apr 2008, Dave Peters wrote:

> All,
>
> How can I limit maillog size so it can generate new
> one when it reaches the limited?
>
> Thanks.
>
> --Dave

In logrotate.d, you can specify the file size to rotate at with
something like: size +4096k

Of course, the configuration is only read when logrotate runs.  One some
systems that may be daily, so if you want it to rotate faster you'd need
to move the logrotate cron from /etc/cron.daily to /etc/cron.hourly.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
Discuss mailing list
Discuss@...
http://lists.blu.org/mailman/listinfo/discuss

 « Return to Thread: how to limit maillog size

LightInTheBox - Buy quality products at wholesale price