Fix a conditional.

This commit is contained in:
Andrea Dell'Amico 2020-09-28 14:13:40 +02:00
parent 2c2f874e97
commit 5517833232
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ mail_owner = postfix
# other configuration parameters.
#
myhostname = {{ ansible_fqdn }}
{% if postfix_use_domain_name is defined %}
{% if postfix_use_domain_name is defined and postfix_use_domain_name %}
{% elif domain_name is defined %}
mydomain = {{ domain_name }}
{% else %}
@ -131,7 +131,7 @@ proxy_interfaces = {% for proxy_int in postfix_proxy_interfaces %}{{ proxy_int }
#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
{% if postfix_use_domain_name is defined %}
{% if postfix_use_domain_name is defined and postfix_use_domain_name %}
{% elif domain_name is defined %}
mydestination = {{ ansible_fqdn }}, localhost, {{ domain_name }}
{% else %}