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

26 lines
655 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 %}
2023-05-17 21:33:06 +02:00
{% if postfix_transport_relay_domains is defined %}
{% for domain in postfix_transport_relay_domains %}
{% if domain.comment is defined %}
# {{ domain.comment }}
{% endif %}
2023-05-17 21:44:45 +02:00
{{ "%-60s %s" | format(domain.name, domain.relay) }}
2023-05-17 21:33:06 +02:00
{% endfor %}
{% endif %}