Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
communication
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
20
Issues
20
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
infra
ansible-shared
communication
Commits
7921b993
Commit
7921b993
authored
Jan 26, 2020
by
Lars Beckers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postfix: sort postscreen access entries
parent
976a6f65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
postfix/templates/postscreen_access.cidr.j2
postfix/templates/postscreen_access.cidr.j2
+3
-3
No files found.
postfix/templates/postscreen_access.cidr.j2
View file @
7921b993
...
...
@@ -20,11 +20,11 @@
{% 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') %}
{% for mx in q('dig', net.mx, 'qtype=MX')
|sort
%}
{% for addr in q('dig', mx.split(' ', maxsplit=1)[-1], 'qtype=A')
|sort
%}
{{ addr }} {{ net.action|default('dunno') }}
{% 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') }}
{% endfor %}
{% endfor %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment