ansible-role-postfix/templates/postfix/conf.d/transport_relay.j2

21 lines
536 B
Text
Raw Normal View History

2023-03-20 20:01:04 +01:00
### {{ ansible_managed }}
2023-03-24 19:40:10 +01:00
#{% if for domains postfix_transport_relay is defined %}
#{% for transport in postfix_transport_relay %}
#{% if transport.comment is defined %}
#{{ transport.comment }}
#{% endif %}
#{{ "%-50s %s" | format(transport.destination, transport.relay) }}
#{% endfor %}
#{% endif %}
{% for domain in posfix_domains %}
{% if domain.type == "relay" %}
{% if domain.comment is defined %}
comment: {{ domain.comment }}
2023-03-20 20:01:04 +01:00
{% endif %}
2023-03-24 19:40:10 +01:00
{{ "%-50s %s" | format(domain.name, domain.relay_host) }}
2023-03-20 20:01:04 +01:00
{% endif %}
2023-03-24 19:40:10 +01:00
{% endfor %}