From e14f57b40e66ba3bf3ea4a4642963f86159e2aa2 Mon Sep 17 00:00:00 2001 From: Morre Date: Sat, 26 Sep 2020 14:54:59 +0200 Subject: [PATCH] =?UTF-8?q?add=20mua=5F=E2=80=A6=5Frestrictions=20for=20su?= =?UTF-8?q?bmission?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/main.cf.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 index 398ce1f..c344720 100644 --- a/templates/main.cf.j2 +++ b/templates/main.cf.j2 @@ -82,6 +82,19 @@ smtpd_recipient_restrictions = permit_mynetworks, {% endif -%} permit +mua_helo_restrictions = permit_mynetworks, + permit_sasl_authenticated, + reject_invalid_helo_hostname, + reject_non_fqdn_helo_hostname + +mua_sender_restrictions = reject_non_fqdn_sender, + reject_unknown_sender_domain, + permit_mynetworks, + permit_sasl_authenticated + +mua_client_restrictions = permit_sasl_authenticated, + reject + {% if ("mailbox_transport" in postfix and postfix.mailbox_transport == "dovecot") or postfix.ldap.enable %}