Skip to content
Snippets Groups Projects

New flexible configuration features for postfix

Merged Lars Beckers requested to merge ext-1 into master
2 files
+ 18
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -12,5 +12,22 @@
@@ -12,5 +12,22 @@
#
#
{% for net in postfix_network_access %}
{% for net in postfix_network_access %}
 
{% if 'comment' in net %}
 
{{ net.comment|comment('plain', prefix='', postfix='') }}
 
{% endif %}
 
{% if 'cidr' in net %}
{{ net.cidr }} {{ net.action|default('dunno') }}
{{ net.cidr }} {{ net.action|default('dunno') }}
 
{% endif %}
 
{% if 'mx' in net %}
 
{{ net.mx|comment('plain', prefix='', postfix='') }}
 
{% for mx in q('dig', net.mx, 'qtype=MX') %}
 
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=A') %}
 
{{ addr }} {{ net.action|default('dunno') }}
 
{% endfor %}
 
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=AAAA') %}
 
{{ addr }} {{ net.action|default('dunno') }}
 
{% endfor %}
 
{% endfor %}
 
{% endif %}
 
{% endfor %}
{% endfor %}
Loading