huge /var/log/exim files

Jez Hancock jez.hancock at munk.nu
Wed Aug 6 09:07:36 PDT 2003


On Wed, Aug 06, 2003 at 04:50:36PM +0100, John Ekins wrote:
> 
> -- 
> On Wed, 6 Aug 2003 11:42:27 -0400 (EDT)
> Steve Hovey <shovey at buffnet.net> wrote:
> 
> -> 
> -> I do
> -> 
> -> cat /dev/null > mainlog
> -> 
> -> etc
> 
> Or how about exicyclog? It installed as part of exim. It is the "more
> subtle" way.
Or have exim write to dated logfiles:

log_file_path = /var/log/exim/%s.%D.log
(in /usr/local/etc/exim/configure)

ie:

[17:05:30] root at users /home# ls -l /var/log/exim/
<snip>
-rw-r-----  1 mailnull  mail  101766 Aug  5 23:59 main.20030805.log
-rw-r-----  1 mailnull  mail  126424 Aug  6 17:02 main.20030806.log

That way you can just remove the older logfiles (once you've backed up
first of course!).

-- 
Jez

http://www.munk.nu/


More information about the freebsd-questions mailing list