[Dovecot] rotate logs ?
Mark Alan
varia at e-healthexpert.org
Tue Jan 18 21:50:26 EET 2011
On Tue, 18 Jan 2011 11:53:17 +0200, Timo Sirainen <tss at iki.fi> wrote:
> 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.)
Would this do?
/var/log/dovecot.log {
weekly
rotate 4
create 600 root root
size 64k
compress
notifempty
postrotate
[ -f /var/run/dovecot/master.pid ] && kill -USR1 $(cat /var/run/dovecot/master.pid)
endscript
}
M.
More information about the dovecot
mailing list