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

postfix: add memcached support for postscreen

parent 26471b68
Branches
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
- postfix - postfix
- postfix-pcre - postfix-pcre
- postfix-cdb - postfix-cdb
- memcached
tags: tags:
- postfix - postfix
- mail - mail
...@@ -24,9 +25,10 @@ ...@@ -24,9 +25,10 @@
- mail - mail
- name: ensure templated config is present - name: ensure templated config is present
template: src=templates/{{ item }} dest=/etc/postfix/main.cf template: src=templates/{{ item }}.j2 dest=/etc/postfix/{{ item }}
with_items: with_items:
- main.cf.j2 - main.cf
- postscreen_cache
notify: notify:
- restart postfix - restart postfix
tags: tags:
......
...@@ -115,3 +115,5 @@ postscreen_bare_newline_enable = yes ...@@ -115,3 +115,5 @@ postscreen_bare_newline_enable = yes
# default: postscreen_bare_newline_action = ignore # default: postscreen_bare_newline_action = ignore
postscreen_bare_newline_action = drop postscreen_bare_newline_action = drop
# #
postscreen_cache_map = memcache:/etc/postfix/postscreen_cache
proxy_write_maps = proxy:btree:/var/lib/postfix/postscreen_cache
# Django : 2014-11-07 postscreen-cache Konfigurationsdatei
# #
#
{% for partner in groups['mail'] %}
{% if partner != ansible_hostname %}
memcache = inet::{{hostvars[partner]["tinc_vpnip"]}}11211
{% endif %}
{% endfor %}
backup = proxy:btree:/var/lib/postfix/postscreen_cache
key_format = postscreen:%s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment