From 6c5138bdba75b8ed15fc636c0a5a7909218b7d2e Mon Sep 17 00:00:00 2001 From: Naglfar Date: Mon, 7 Sep 2020 05:31:11 +0200 Subject: [PATCH] Postfix: specify lists of access restrictions --- roles/shell/files/etc/postfix/main.cf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/shell/files/etc/postfix/main.cf b/roles/shell/files/etc/postfix/main.cf index 7511375..b40383e 100644 --- a/roles/shell/files/etc/postfix/main.cf +++ b/roles/shell/files/etc/postfix/main.cf @@ -49,6 +49,10 @@ smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname + +# Don't accept mail from domains that don't exist. +smtpd_sender_restrictions = reject_unknown_sender_domain + #Allow ONLY authenticated users to send email smtpd_recipient_restrictions = permit_mynetworks,