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

13 lines
296 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-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 %}
{% endif %}