From 133f7e9d9897f1d875dd5f9579ce1ce14a6f365d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 8 May 2019 18:35:58 +0200 Subject: [PATCH] Refine the smtpd relay restrictions options. --- postfix-relay/templates/main.cf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postfix-relay/templates/main.cf.j2 b/postfix-relay/templates/main.cf.j2 index a27e4979..1f254efc 100644 --- a/postfix-relay/templates/main.cf.j2 +++ b/postfix-relay/templates/main.cf.j2 @@ -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 %}