diff --git a/templates/postfix/conf.d/canonical.j2 b/templates/postfix/conf.d/canonical.j2 index 9b105b9..ca003e5 100644 --- a/templates/postfix/conf.d/canonical.j2 +++ b/templates/postfix/conf.d/canonical.j2 @@ -1,7 +1,7 @@ ### {{ ansible_managed }} -{% if postfix_canonical_maps is defined %} -{% for map in postfix_canonical_maps %} +{% if postfix_canonical is defined %} +{% for map in postfix_canonical %} {{ "%-30s %s" | format(map.src, map.dest) }} {% endfor %} {% endif %} diff --git a/templates/postfix/conf.d/sender_canonical.j2 b/templates/postfix/conf.d/sender_canonical.j2 index e56566d..8c2cd0b 100644 --- a/templates/postfix/conf.d/sender_canonical.j2 +++ b/templates/postfix/conf.d/sender_canonical.j2 @@ -1,7 +1,7 @@ ### {{ ansible_managed }} -{% if postfix_sender_canonical_maps is defined %} -{% for map in postfix_sender_canonical_maps %} +{% if postfix_sender_canonical is defined %} +{% for map in postfix_sender_canonical %} {{ "%-30s %s" | format(map.src, map.dest) }} {% endfor %} {% endif %}