From cc5db13ee2ad6aea2fe9da6c6c4a3da09873b445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s?= Date: Sat, 7 Oct 2023 18:42:22 -0400 Subject: [PATCH] Add smtp recipient and relay restrictions for postfix 3 --- setup/etc/postfix/main.cf.issabel | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/etc/postfix/main.cf.issabel b/setup/etc/postfix/main.cf.issabel index bc68f1e..8635132 100755 --- a/setup/etc/postfix/main.cf.issabel +++ b/setup/etc/postfix/main.cf.issabel @@ -675,3 +675,7 @@ readme_directory = /usr/share/doc/postfix-2.5.6/README_FILES # inet_protocols = all virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp + +smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination + +smtpd_relay_restrictions = permit_mynetworks, reject