From 24f10af6d6e16b75fc77cf4538033839058748ec Mon Sep 17 00:00:00 2001 From: Jon Lockwood Date: Sat, 19 Feb 2022 09:00:10 +0930 Subject: [PATCH] feat(postfix): prevent anonymous users on submission Users are required to login to send an E-Mail. Prevented anonymous user access MR !9 --- dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 7a79d89..929af81 100644 --- a/dockerfile +++ b/dockerfile @@ -205,7 +205,8 @@ RUN postconf -e "maillog_file=/var/log/postfix.log" \ # RCPT TO restrictions && postconf -e "smtpd_recipient_restrictions=permit_mynetworks,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_destination,check_policy_service,unix:private/policyd-spf,check_policy_service unix:private/quota,permit_auth_destination,reject" \ # RCPT TO restrictions - && postconf -e "smtpd_relay_restrictions=reject_non_fqdn_recipient,permit_auth_destination,reject" + && postconf -e "smtpd_relay_restrictions=reject_non_fqdn_recipient,permit_auth_destination,reject" \ + && postconf -e "smtpd_sasl_security_options = noanonymous" EXPOSE 25 587 993 4190