[Mailman-Users] size of log files

J C Lawrence claw at kanga.nu
Tue Apr 23 21:15:20 CEST 2002


On Tue, 23 Apr 2002 12:04:32 -0700 (PDT) 
Mark Moshe Kaye <jotd2k at yahoo.com> wrote:

> What is the best way to deal with log files that have become large,
> the bounce file in particular is huge.

logrotate package.

> If I rename it will mailman notice it is missing and recreate
> automatically or do I need to create an empty file.

It will recreate.

> Some advise would be appreciated on best practices for keeping these
> file sizes under control.

The logrotate conf I use:

/var/log/mailman/bounce {
        weekly
        missingok
        create 0664 list list
        rotate 4
        compress
        delaycompress
}

/var/log/mailman/digest {
        monthly
        missingok
        create 0664 list list
        rotate 4
        compress
        delaycompress
}

/var/log/mailman/error {
        weekly
        missingok
        create 0664 list list
        rotate 4
        compress
        delaycompress
}

/var/log/mailman/post {
        monthly
        missingok
        create 0664 list list
        rotate 12
        compress
        delaycompress
}

/var/log/mailman/smtp-failure {
        daily
        missingok
        create 0664 list list
        rotate 7
        compress
        delaycompress
}

/var/log/mailman/smtp {
        daily
        missingok
        create 0664 list list
        rotate 7
        compress
        delaycompress
}

/var/log/mailman/locks {
        daily
        missingok
        create 0664 list list
        rotate 7
        compress
        delaycompress
}

/var/log/mailman/fromusenet {
        daily
        missingok
        create 0664 list list
        rotate 7
        compress
        delaycompress
}

/var/log/mailman/qrunner {
        daily
        missingok
        create 0664 list list
        rotate 7
        compress
        delaycompress
}

/var/log/mailman/subscribe {
        monthly
        missingok
        create 0664 list list
        rotate 12
        compress
        delaycompress
}

/var/log/mailman/vette {
        weekly
        create 0664 list list
        rotate 4
        compress
        delaycompress
}


-- 
J C Lawrence                
---------(*)                Satan, oscillate my metallic sonatas. 
claw at kanga.nu               He lived as a devil, eh?		  
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.





More information about the Mailman-Users mailing list