Bug 52807 - univention-mail-postfix not installed
univention-mail-postfix not installed
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Sönke Schwardt-Krummrich
Arvid Requate
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-02-17 14:21 CET by Jan Luttermann
Modified: 2021-05-25 16:00 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Development Internal
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 Jan Luttermann univentionstaff 2021-02-17 14:21:40 CET
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.
Comment 1 Daniel Tröder univentionstaff 2021-02-17 17:17:32 CET
"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?
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2021-02-18 17:09:17 CET
(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.
Comment 3 Florian Best univentionstaff 2021-02-18 20:12:22 CET
(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?)
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2021-02-19 17:32:11 CET
(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.
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2021-02-23 18:02:41 CET
(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
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2021-02-24 13:11:19 CET
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.
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2021-03-08 12:07:32 CET
[5.0-0] f2b7297de5 Bug #52807: add entry to changelog.xml
Comment 8 Arvid Requate univentionstaff 2021-03-08 12:08:41 CET
Verified:
* Code change
* UCS/Package installation
* Changelog
Comment 9 Florian Best univentionstaff 2021-05-25 16:00:12 CEST
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".