introduce config value to disable reject_sender_login_mismatch in postfix smtpd/submission
This commit is contained in:
parent
326d43c432
commit
9c2bac3e95
2 changed files with 3 additions and 2 deletions
|
@ -25,6 +25,7 @@
|
||||||
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
# postfix:
|
# postfix:
|
||||||
# overwrite_config: no
|
# overwrite_config: no
|
||||||
|
# reject_sender_login_mismatch: yes
|
||||||
# mynetworks: "10.0.0.0/24 [2a01:XXXX:XXXX:XXXX::]/64"
|
# mynetworks: "10.0.0.0/24 [2a01:XXXX:XXXX:XXXX::]/64"
|
||||||
# dovecot:
|
# dovecot:
|
||||||
# auth_default_realm: mymaindomain.org
|
# auth_default_realm: mymaindomain.org
|
||||||
|
|
|
@ -140,7 +140,7 @@ submission inet n - y - - smtpd
|
||||||
-o smtpd_sasl_path=private/auth
|
-o smtpd_sasl_path=private/auth
|
||||||
-o smtpd_sasl_security_options=noanonymous
|
-o smtpd_sasl_security_options=noanonymous
|
||||||
-o smtpd_sender_login_maps=pgsql:/etc/postfix/email_existence_check.cf
|
-o smtpd_sender_login_maps=pgsql:/etc/postfix/email_existence_check.cf
|
||||||
-o smtpd_sender_restrictions=reject_sender_login_mismatch
|
{% if mailserver.postfix.reject_sender_login_mismatch is not defined or mailserver.postfix.reject_sender_login_mismatch %} -o smtpd_sender_restrictions=reject_sender_login_mismatch
|
||||||
-o smtpd_sasl_local_domain=$myhostname
|
{% endif %} -o smtpd_sasl_local_domain=$myhostname
|
||||||
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
|
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
|
||||||
-o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject
|
-o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject
|
||||||
|
|
Loading…
Reference in a new issue