Fix allow sending emails from regexp aliases when spoof protection is enabled (#1032)
This commit is contained in:
parent
6a69bb192c
commit
a198ea8495
|
@ -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
|
sed -i 's|smtpd_sender_restrictions =|smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,|' /etc/postfix/main.cf
|
||||||
[ "$ENABLE_LDAP" = 1 ] \
|
[ "$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=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() {
|
function _setup_postfix_access_control() {
|
||||||
|
|
Loading…
Reference in New Issue