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
6050b72c
Commit
6050b72c
authored
4 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
postfix: add fsmpi-specific daemon setup
parent
7de9fe08
No related branches found
No related tags found
1 merge request
!16
Minimal Viable FSMPI Deployment
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
postfix/templates/master.cf.j2
+27
-2
27 additions, 2 deletions
postfix/templates/master.cf.j2
with
27 additions
and
2 deletions
postfix/templates/master.cf.j2
+
27
−
2
View file @
6050b72c
...
@@ -45,6 +45,18 @@ smtps inet n - y - - smtpd
...
@@ -45,6 +45,18 @@ smtps inet n - y - - smtpd
{% endif %}
{% endif %}
{% endif %}
{% endif %}
#628 inet n - y - - qmqpd
#628 inet n - y - - qmqpd
{% if postfix_fsmpi|default(false) and ansible_hostname == "mail" %}
2525 inet n - y - - smtpd
-o syslog_name=postfix/smtps-internal
-o milter_macro_daemon_name=ORIGINATING
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=no
-o smtpd_sender_login_maps=
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_recipient_restrictions=$2525_smtpd_recipient_restrictions
-o virtual_alias_domains=fsmpi.rwth-aachen.de
-o virtual_alias_maps=cdb:/etc/postfix/nullmailer_alias
{% endif %}
{% endif %}
{% endif %}
pickup unix n - y 60 1 pickup
pickup unix n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
cleanup unix n - y - 0 cleanup
...
@@ -61,7 +73,11 @@ proxymap unix - - n - - proxymap
...
@@ -61,7 +73,11 @@ proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - y - - smtp
smtp unix - - y - - smtp
relay unix - - y - - smtp
relay unix - - y - - smtp
{% if postfix_fsmpi|default(false) and ansible_hostname == "mail" %}
-o smtp_fallback_relay=
{% else %}
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
{% endif %}
showq unix n - y - - showq
showq unix n - y - - showq
error unix - - y - - error
error unix - - y - - error
retry unix - - y - - error
retry unix - - y - - error
...
@@ -94,13 +110,17 @@ policy-spf unix - n n - 0 spawn
...
@@ -94,13 +110,17 @@ policy-spf unix - n n - 0 spawn
{% if not postfix_satellite_only and postfix_enable_dovecot %}
{% if not postfix_satellite_only and postfix_enable_dovecot %}
dovecot unix - n n - - pipe
dovecot unix - n n - - pipe
{% if postfix_fsmpi|default(false) %}
flags=DRhu argv=/usr/lib/dovecot/deliver -d ${recipient}
{% else %}
flags=DRhu user=5001:5000 argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -a ${original_recipient} -d ${user}@${nexthop}
flags=DRhu user=5001:5000 argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -a ${original_recipient} -d ${user}@${nexthop}
{% endif %}
{% endif %}
{% if postfix_content_filter == 'spamassassin' %}
{% if postfix_content_filter == 'spamassassin' %}
spamassassin unix - n n - - pipe
spamassassin unix - n n - - pipe
user=debian-spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
user=debian-spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
{% endif %}
{% endif %}
{% endif %}
#maildrop unix - n n - - pipe
#maildrop unix - n n - - pipe
# flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
# flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
...
@@ -115,3 +135,8 @@ spamassassin unix - n n - - pipe
...
@@ -115,3 +135,8 @@ spamassassin unix - n n - - 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 postfix_fsmpi|default(false) and ansible_hostname == "lists" %}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
{% 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