Univention Bugzilla – Bug 38525
add dovecot logs to /etc/logrotate.d/ryslog
Last modified: 2015-07-09 18:14:23 CEST
Dovecot logs through (r)syslog. Please add it's files to the rotation config for rsyslog. --- /etc/logrotate.d/rsyslog 2015-05-12 23:17:48.441363179 +0200 +++ /etc/logrotate.d/rsyslog.dovecot 2015-05-12 23:17:41.893363081 +0200 @@ -35,6 +35,11 @@ /var/log/cron.log /var/log/debug /var/log/messages +/var/log/dovecot.err +/var/log/dovecot.lmtp +/var/log/dovecot.warn +/var/log/dovecot.info +/var/log/dovecot.log { #weekly daily
Surround with: if baseConfig.get("mail/dovecot/logging/log_path", "") == "syslog":
Commit: 60702 Adds dovelog log files to logrotation if mail/dovecot/logging/log_path is unset or "syslog" (the default).
(In reply to Daniel Tröder from comment #0) > Dovecot logs through (r)syslog. Please add it's files to the rotation config > for rsyslog. > > --- /etc/logrotate.d/rsyslog 2015-05-12 23:17:48.441363179 +0200 > +++ /etc/logrotate.d/rsyslog.dovecot 2015-05-12 23:17:41.893363081 +0200 > +/var/log/dovecot.err > +/var/log/dovecot.lmtp > +/var/log/dovecot.warn > +/var/log/dovecot.info > +/var/log/dovecot.log Just create a new file in /etc/logrotate.d/ instead of modifying an existing file!
You are right. Changed in 60704 (+60706).
Commit 61725 fixes a bug, where regular files would not be rotated, if they didn't exist at template install time.
OK (see also Bug #38478)
<http://errata.univention.de/ucs/4.0/237.html>