Skip to content
Snippets Groups Projects
Commit 419c1726 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

change postfix s.t. a spamfilter can be plugged in

parent a2583331
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
copy: src=files/{{ item }} dest=/etc/postfix/ copy: src=files/{{ item }} dest=/etc/postfix/
with_items: with_items:
- login_maps.pcre - login_maps.pcre
- master.cf
- sender_login_map.hash - sender_login_map.hash
- postscreen_whitelist - postscreen_whitelist
notify: notify:
...@@ -27,6 +26,7 @@ ...@@ -27,6 +26,7 @@
- name: ensure templated config is present - name: ensure templated config is present
template: src=templates/{{ item }}.j2 dest=/etc/postfix/{{ item }} template: src=templates/{{ item }}.j2 dest=/etc/postfix/{{ item }}
with_items: with_items:
- master.cf
- main.cf - main.cf
- postscreen_cache - postscreen_cache
notify: notify:
......
...@@ -14,6 +14,9 @@ dovecot unix - n n - - pipe ...@@ -14,6 +14,9 @@ dovecot unix - n n - - pipe
#smtp inet n - y - - smtpd #smtp inet n - y - - smtpd
smtp inet n - y - 1 postscreen smtp inet n - y - 1 postscreen
smtpd pass - - y - - smtpd smtpd pass - - y - - smtpd
{% if content_filter is defined %}
-o content_filter={{ content_filter }}
{% endif %}
dnsblog unix - - y - 0 dnsblog dnsblog unix - - y - 0 dnsblog
tlsproxy unix - - y - 0 tlsproxy tlsproxy unix - - y - 0 tlsproxy
submission inet n - y - - smtpd submission inet n - y - - smtpd
...@@ -23,6 +26,9 @@ submission inet n - y - - smtpd ...@@ -23,6 +26,9 @@ submission inet n - y - - smtpd
-o smtpd_client_restrictions=permit_sasl_authenticated,reject -o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o smtpd_sender_restrictions=reject_sender_login_mismatch -o smtpd_sender_restrictions=reject_sender_login_mismatch
-o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject -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 syslog_name=postfix/submission # -o syslog_name=postfix/submission
# -o smtpd_tls_security_level=encrypt # -o smtpd_tls_security_level=encrypt
...@@ -130,4 +136,7 @@ scalemail-backend unix - n n - 2 pipe ...@@ -130,4 +136,7 @@ scalemail-backend unix - n n - 2 pipe
mailman unix - n n - - pipe mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user} ${nexthop} ${user}
{% if content_filter is defined %}
{{ content_filter }} {{ content_filter_arguments }}
{{ content_filter_command }}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment