Ralf Heidenreich
2009-Feb-10 11:51 UTC
[Dovecot] [Fwd: Re: dovecot logs to audit.log not to maillog]
Hello, now I have done this: under http://wiki.dovecot.org/Logging?highlight=(logging) Rotating Logs is the following string ----------------------- /bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2> /dev/null || true ------------------------ This string I have insert in /etc/logrotate.d/syslog under the lines: postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true So Dovecot will be restarted, after the log rotates. I hope, the phenomenon is now solved. greetings ralf -------- Original-Nachricht -------- Betreff: Re: [Dovecot] dovecot logs to audit.log not to maillog Datum: Tue, 10 Feb 2009 09:07:26 +0100 Von: Ralf Heidenreich <ralf at lx-work.de> An: Timo Sirainen <tss at iki.fi>, dovecot at dovecot.org Referenzen: <499035E7.8090506 at lx-work.de> <1234228183.6132.134.camel at timo-desktop> 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? >