Refine the smtpd relay restrictions options.

This commit is contained in:
Andrea Dell'Amico 2019-05-08 18:35:58 +02:00
parent 7f7743b683
commit 133f7e9d98
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ smtp_sasl_security_options = {{ postfix_smtp_sasl_security_options }}
smtp_sasl_tls_security_options = {{ postfix_smtp_sasl_tls_security_options }}
smtp_sasl_mechanism_filter = {{ postfix_smtp_sasl_mechanism_filter }}
{% if ansible_distribution_major_version >= '18' %}
smtpd_relay_restrictions = permit_sasl_authenticated, reject
smtpd_relay_restrictions = permit_mynetworks, defer_unauth_destination
{% endif %}
{% endif %}
{% if postfix_relay_server %}