diff --git a/templates/postfix/conf.d/smtp_sasl_auth_password.j2 b/templates/postfix/conf.d/smtp_sasl_auth_password.j2 index 74db908..61ba331 100644 --- a/templates/postfix/conf.d/smtp_sasl_auth_password.j2 +++ b/templates/postfix/conf.d/smtp_sasl_auth_password.j2 @@ -1,5 +1,5 @@ #{{ ansible_managed }} -{% if postfix_smtp_sasl_auth is defined %} +{% if postfix_smtp_sasl_auth is defined and postfix_smtp_sasl_auth %} {{ "%-50s %s:%s" | format(postfix_smtp_sasl_auth_relay, postfix_smtp_sasl_auth_user, postfix_smtp_sasl_auth_password) }} {% endif %}