From 520a1c115d0fa7ea590398543b8ad9a01498477a Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 11 May 2024 16:03:36 +0200 Subject: [PATCH] Call of 'check_sender_access' and 'check_recipient_access' already with 'smtpd_client_restrictions' before querying blacklists. --- install_postfix_advanced.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/install_postfix_advanced.sh b/install_postfix_advanced.sh index d89cec5..403313a 100755 --- a/install_postfix_advanced.sh +++ b/install_postfix_advanced.sh @@ -2308,6 +2308,10 @@ smtpd_client_restrictions = # Whitelist clients # check_client_access btree:/etc/postfix/client_whitelist + # White- / Blacklisting + # + check_sender_access btree:/etc/postfix/access_sender, + check_recipient_access btree:/etc/postfix/access_recipient, # RBL check - !! comment out if postcreens postscreen_dnsbl_sites is in use # Whitelist (configured at a.ns.oopen.de) # @@ -2784,6 +2788,31 @@ fi echononl " Create file \"access_sender\"" if [[ ! -f /etc/postfix/access_sender ]]; then cat < /etc/postfix/access_sender +# ----- +# /etc/postfix/sender_checks +# +# Restricts sender addresses this system accepts in MAIL FROM commands. +# +# Define the whitelist or blacklist with and OK or REJECT, +# followed by an optional answer text. +# +# +# Note: +# +# Checks from this file are already applied by 'smtpd_client_restrictions'! +# +# +# Example: +# +# example.com REJECT env. from addr any@example.com rejected +# .example.com REJECT env. from addr any@sub.example.com rejected +# user@example.com REJECT We don't want your email +# example2.com OK +# ----- + +# - Whitelist for sender adresses +# - + # - bekannte Virus/Spam Absener blocken # -