ansible-role-postfix/templates/postfix/conf.d/sender_checks.j2
phil 8c79f8b687 Use Ansible defaults to insert comments
Enable vscodium code highlighting for some files
2024-03-27 17:39:16 +01:00

20 lines
530 B
Django/Jinja

{{ ansible_managed | comment }}
{% if postfix_sender_checks is defined %}
{% for sender in postfix_sender_checks %}
{% if sender.comment is defined %}
# {{ sender.comment }}
{% endif %}
{{ "%-50s %s" | format(sender.client, sender.state) }}
{% endfor %}
{% endif %}
# Blocked Domains
{% for domain in postfix_blocked_domains %}
{{ "%-50s %s" | format(domain, "REJECT No spammers") }}
{% endfor %}
# Blocked Sender
{% for sender in postfix_blocked_senders %}
{{ "%-50s %s" | format(sender, "REJECT No spammers") }}
{% endfor %}