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

make postscreen optional (default is activated)

parent 3a61c9f3
No related branches found
No related tags found
1 merge request!5make postscreen optional (default is activated)
...@@ -12,6 +12,8 @@ postfix_tls_key: /etc/ssl/private/privkey.pem ...@@ -12,6 +12,8 @@ postfix_tls_key: /etc/ssl/private/privkey.pem
postfix_tls_configuration: 'previous' postfix_tls_configuration: 'previous'
postfix_prefer_lmtp: false postfix_prefer_lmtp: false
postfix_enable_postscreen: true
postfix_enable_memcached: false postfix_enable_memcached: false
postfix_login_suffix: '' postfix_login_suffix: ''
postfix_dnsbl_sites: postfix_dnsbl_sites:
......
...@@ -78,6 +78,7 @@ virtual_transport = lmtp:unix:private/dovecot-lmtp ...@@ -78,6 +78,7 @@ virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_gid_maps = static:5000 virtual_gid_maps = static:5000
{% endif %} {% endif %}
{% if postfix_enable_postscreen %}
postscreen_access_list = permit_mynetworks postscreen_access_list = permit_mynetworks
cidr:/etc/postfix/postscreen_access.cidr cidr:/etc/postfix/postscreen_access.cidr
{% if postfix_enable_memcached %} {% if postfix_enable_memcached %}
...@@ -105,3 +106,4 @@ postscreen_dnsbl_sites = ...@@ -105,3 +106,4 @@ postscreen_dnsbl_sites =
{% for site in postfix_dnsbl_sites %} {% for site in postfix_dnsbl_sites %}
{{ site.name }}*{{ site.modifier|default(1) }} {{ site.name }}*{{ site.modifier|default(1) }}
{% endfor %} {% endfor %}
{% endif %}
...@@ -9,8 +9,11 @@ ...@@ -9,8 +9,11 @@
# (yes) (yes) (no) (never) (100) # (yes) (yes) (no) (never) (100)
# ========================================================================== # ==========================================================================
#smtp inet n - y - - smtpd {% if postfix_enable_postscreen %}
smtp inet n - y - 1 postscreen smtp inet n - y - 1 postscreen
{% else %}
smtp inet n - y - - smtpd
{% endif %}
smtpd pass - - y - - smtpd smtpd pass - - y - - smtpd
{% if postfix_content_filter %} {% if postfix_content_filter %}
-o content_filter={{ postfix_content_filter }} -o content_filter={{ postfix_content_filter }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment