summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-10-15 10:25:02 +0200
committerJonas Smedegaard <dr@jones.dk>2014-10-15 10:25:02 +0200
commit0bc15aeb281e0ac31cf8579a9e4479b13508cdc3 (patch)
tree34ffee473f03b272e1fecc1c72135d37de3a702e /postfix
parent195fc65a15ff9406659445a8a522ed423c5b99fc (diff)
Tighten submission options, based on <http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL>.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh
index 5501c46..2cb7d6d 100755
--- a/postfix/postfix.sh
+++ b/postfix/postfix.sh
@@ -434,7 +434,10 @@ submission inet n - n - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
+ -o smtpd_sasl_local_domain=$mydomain
-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
EOF
addoroverwritewithindents $tempdir/master.cf '^pickup\h' << EOF
pickup fifo n - - 60 1 pickup