Use Domain as default relay source

This commit is contained in:
phil 2023-04-17 23:53:55 +02:00
parent f32891c328
commit 3c419fd21f

View file

@ -6,8 +6,10 @@
{% if domain.comment is defined %} {% if domain.comment is defined %}
# {{ domain.comment }} # {{ domain.comment }}
{% endif %} {% endif %}
{% if domain.relay_host is defined %} {% if domain.relay is defined %}
{{ "%-50s %s" | format(domain.name, domain.relay_host) }} {% for relay in domain.relay %}
{{ "%-60s %s" | format(relay.src | default( domain.name ), relay.dest) }}
{% endfor %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}