On Fri, 2006-10-27 at 13:52 +0200, Zbigniew Szalbot wrote:
Hello,
I am looking for some advice. I am trying to force dovecot to run to the same log as exim does. In dovecot.conf I put the exim log path /var/log/exim/mainlog. I restarted dovecot and the process worked fine.
However at midnight exim log file is rotated and since then dovecot stops logging to this log.
In syslog.conf I put: mail.* /var/log/exim/mainlog
And in newsyslog.conf I have:
/var/log/exim/mainlog mailnull:mail 640 60 * @T00 Z
I used to have an N flag next to Z but after reading the man I realized that its job is not to inform other processes about log creation.
My qeustion is how do I set up things that dovecot and exim happily write to one log without having to restart dovecot at midnight?
Instead of restarting you can send Dovecot SIGUSR1.
But since you're using syslog to log to exim anyway, why not just make Dovecot also log to syslog? It should log with mail facility by default, so I think it should have logged to the exact same log file by default already..