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

17 lines
402 B
Text
Raw Normal View History

2023-03-20 20:01:04 +01:00
### {{ ansible_managed }}
{% if postfix_domains is defined %}
2023-03-24 20:12:26 +01:00
{% for domain in postfix_domains %}
2023-03-24 19:40:10 +01:00
{% if domain.type == "relay" %}
{% if domain.comment is defined %}
2023-03-24 20:12:26 +01:00
# {{ domain.comment }}
2023-03-20 20:01:04 +01:00
{% endif %}
2023-04-17 23:53:55 +02:00
{% if domain.relay is defined %}
{% for relay in domain.relay %}
{{ "%-60s %s" | format(relay.src | default( domain.name ), relay.dest) }}
{% endfor %}
2023-03-20 20:01:04 +01:00
{% endif %}
2023-04-17 23:17:22 +02:00
{% endif %}
2023-03-24 19:40:10 +01:00
{% endfor %}
{% endif %}