Bug 38478 - Separate Dovecot logs from Postfix logs
Separate Dovecot logs from Postfix logs
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail - Dovecot
UCS 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on:
Blocks: 34839
  Show dependency treegraph
 
Reported: 2015-05-06 20:01 CEST by Daniel Tröder
Modified: 2015-07-09 18:13 CEST (History)
3 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>