Univention Bugzilla – Bug 39054
Test sender restrictions for mailing lists
Last modified: 2023-03-25 06:55:34 CET
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.
*** Bug 19443 has been marked as a duplicate of this bug. ***
A new script with the name "36_sender_restrictions_for_mailing_lists" 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. r63140.
63460: fix test 63461: merge to 4.1
For this bug is no separate QA needed.