Bug 38884

Summary: Postfix configuration is broken if no IMAP server is installed
Product: UCS Reporter: Sönke Schwardt-Krummrich <schwardt>
Component: Mail - DovecotAssignee: Sönke Schwardt-Krummrich <schwardt>
Status: CLOSED FIXED QA Contact: Erik Damrose <damrose>
Severity: critical    
Priority: P5 CC: walkenhorst
Version: UCS 4.0   
Target Milestone: UCS 4.0-2-errata   
Hardware: Other   
OS: Linux   
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:

Description Sönke Schwardt-Krummrich univentionstaff 2015-07-10 10:59:53 CEST
With latest errata update the postfix configuration is broken if no IMAP server is installed (mail/cyrus unset and mail/dovecot unset).

The message
"CONFIGURATION ERROR: please set either mail/cyrus=True or mail/dovecot=True and the other to False."
is printed directly to /etc/postfix/ldap.sharedfolderlocal which is no valid syntax for postfix.

Jul 10 10:14:52 XXX postfix/smtpd[6951]: fatal: /etc/postfix/ldap.sharedfolderlocal, line 17: missing '=' after attribute name: "CONFIGURATION ERROR: please set either mail/cyrus=True or mail/dovecot=True and the other to False."
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2015-07-10 11:14:12 CEST
The error message within the UCR template has been removed. If no UCR variable is set or mail/cyrus=yes then the cyrus ldap search filter is added to the template.
If mail/dovecot=yes, the dovecot search filter is added.

2015-07-10-univention-mail-postfix.yaml
univention-mail-postfix 9.0.3-1.254.201507101104
Comment 2 Erik Damrose univentionstaff 2015-07-10 11:37:35 CEST
OK: r62027 Print cyrus config by default, unless mail/dovecot is true
OK: After installing updated package, postfix config is correct and postfix is restarted
OK: yaml
Verified
Comment 3 Janek Walkenhorst univentionstaff 2015-07-10 11:48:53 CEST
<http://errata.univention.de/ucs/4.0/240.html>