Bug 38884 - Postfix configuration is broken if no IMAP server is installed
Postfix configuration is broken if no IMAP server is installed
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail - Dovecot
UCS 4.0
Other Linux
: P5 critical (vote)
: UCS 4.0-2-errata
Assigned To: Sönke Schwardt-Krummrich
Erik Damrose
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-10 10:59 CEST by Sönke Schwardt-Krummrich
Modified: 2015-07-10 11:48 CEST (History)
1 user (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 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>