Bug 38478

Summary: Separate Dovecot logs from Postfix logs
Product: UCS Reporter: Daniel Tröder <troeder>
Component: Mail - DovecotAssignee: Daniel Tröder <troeder>
Status: CLOSED FIXED QA Contact: Sönke Schwardt-Krummrich <schwardt>
Severity: normal    
Priority: P5 CC: birkefeld, schwardt, walkenhorst
Version: UCS 4.0   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=38328
https://forge.univention.org/bugzilla/show_bug.cgi?id=38525
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 34839    

Description Daniel Tröder univentionstaff 2015-05-06 20:01:07 CEST
Send Dovecots log to dovecot.log.
Comment 1 Daniel Tröder univentionstaff 2015-05-12 23:19:33 CEST
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.
Comment 2 Daniel Tröder univentionstaff 2015-06-17 13:06:05 CEST
Commit 61318 adds a UCRV mail/dovecot/logging/ldap_debug_level to change the LDAP library debug level.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2015-07-03 12:52:19 CEST
/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
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2015-07-03 13:05:18 CEST
(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
Comment 5 Janek Walkenhorst univentionstaff 2015-07-09 18:13:44 CEST
<http://errata.univention.de/ucs/4.0/237.html>