Univention Bugzilla – Bug 39055
Test sender restrictions for groups
Last modified: 2023-03-25 06:48:45 CET
For LDAP groups with an assigned primary mail address, analogue sender restrictions may be defined. Please test them for LDAP groups too. +++ This bug was initially created as a clone of Bug #39054 +++ The UCS mail stack allows to define (very) simple sender restrictions for mailing lists. When creating/modifying a mailing list object in UDM, a list of users or a list of usergroups may be specified, that is allowed to send mails to that mailinglist. Mails from other senders should be rejected. For testing this feature, please set the UCR variable "mail/postfix/policy/listfiler=yes", restart postfix and create a new mailinglist with sender restrictions (second tab in UMC). Please perform tests with both types of senders: users and groups (groups: if a user with a primary mail address is part the specified sender group, the user should be allowed to send). Also check if mails are rejected if the permitted user uses one of its mailAlternativeAdresses.
A new script with the name "37_sender_restrictions_for_groups" is created to include the mentioned cases. The test currently fails because the mail sent by a sender which is not in the allowedEmailUsers list is sent normally where it should fail to be sent. test disabled for now, and commited without apptest tag. r63141.
Test activated for automatic testing with 4.0-3 with commit 63445.
For this bug is no separate QA needed.