Fix the postfix relay configuration for Ubuntu >= 18.04.

This commit is contained in:
Andrea Dell'Amico 2019-05-08 17:31:06 +02:00
parent 01165b821e
commit 7f7743b683
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
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
{% endif %}
{% endif %}
{% if postfix_relay_server %}
smtpd_sasl_path = smtpd