Commit 55fae33c authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

postfix: add memcached support for postscreen

parent 26471b68
......@@ -6,6 +6,7 @@
- postfix
- postfix-pcre
- postfix-cdb
- memcached
tags:
- postfix
- mail
......@@ -24,9 +25,10 @@
- mail
- 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:
- main.cf.j2
- main.cf
- postscreen_cache
notify:
- restart postfix
tags:
......
......@@ -115,3 +115,5 @@ postscreen_bare_newline_enable = yes
# default: postscreen_bare_newline_action = ignore
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment