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
419c1726
Commit
419c1726
authored
7 years ago
by
Hinrikus Wolf
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
postfix/tasks/main.yml
+1
-1
1 addition, 1 deletion
postfix/tasks/main.yml
postfix/templates/master.cf.j2
+10
-1
10 additions, 1 deletion
postfix/templates/master.cf.j2
with
11 additions
and
2 deletions
postfix/tasks/main.yml
+
1
−
1
View file @
419c1726
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
postfix/
fil
es/master.cf
→
postfix/
templat
es/master.cf
.j2
+
10
−
1
View file @
419c1726
...
@@ -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 %}
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