Univention Bugzilla – Full Text Bug Listing |
Summary: | policy check is not removed from postfix config upon dovecot removal | ||
---|---|---|---|
Product: | UCS | Reporter: | Sönke Schwardt-Krummrich <schwardt> |
Component: | Mail - Dovecot | Assignee: | Daniel Tröder <troeder> |
Status: | CLOSED FIXED | QA Contact: | Sönke Schwardt-Krummrich <schwardt> |
Severity: | normal | ||
Priority: | P5 | CC: | walkenhorst |
Version: | UCS 4.0 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=38553 | ||
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
Sönke Schwardt-Krummrich
2015-07-06 14:33:34 CEST
I switched from dovecot to cyrus via "univention-install univention-mail-cyrus" and the problem of the last command occured. I removed the UCR variable and restarted postfix → everything was fine. Then I switched back to dovecot: univention-install univention-mail-dovecot → "mail/postfix/smtpd/restrictions/recipient/80: check_policy_service inet:127.0.0.1:12340" was not set after reinstallation With commit 61811 (univention-mail-dovecot_0.0.0-47) the check_policy rule is removed during deinstallation and added upon reinstallation. (In reply to Daniel Tröder from comment #2) > With commit 61811 (univention-mail-dovecot_0.0.0-47) the check_policy rule > is removed during deinstallation and added upon reinstallation. → Correct! → [latest dovecot is installed] # ucr dump > ucr-before # univention-install univention-mail-cyrus # ucr dump > ucr-cyrus # univention-install univention-mail-dovecot # ucr dump > ucr-after # diff -u ucr-before ucr-after | wc -l 0 # diff -u ucr-bevore ucr-cyrus | egrep ^[+-] --- ucr-before 2015-07-04 11:41:28.020000000 +0200 +++ ucr-cyrus 2015-07-04 11:48:40.696000000 +0200 +mail/cyrus: yes -mail/dovecot: yes -mail/postfix/dovecot_sasl: yes -mail/postfix/smtpd/restrictions/recipient/80: check_policy_service inet:127.0.0.1:12340 -mail/postfix/virtual/transport: lmtp:unix:private/dovecot-lmtp -security/packetfilter/package/univention-mail-dovecot/tcp/110/all/en: POP3 -security/packetfilter/package/univention-mail-dovecot/tcp/110/all: ACCEPT -security/packetfilter/package/univention-mail-dovecot/tcp/143/all/en: IMAP -security/packetfilter/package/univention-mail-dovecot/tcp/143/all: ACCEPT -security/packetfilter/package/univention-mail-dovecot/tcp/4190/all/en: Sieve -security/packetfilter/package/univention-mail-dovecot/tcp/4190/all: ACCEPT -security/packetfilter/package/univention-mail-dovecot/tcp/993/all/en: IMAPS -security/packetfilter/package/univention-mail-dovecot/tcp/993/all: ACCEPT -security/packetfilter/package/univention-mail-dovecot/tcp/995/all/en: POP3S -security/packetfilter/package/univention-mail-dovecot/tcp/995/all: ACCEPT → memo: cyrus was installed on this system before, that's why the security variables for cyrus have not been created during this run. There seems to be some typos in the univention-mail-dovecot.(postinst|prerm) scripts: if [ -u $QUOTASTATUSIP ]; then → s/-u/-z/ ? if [ -u $QUOTASTATUSPORT ]; then → s/-u/-z/ ? if [ -u $QUOTASTATUSIP ]; then QUOTASTATUSIP="127.0.0.1"; fi → s/-u/-z/ ? if [ -u $QUOTASTATUSPORT ]; then QUOTASTATUSPORT="12340"; fi → s/-u/-z/ ? $ man sh | grep -- -u -u file True if file exists and its set user ID flag is set. $ → REOPENED (In reply to Sönke Schwardt-Krummrich from comment #4) > There seems to be some typos in the univention-mail-dovecot.(postinst|prerm) > scripts: > > → s/-u/-z/ ? Fixed in r61833. (In reply to Daniel Tröder from comment #5) > Fixed in r61833. → correct → VERIFIED |