Bug 28692 - Make mailAlternativeAddress available for group objects
Summary: Make mailAlternativeAddress available for group objects
Status: REOPENED
Alias: None
Product: UCS
Classification: Unclassified
Component: Mail
Version: UCS 5.0
Hardware: Other Linux
: P3 enhancement
Target Milestone: ---
Assignee: Mail maintainers
QA Contact:
URL:
Keywords:
: 48411 (view as bug list)
Depends on: 27871 45205
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-04 11:48 CEST by Felix Botner
Modified: 2025-07-23 15:14 CEST (History)
13 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.023
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID: 273443
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-10-04 11:48:26 CEST
+++ This bug was initially created as a clone of Bug #27871 +++

<http://forum.univention.de/viewtopic.php?f=48&t=1882>

Es gab bereits einige Anfragen zu alternativen Mailadressen an Gruppen. Derzeit
gibt unser Schema das nicht her:

(In reply to comment #0 bug11254)
> > für das Abbilden alternativer Mailadressen an Gruppen kann das
> > mailAlternativeAddress Attribut nicht werwendet werden. Dies ist Teil der
> > Objektklasse univentionMail welche das Attribut "uid" Voraussetzt.
> > Sie sollten daher ein eigenes Attribut in einer Schema-Datei definieren und
> > dieses verwenden.
> > ...

Ich denke es wäre gut das in einem ersten Schritt entsprechend anzupassen
sodass Integrationen wie OX und Zarafa das verwenden können. Ggf. will man dass
dann auch in den Standard UCS Mailstack integrieren.


Das Schema wurde angepasst. Damit man das in UCS direkt verwenden kann, müsste noch das UDM Modul, UMC und das Mail-LDAP mapping angepasst werden.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2015-06-05 10:51:15 CEST
This has been requested again via
http://forum.univention.de/viewtopic.php?f=11&t=4057&p=14792

Currently the LDAP scheme support mailAlternativeAddress at LDAP objects of type univentionGroup, but the attribute is not respected by postfix.

univention-mail-postfix/conffiles/etc/postfix/ldap.groups.d/10_base currently uses the following LDAP filter:

query_filter = (&(mailPrimaryAddress=%s)(objectclass=posixGroup))

It may be sufficient to change it to

query_filter = \
 (&(objectclass=posixGroup)(|(mailPrimaryAddress=%s)(mailAlternativeAddress=%s)))
Comment 2 Jens Thorp-Hansen univentionstaff 2015-06-29 08:31:17 CEST
Has been requested again at: http://forum.univention.de/viewtopic.php?f=11&t=4057&p=14895#p14895

> man sollte den BUG auch um mailAlternativeAddress für Mail-Verteilerlisten 
> (Domain -> Mail) erweitern oder externe Ziel-Mailadressen für Mail-Gruppen 
> implementieren um alle Anwendungsfälle abzudecken. Aktuell sind in Mailgruppen
> nur interne Mail-User als Mitglieder zulässig. Hier könnte man ev. mit den 
> kürzlich ausgegliederten Zarafa Kontakten arbeiten.
Comment 3 Erik Damrose univentionstaff 2015-11-23 15:09:48 CET
Requested again: http://forum.univention.de/viewtopic.php?f=67&t=4195&p=16477#p16477
Comment 4 Stefan Gohmann univentionstaff 2019-01-03 07:22:26 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Comment 5 Daniel Tröder univentionstaff 2019-01-04 12:08:18 CET
Regularly requested by customers.
Comment 6 Florian Best univentionstaff 2021-05-03 21:23:38 CEST
*** Bug 48411 has been marked as a duplicate of this bug. ***
Comment 7 Robert Heyer univentionstaff 2024-09-19 08:03:05 CEST
Requested bei customer 2149 (zit-sh).
Comment 8 Tim Breidenbach univentionstaff 2024-10-09 16:21:57 CEST
requested bei customer 273443
Comment 9 Tim Breidenbach univentionstaff 2025-02-13 12:57:21 CET
Workaround: add a custom extended attribute in a joinscript:

----
# mailAlternativeAddress
udm settings/extended_attribute create "$@" --ignore_exists \
	--position "cn=custom attributes,cn=univention,$ldap_base" \
	--set name="mailAlternativeAddress" \
	--set CLIName="mailAlternativeAddress" \
	--set shortDescription="mailAlternativeAddress" \
	--set longDescription="list of mailAlternativeAddresses" \
	--set translationShortDescription='"de_DE" "alternative Mailaddressen"' \
	--set translationLongDescription='"de_DE" "Liste der alternativen Mailaddressen"' \
	--set tabName="Mail" \
	--append module="groups/group" \
	--set tabPosition="2" \
	--set tabAdvanced="0" \
	--set syntax="emailAddressValidDomain" \
	--set default="" \
	--set multivalue=1 \
	--set valueRequired=0 \
	--set mayChange=1 \
	--set doNotSearch=0 \
	--set objectClass="univentionObject" \
	--set ldapMapping="mailAlternativeAddress" \
	--set deleteObjectClass=0 \
	--set overwriteTab=0 \
	--set disableUDMWeb=0 || die
Comment 10 Tim Breidenbach univentionstaff 2025-07-07 18:38:02 CEST
Requested again.
Comment 11 Ingo Steuwer univentionstaff 2025-07-23 15:14:40 CEST
(In reply to Tim Breidenbach from comment #9)
> Workaround: add a custom extended attribute in a joinscript:
> 
> ----
> # mailAlternativeAddress
> udm settings/extended_attribute create "$@" --ignore_exists \
> 	--position "cn=custom attributes,cn=univention,$ldap_base" \
> 	--set name="mailAlternativeAddress" \
> 	--set CLIName="mailAlternativeAddress" \
> 	--set shortDescription="mailAlternativeAddress" \
> 	--set longDescription="list of mailAlternativeAddresses" \
> 	--set translationShortDescription='"de_DE" "alternative Mailaddressen"' \
> 	--set translationLongDescription='"de_DE" "Liste der alternativen
> Mailaddressen"' \
> 	--set tabName="Mail" \
> 	--append module="groups/group" \
> 	--set tabPosition="2" \
> 	--set tabAdvanced="0" \
> 	--set syntax="emailAddressValidDomain" \
> 	--set default="" \
> 	--set multivalue=1 \
> 	--set valueRequired=0 \
> 	--set mayChange=1 \
> 	--set doNotSearch=0 \
> 	--set objectClass="univentionObject" \
> 	--set ldapMapping="mailAlternativeAddress" \
> 	--set deleteObjectClass=0 \
> 	--set overwriteTab=0 \
> 	--set disableUDMWeb=0 || die

This allows only to add information in UDM and LDAP, it does not do the needed configuration of the UCS mailstack.

If we add this in the product, we need to ensure the postfix configuration, too.