Hello, maillist/group restrictions are not working for me.
I have UCS 4.3-2 errata291 with Kopano as application.
I try to send email with Kopano web mail client
cat /etc/postfix/master.cf
...
listfilter unix - n n - 30 spawn user=listfilter argv=/usr/share/univention-mail-postfix/listfilter.py
-b dc=domain,dc=localnet
cat /etc/postfix/main.cf | grep listfil
smtpd_recipient_restrictions = check_policy_service unix:private/listfilter,
Test group or test mailst created. with mail address. with restriction to send to it only for Domain Users or only for special user. But then it enabled - nobody can send emails to this group.
Recipient address rejected: Access denied for not authenticated sender to restricted list all@domain.com; from=<testuser@domain.com>; to=<all@domain.com>;
with debug:
Nov 7 09:39:46 mail listfilter[7545]: listfilter: attrib={'reverse_client_name': 'localhost', 'ccert_pubkey_fingerprint': '', 'ccert_subject': '', 'sasl_sender': '', 'protocol_state': 'RCPT', 'encryption_protocol': '', 'ccert_issuer': '', 'client_address': '127.0.0.1', 'size': '0', 'protocol_name': 'ESMTP', 'client_name': 'localhost', 'policy_context': '', 'helo_name': 'mail.domain.localnet', 'etrn_domain': '', 'instance': '1c71.5be2a4d2.24ca7.0', 'encryption_keysize': '0', 'encryption_cipher': '', 'ccert_fingerprint': '', 'recipient_count': '0', 'client_port': '40946', 'queue_id': '', 'sasl_method': '', 'recipient': 'all@domain.com', 'sasl_username': '', 'stress': '', 'sender': 'testuser@domain.com', 'request': 'smtpd_access_policy'}
Nov 7 09:39:46 mail listfilter[7545]: listfilter: allowed_user_dns=['uid=testuser,cn=users,dc=domain,dc=localnet'] allowed_group_dns=[]
Nov 7 09:39:46 mail listfilter[7545]: listfilter: action=REJECT Access denied for not authenticated sender to restricted list all@domain.com