[Dovecot] making dovecot and exim write to one log

Timo Sirainen tss at iki.fi
Thu Nov 2 21:23:12 UTC 2006


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..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061102/4638e00d/attachment.pgp 


More information about the dovecot mailing list