summaryrefslogtreecommitdiffstats
path: root/roles/MX/templates/etc/postfix/access-list.cidr.j2
blob: bd6e3d8ec369bbdac44ca643846e27592b24d3f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
########################################################################
# Access list, see cidr_table(5)
#
# {{ ansible_managed }}
# Do NOT edit this file directly!

{% if ipsec_subnet is defined %}
{{ ipsec_subnet }} permit
{% endif %}

{% for ip in lookup('pipe', 'dig +short outgoing.fripost.org A').splitlines() | sort -%}
{{ ip }}/32 permit
{% endfor %}
{% for ip in lookup('pipe', 'dig +short outgoing.fripost.org AAAA').splitlines() | sort -%}
{{ ip }}/128 permit
{% endfor %}