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

2007-04-19 Thread Mart Pirita
Tere. I use: log_path = /var/log/maillog info_log_path = /var/log/maillog And into /var/log are: maillog maillog.1 maillog.2 maillog.3 Now when log files are rotating at 04:00 (maillog maillog.1) dovecot still keeps login into maillog.1 and not into maillog, where sendmail, etc writes

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

2007-04-19 Thread Troy Engel
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 21 As per the wiki, dovecot listens to SIGUSR1 to reopen a

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

2007-04-19 Thread Eric Rostetter
Quoting Mart Pirita [EMAIL PROTECTED]: log_path = /var/log/maillog info_log_path = /var/log/maillog Could be dangerous, unless all programs writing to /var/log/maillog use append mode (and it is on local disks, etc). Now when log files are rotating at 04:00 (maillog maillog.1) dovecot

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

2007-04-19 Thread Troy Engel
Mart Pirita wrote: syslog_facility = mail should do the trick and log all via syslog to /var/log/maillog? That's all you need on a modern Linux system, as the syslog facility 'mail' usually is sent to /var/log/maillog; this is the default for all SMTP/IMAP/POP3/etc. on any Red Hat