diff --git a/templates/postfix/conf.d/transport_relay.j2 b/templates/postfix/conf.d/transport_relay.j2 index 9be0a76..4d24715 100644 --- a/templates/postfix/conf.d/transport_relay.j2 +++ b/templates/postfix/conf.d/transport_relay.j2 @@ -6,8 +6,10 @@ {% if domain.comment is defined %} # {{ domain.comment }} {% endif %} -{% if domain.relay_host is defined %} -{{ "%-50s %s" | format(domain.name, domain.relay_host) }} +{% if domain.relay is defined %} +{% for relay in domain.relay %} +{{ "%-60s %s" | format(relay.src | default( domain.name ), relay.dest) }} +{% endfor %} {% endif %} {% endif %} {% endfor %}