[Dovecot] rotate logs ?

Timo Sirainen tss at iki.fi
Tue Jan 18 11:53:17 EET 2011


On 18.1.2011, at 11.41, Nick Lunt wrote:

> How about putting the something similar to the following in
> /etc/logrotate.conf (on redhat/centos)
> 
> /var/log/dovecot.log {
>        weekly
>        minsize 1M
>        create 0664 root postfix
>        rotate 4
> }

Be sure to send a SIGUSR1 signal to dovecot process too so that it reopens the logs. (With v2.0 you can use doveadm log reopen.)



More information about the dovecot mailing list