base/postfix: convert sender map to a regex so we can reject emails with two @'s in From.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-02-13 17:54:08 +00:00
parent ae91fb8d63
commit 8cd9d8750b
3 changed files with 3 additions and 3 deletions

View file

@ -696,5 +696,5 @@ local_recipient_maps = hash:/var/lib/mailman3/data/postfix_lmtp
relay_domains = hash:/var/lib/mailman3/data/postfix_domains
smtpd_sender_restrictions =
check_sender_access hash:/etc/postfix/sender_access
check_sender_access regex:/etc/postfix/sender_access
permit

View file

@ -739,4 +739,4 @@ smtp_tls_key_file = /etc/pki/tls/private/gateway.key
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
# Deny email from some domains
smtpd_sender_restrictions = hash:/etc/postfix/sender_access
smtpd_sender_restrictions = regex:/etc/postfix/sender_access

View file

@ -39,7 +39,7 @@
- base
- name: Create sender_access hash
command: postmap hash:/etc/postfix/sender_access
command: postmap regexp:/etc/postfix/sender_access
changed_when: false
when: postfix_group == "smtp-mm" or postfix_group == "mailman"
tags: