Dovecot log files are not rotated
Dovecot needs a /etc/logrotate.d/dovecot file to rotate the logs, which
is currently missing, causing the dovecot log files to grow rather
large.
This may work for contents of dovecot logrotate file:
/var/log/dovecot*.log {
daily
missingok
copytruncate
rotate 7
compress
notifempty
sharedscripts
postrotate
if [ -f /var/run/dovecot/master.pid ]; then \
/etc/init.d/dovecot reload > /dev/null 2>&1 || true ; \
fi;
endscript
}
I’m testing the above to see if it works. Better ideas also accepted. :)
(from redmine: issue id 360, created on 2010-06-10, closed on 2010-06-16)
- Relations:
- blocks #359 (closed)
- Changesets:
- Revision 21efade3 on 2010-06-11T09:50:38Z:
main/dovecot: set localstatedir
ref #359
ref #360
also create a default config that works out of the box.
- Revision 7380979a on 2010-06-11T15:17:06Z:
main/dovecot: use logfile in default config and provide logrotate
fixes #360
- Revision 30389111 on 2010-06-16T11:48:08Z:
main/dovecot: use logfile in default config and provide logrotate
fixes #360