Hello, I have a curious phenomenon. Dovecot logs normally to /var/log/maillog. If I restart my server, dovecot loggs to /var/log/audit/audit.log. If I restart dovecot, dovecot loggs to /var/log/maillog again. And I think, wenn logrotate is restarting, dovecot logs to audit.log. But I don't know why. Any Ideas? greetings Ralf
On Mon, 2009-02-09 at 14:55 +0100, Ralf Heidenreich wrote:> Hello, > > I have a curious phenomenon. > Dovecot logs normally to /var/log/maillog. > If I restart my server, dovecot loggs to /var/log/audit/audit.log. > If I restart dovecot, dovecot loggs to /var/log/maillog again. > And I think, wenn logrotate is restarting, dovecot logs to audit.log. > But I don't know why. > Any Ideas?By default Dovecot logs to syslog. Maybe your syslog configuration changes after boot? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090209/bb989fa9/attachment-0002.bin>
Hello, here is my dovecot.conf ------snip---------- log_path = /var/log/maillog info_log_path = /var/log/maillog -------snip------------- Is it possible, than logrotate rotates the maillog, and dovecot wants to write to it, if the maillog is not available at the moment, dovecot writes to audit.log? I don't know. Have you any ideas? greetings ralf Timo Sirainen schrieb:> On Mon, 2009-02-09 at 14:55 +0100, Ralf Heidenreich wrote: >> Hello, >> >> I have a curious phenomenon. >> Dovecot logs normally to /var/log/maillog. >> If I restart my server, dovecot loggs to /var/log/audit/audit.log. >> If I restart dovecot, dovecot loggs to /var/log/maillog again. >> And I think, wenn logrotate is restarting, dovecot logs to audit.log. >> But I don't know why. >> Any Ideas? > > By default Dovecot logs to syslog. Maybe your syslog configuration > changes after boot? >