Univention Bugzilla – Bug 52807
univention-mail-postfix not installed
Last modified: 2021-05-25 16:00:12 CEST
Mail-test 47_mailForwardAddress_corner_cases does not work on the Backup node. postfix is not starting because /etc/postfix/main.cf is missing. univention-mail-postfix is not installed because of univention-role-server-common having a dependency on univention-mail-postfix | mail-transport-agent and mail-transport-agent is already installed probably because of the dependencies of Kopano.
"mail-transport-agent" is a virtual package that can be fulfilled by lots of MTAs, in UCS that is usually Postfix. Kopano should not be installed by default in UCS. What scenario is this bug about?
(In reply to Daniel Tröder from comment #1) > "mail-transport-agent" is a virtual package that can be fulfilled by lots of > MTAs, in UCS that is usually Postfix. > > Kopano should not be installed by default in UCS. > What scenario is this bug about? That was a bit misleadingly worded: When installing the backup directory node, the postfix is automatically installed as well (by which dependency we don't know yet). If now the package univention-server-role-common is installed, the required univention-mail-postfix for UCS systems is NOT installed as well. This is because univention-server-role-common has a dependency on "univention-mail-postfix | mail-transport-agent" and this dependency is already fulfilled by the installed postfix, so APT sees no reason to install univention-mail-postfix. My guess was that the alternative was included in the dependencies because of Kopano.
(In reply to Sönke Schwardt-Krummrich from comment #2) > My guess was that the alternative was included in the dependencies because > of Kopano. I still don't understand fully why Kopano is involved on a regular DC Backup? Kopano Konnect or Kopano OIDC? (Do we install the latter by default nowerdays?)
(In reply to Florian Best from comment #3) > (In reply to Sönke Schwardt-Krummrich from comment #2) > > My guess was that the alternative was included in the dependencies because > > of Kopano. > I still don't understand fully why Kopano is involved on a regular DC Backup? > Kopano Konnect or Kopano OIDC? (Do we install the latter by default > nowerdays?) I thought that the mail configuration of univention-mail-postfix is in conflict to the kopano groupware integration package since kopano configures components differently. But I dug into the old layers of our version control: the alternative dependency on univention-mail-postfix XOR mail-transport-agent was introduced with UCS 3.0 (bug 22433). Unfortunately, no reason for this change has been noted at the bug. I can't estimate right now what impact this will have (on AppCenter applications) if I remove the dependency to mail-transport-agent. I suspect that there is no real impact, since almost all applications are shipped in Docker containers. And UCS is designed to use postfix.
(In reply to Sönke Schwardt-Krummrich from comment #4) > I can't estimate right now what impact this will have (on AppCenter > applications) if I remove the dependency to mail-transport-agent. I suspect > that there is no real impact, since almost all applications are shipped in > Docker containers. > And UCS is designed to use postfix. I checked the Univention App Center and found only the app "kolab-enterprise" for UCS 4.0 & 4.1 that had a conflict: From 4.0/maintained/component/kolab-enterprise/all/Packages: > Package: kolab-mta > [...] > Conflicts: univention-mail-postfix, univention-mail-postfix-forward, univention-mail-postfix-kolab2 > Replaces: univention-mail-postfix, univention-mail-postfix-forward, univention-mail-postfix-kolab2 So I see no reason right now not to remove the alternative here. I have therefore now replaced it with a fixed dependency on univention-mail-postfix. [5.0-0 dd5edeaebb] Bug #52807: remove dependency alternative to mail-transport-agent Package: univention-server Version: 15.0.2-3A~5.0.0.202102231801 Branch: ucs_5.0-0
Daniel and I found no problematic app/package in our git or app center. No other feedback until now. The nightly test with UCS 5 was successful → I'll keep it as it is.
[5.0-0] f2b7297de5 Bug #52807: add entry to changelog.xml
Verified: * Code change * UCS/Package installation * Changelog
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".