From 95af021781aa8a1d36ad9cad81cdc94b689dd1d6 Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Fri, 25 Aug 2023 16:43:45 +0200 Subject: [PATCH] Fixed Handling of Spamhaus Blocklists using smtpd restrictions --- data/Dockerfiles/postfix/postfix.sh | 37 ++++++++++++++++++++++------- docker-compose.yml | 2 +- 2 files changed, 30 insertions(+), 9 deletions(-) diff --git a/data/Dockerfiles/postfix/postfix.sh b/data/Dockerfiles/postfix/postfix.sh index f981bff6..777efc1b 100755 --- a/data/Dockerfiles/postfix/postfix.sh +++ b/data/Dockerfiles/postfix/postfix.sh @@ -431,11 +431,22 @@ if [ ! -z "$DNSBL_CONFIG" ]; then echo -e "\e[32mDetected SPAMHAUS_DQS_KEY variable from mailcow.conf...\e[0m" echo -e "\e[33mUsing DQS Blocklists from Spamhaus!\e[0m" SPAMHAUS_DNSBL_CONFIG=$(cat < /opt/postfix/conf/dnsbl_reply.map @@ -461,10 +472,20 @@ EOF echo -e "\e[32mThe AS of your IP is NOT listed as a banned AS from Spamhaus!\e[0m" echo -e "\e[33mUsing the open Spamhaus blocklists.\e[0m" SPAMHAUS_DNSBL_CONFIG=$(cat <