summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-01-26 16:56:57 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-01-26 16:56:57 -0500
commitab9e25ffbffa1f685223ee819a7fc9ce3f04677a (patch)
tree98f8ff6932fe32f48ce1458eaadae779b06dc713
parente8f52cebf81d7f1e4202111efd95f74d4b4c088d (diff)
close #248
-rwxr-xr-xemailwiz.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index afb5c24..69fe185 100755
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -93,8 +93,9 @@ postconf -e 'smtpd_sasl_auth_enable = yes'
postconf -e 'smtpd_sasl_type = dovecot'
postconf -e 'smtpd_sasl_path = private/auth'
-# Sender and recipient restrictions
+# Sender, relay and recipient restrictions
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unknown_recipient_domain'
+postconf -e 'smtpd_relay_restrictions = permit_sasl_authenticated, reject_unauth_destination'
# NOTE: the trailing slash here, or for any directory name in the home_mailbox
# command, is necessary as it distinguishes a maildir (which is the actual