feat(postfix): prevent anonymous users on submission

Users are required to login to send an E-Mail. Prevented
anonymous user access

MR !9
This commit is contained in:
2022-02-19 09:00:10 +09:30
parent 274ade2d84
commit 24f10af6d6

View File

@ -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