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

postfix: cleanup smtpd configuration options

parent 63701a03
No related branches found
No related tags found
1 merge request!16Minimal Viable FSMPI Deployment
......@@ -9,48 +9,40 @@
# (yes) (yes) (no) (never) (100)
# ==========================================================================
{% if postfix_enable_postscreen and not postfix_satellite_only %}
smtp inet n - y - 1 postscreen
{% else %}
{% if postfix_satellite_only %}
smtp inet n - y - - smtpd
{% endif %}
{% if not postfix_satellite_only %}
{% if postfix_enable_postscreen %}
smtp inet n - y - 1 postscreen
smtpd pass - - y - - smtpd
{% if postfix_content_filter %}
-o content_filter={{ postfix_content_filter }}
{% endif %}
dnsblog unix - - y - 0 dnsblog
tlsproxy unix - - y - 0 tlsproxy
{% else %}
smtp inet n - y - - smtpd
{% endif %}
{% if postfix_enable_submission %}
submission inet n - y - - smtpd
-o smtpd_sasl_security_options=noanonymous
-o smtpd_sasl_local_domain=$myhostname
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-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 syslog_name=postfix/submission
-o milter_macro_daemon_name=ORIGINATING
-o smtpd_tls_security_level=encrypt
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
{% if postfix_content_filter %}
-o content_filter={{ postfix_content_filter }}
{% endif %}
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
{% endif %}
{% if postfix_enable_smtps %}
smtps inet n - y - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_reject_unlisted_recipient=no
-o smtpd_recipient_restrictions=
-o smtpd_relay_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
-o smtpd_tls_wrappermode=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
{% if postfix_content_filter %}
-o content_filter={{ postfix_content_filter }}
{% endif %}
{% endif %}
#628 inet n - y - - qmqpd
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment