Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
communication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
communication
Commits
55fae33c
Commit
55fae33c
authored
7 years ago
by
Hinrikus Wolf
Browse files
Options
Downloads
Patches
Plain Diff
postfix: add memcached support for postscreen
parent
26471b68
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
postfix/tasks/main.yml
+4
-2
4 additions, 2 deletions
postfix/tasks/main.yml
postfix/templates/main.cf.j2
+2
-0
2 additions, 0 deletions
postfix/templates/main.cf.j2
postfix/templates/postscreen_cache.j2
+12
-0
12 additions, 0 deletions
postfix/templates/postscreen_cache.j2
with
18 additions
and
2 deletions
postfix/tasks/main.yml
+
4
−
2
View file @
55fae33c
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
postfix/templates/main.cf.j2
+
2
−
0
View file @
55fae33c
...
...
@@ -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
This diff is collapsed.
Click to expand it.
postfix/templates/postscreen_cache.j2
0 → 100644
+
12
−
0
View file @
55fae33c
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment