ansible-role-postfix/templates/postfix/conf.d/transport_relay.j2
2023-03-24 20:21:23 +01:00

12 lines
296 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 %}
{{ "%-50s %s" | format(domain.name, domain.relay_host) }}
{% endif %}
{% endfor %}
{% endif %}