Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
communication
Commits
419c1726
Commit
419c1726
authored
May 16, 2018
by
Hinrikus Wolf
Browse files
change postfix s.t. a spamfilter can be plugged in
parent
a2583331
Changes
2
Hide whitespace changes
Inline
Side-by-side
postfix/tasks/main.yml
View file @
419c1726
...
...
@@ -15,7 +15,6 @@
copy
:
src=files/{{ item }} dest=/etc/postfix/
with_items
:
-
login_maps.pcre
-
master.cf
-
sender_login_map.hash
-
postscreen_whitelist
notify
:
...
...
@@ -27,6 +26,7 @@
-
name
:
ensure templated config is present
template
:
src=templates/{{ item }}.j2 dest=/etc/postfix/{{ item }}
with_items
:
-
master.cf
-
main.cf
-
postscreen_cache
notify
:
...
...
postfix/
fil
es/master.cf
→
postfix/
templat
es/master.cf
.j2
View file @
419c1726
...
...
@@ -14,6 +14,9 @@ dovecot unix - n n - - pipe
#smtp inet n - y - - smtpd
smtp inet n - y - 1 postscreen
smtpd pass - - y - - smtpd
{% if content_filter is defined %}
-o content_filter={{ content_filter }}
{% endif %}
dnsblog unix - - y - 0 dnsblog
tlsproxy unix - - y - 0 tlsproxy
submission inet n - y - - smtpd
...
...
@@ -23,6 +26,9 @@ submission inet n - y - - smtpd
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o smtpd_sender_restrictions=reject_sender_login_mismatch
-o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject
{% if content_filter is defined %}
-o content_filter={{ content_filter }}
{% endif %}
-o syslog_name=postfix/submission
# -o syslog_name=postfix/submission
# -o smtpd_tls_security_level=encrypt
...
...
@@ -130,4 +136,7 @@ scalemail-backend unix - n n - 2 pipe
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
{% if content_filter is defined %}
{{ content_filter }} {{ content_filter_arguments }}
{{ content_filter_command }}
{% endif %}
Write
Preview
Supports
Markdown
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