Skip to content
Snippets Groups Projects
Commit 6050b72c authored by Lars Beckers's avatar Lars Beckers
Browse files

postfix: add fsmpi-specific daemon setup

parent 7de9fe08
No related branches found
No related tags found
1 merge request!16Minimal Viable FSMPI Deployment
...@@ -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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment