From 78abfca2b91090c3f1ccd3a4a9968385cecded41 Mon Sep 17 00:00:00 2001 From: nd Date: Sun, 23 Sep 2018 20:51:29 +0200 Subject: [PATCH] no longer open relay for submission ... --- templates/master.cf.j2 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/master.cf.j2 b/templates/master.cf.j2 index d0d0ea1..36909cc 100644 --- a/templates/master.cf.j2 +++ b/templates/master.cf.j2 @@ -16,17 +16,17 @@ smtp inet n - y - - smtpd #tlsproxy unix - - y - 0 tlsproxy {% if "submission" in postfix and postfix.submission %} submission inet n - y - - smtpd + -o smtpd_relay_restrictions=permit_sasl_authenticated,reject + -o smtpd_tls_security_level=encrypt + -o syslog_name=postfix/submission + -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 milter_macro_daemon_name=ORIGINATING {% endif %} -# -o syslog_name=postfix/submission -# -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 #smtps inet n - y - - smtpd # -o syslog_name=postfix/smtps # -o smtpd_tls_wrappermode=yes