[Dovecot] Maillog rotates, but dovecot still writes logs into old logfile?

Troy Engel tengel at fluid.com
Thu Apr 19 20:41:54 EEST 2007

Mart Pirita wrote:
> The only solution I did found, is adding into /etc/logrotate.d/syslog 
> command to restart dovecot:
>    /etc/rc.d/init.d/dovecot restart >/dev/null 
> 2>&1                                                                 

As per the wiki, dovecot listens to SIGUSR1 to reopen a log. You want to 
simply use a command like:

   /bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2> 
/dev/null || true

See here:


Troy Engel | Systems Engineer
Fluid, Inc | http://www.fluid.com

More information about the dovecot mailing list