From a198ea8495f866eec1d276d502cd85ad4c40ca4a Mon Sep 17 00:00:00 2001 From: Birkenstab Date: Wed, 12 Sep 2018 18:55:13 +0200 Subject: [PATCH] Fix allow sending emails from regexp aliases when spoof protection is enabled (#1032) --- target/start-mailserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 9f305edd..84012933 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -658,7 +658,7 @@ function _setup_spoof_protection () { sed -i 's|smtpd_sender_restrictions =|smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,|' /etc/postfix/main.cf [ "$ENABLE_LDAP" = 1 ] \ && postconf -e "smtpd_sender_login_maps=ldap:/etc/postfix/ldap-users.cf ldap:/etc/postfix/ldap-aliases.cf ldap:/etc/postfix/ldap-groups.cf" \ - || postconf -e "smtpd_sender_login_maps=texthash:/etc/postfix/virtual, hash:/etc/aliases, pcre:/etc/postfix/maps/sender_login_maps.pcre" + || postconf -e "smtpd_sender_login_maps=texthash:/etc/postfix/virtual, hash:/etc/aliases, pcre:/etc/postfix/regexp, pcre:/etc/postfix/maps/sender_login_maps.pcre" } function _setup_postfix_access_control() {