filter out spamhaus 127.255.255.0/24 error codes

This commit is contained in:
Matthew Saunders Brown 2024-10-31 14:34:56 -07:00
parent d9427b677e
commit 2bf4ce46c1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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