ansible-role-postfix/templates/postfix/conf.d/transport_relay.j2
2023-04-17 23:17:22 +02:00

15 lines
346 B
Django/Jinja

### {{ ansible_managed }}
{% if postfix_domains is defined %}
{% for domain in postfix_domains %}
{% if domain.type == "relay" %}
{% if domain.comment is defined %}
# {{ domain.comment }}
{% endif %}
{% if domain.relay_host is defined %}
{{ "%-50s %s" | format(domain.name, domain.relay_host) }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}