Skip to content

Commit

Permalink
Fix allow sending emails from regexp aliases when spoof protection is…
Browse files Browse the repository at this point in the history
… enabled (#1032)
  • Loading branch information
Birkenstab authored and johansmitsnl committed Sep 12, 2018
1 parent 6a69bb1 commit a198ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/start-mailserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a198ea8

Please sign in to comment.