Univention Bugzilla – Bug 38478
Separate Dovecot logs from Postfix logs
Last modified: 2015-07-09 18:13:44 CEST
Send Dovecots log to dovecot.log.
Commits 60681 + 60682. Log settings for Dovecot are now very configurable with a low-noise default. Logging is done by default through (r)syslog. The Logrotate needs to be configured still → Bug #38525.
Commit 61318 adds a UCRV mail/dovecot/logging/ldap_debug_level to change the LDAP library debug level.
/etc/univention/templates/files/etc/logrotate.d/dovecot → via "if os.path.isfile(log_path)" is checked if the target log file exists → if the file does not exist (yet), no logrotation is performed until the UCR variable is set again (or a ucr commit is executed). → REOPEN Despite that, the logging into a custom logfile works as expected: # ucr set mail/dovecot/logging/log_path=/var/log/dovecot.self # invoke-rc.d dovecot restart # ls -la /var/log/dovecot.self -rw------- 1 root root 25471 Jul 3 12:46 /var/log/dovecot.self → OK Logrotation → OK Changing UCR variables to enable debug → OK
(In reply to Sönke Schwardt-Krummrich from comment #3) > /etc/univention/templates/files/etc/logrotate.d/dovecot > → via "if os.path.isfile(log_path)" is checked if the target log file exists > → if the file does not exist (yet), no logrotation is performed until the > UCR > variable is set again (or a ucr commit is executed). > → REOPEN Fixed via 38525 → back to VERIFIED
<http://errata.univention.de/ucs/4.0/237.html>