Skip to content
Snippets Groups Projects
Commit 7921b993 authored by Lars Beckers's avatar Lars Beckers
Browse files

postfix: sort postscreen access entries

parent 976a6f65
Branches
No related tags found
1 merge request!11Postfix TLS-Improvements
...@@ -20,11 +20,11 @@ ...@@ -20,11 +20,11 @@
{% endif %} {% endif %}
{% if 'mx' in net %} {% if 'mx' in net %}
{{ net.mx|comment('plain', prefix='', postfix='') }} {{ net.mx|comment('plain', prefix='', postfix='') }}
{% for mx in q('dig', net.mx, 'qtype=MX') %} {% for mx in q('dig', net.mx, 'qtype=MX')|sort %}
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=A') %} {% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=A')|sort %}
{{ addr }} {{ net.action|default('dunno') }} {{ addr }} {{ net.action|default('dunno') }}
{% endfor %} {% endfor %}
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=AAAA') %} {% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=AAAA')|sort %}
{{ addr }} {{ net.action|default('dunno') }} {{ addr }} {{ net.action|default('dunno') }}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment