Call of 'check_sender_access' and 'check_recipient_access' already with 'smtpd_client_restrictions' before querying blacklists.

This commit is contained in:
Christoph 2024-05-11 16:03:36 +02:00
parent 397c6304e8
commit 520a1c115d

View File

@ -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 <<EOF > /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
# -