forked from ISTI-ansible-roles/ansible-roles
Refine the smtpd relay restrictions options.
This commit is contained in:
parent
7f7743b683
commit
133f7e9d98
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue