From 2bf4ce46c16aea320b19eda93e0d4659238cbb0f Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 31 Oct 2024 14:34:56 -0700 Subject: [PATCH] filter out spamhaus 127.255.255.0/24 error codes --- etc/exim4/exim4-bookworm.conf | 2 +- etc/exim4/exim4-jammy.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/exim4/exim4-bookworm.conf b/etc/exim4/exim4-bookworm.conf index d8cbafd..2b63924 100644 --- a/etc/exim4/exim4-bookworm.conf +++ b/etc/exim4/exim4-bookworm.conf @@ -561,7 +561,7 @@ acl_rcpt_to: # check DNSBL(s) and if found add header for filtering to Junk accept !condition = ${if eq {$header_X-Whitelist-Flag:}{YES}} - dnslists = zen.spamhaus.org + dnslists = zen.spamhaus.org!&127.255.255.0 logwrite = Warning: $sender_host_address is listed in DNSBL $dnslist_domain ${if def:dnslist_text {($dnslist_text)}} add_header = :at_start_rfc:X-DNS-Blacklist: $sender_host_address is listed in $dnslist_domain ${if def:dnslist_text {($dnslist_text)}} set acl_m_junk = yes diff --git a/etc/exim4/exim4-jammy.conf b/etc/exim4/exim4-jammy.conf index f07fa9f..5799946 100644 --- a/etc/exim4/exim4-jammy.conf +++ b/etc/exim4/exim4-jammy.conf @@ -597,7 +597,7 @@ acl_rcpt_to: # check DNSBL(s) and if found add header for filtering to Junk accept !condition = ${if eq {$header_X-Whitelist-Flag:}{YES}} - dnslists = zen.spamhaus.org + dnslists = zen.spamhaus.org!&127.255.255.0 logwrite = Warning: $sender_host_address is listed in DNSBL $dnslist_domain ${if def:dnslist_text {($dnslist_text)}} add_header = :at_start_rfc:X-DNS-Blacklist: $sender_host_address is listed in $dnslist_domain ${if def:dnslist_text {($dnslist_text)}} set acl_m_junk = yes