fixed writing to log for DNSBL check
This commit is contained in:
parent
d57821c329
commit
dbf15265ab
|
@ -608,17 +608,13 @@ acl_rcpt_to:
|
|||
condition = ${if >{$runrc}{6}{yes}{no}}
|
||||
log_message = Unexpected error in SPF check. spfquery returned $runrc
|
||||
|
||||
# check DNSbl(s) and if found add header for filtering to Junk
|
||||
# check DNSBL(s) and if found add header for filtering to Junk
|
||||
accept
|
||||
## condition = ${if and { \
|
||||
## { ! def:header_X-DNS-Whitelist: } \
|
||||
## { eq {$header_X-Whitelist-Flag:}{YES}} \
|
||||
## } {yes}{no}}
|
||||
condition = ${if !eq {$header_X-Whitelist-Flag:}{YES}}
|
||||
dnslists = zen.spamhaus.org
|
||||
log_message = $sender_host_address is listed in $dnslist_domain ${if def:dnslist_text {($dnslist_text)}}
|
||||
add_header = X-DNS-Blacklist: $sender_host_address is listed in $dnslist_domain ${if def:dnslist_text {($dnslist_text)}}
|
||||
add_header = X-Junk-Flag: YES
|
||||
!condition = ${if eq {$header_X-Whitelist-Flag:}{YES}}
|
||||
dnslists = zen.spamhaus.org
|
||||
logwrite = Warning: $sender_host_address is listed in DNSBL $dnslist_domain ${if def:dnslist_text {($dnslist_text)}}
|
||||
add_header = X-DNS-Blacklist: $sender_host_address is listed in $dnslist_domain ${if def:dnslist_text {($dnslist_text)}}
|
||||
add_header = X-Junk-Flag: YES
|
||||
|
||||
# will never get here if X-Whitelist-Flag or X-Junk-Flag (gets set with X-DNS-Blacklist) or X-DNS-Whitelist headers are set above
|
||||
.ifdef GREYLIST_ENABLED
|
||||
|
|
Loading…
Reference in New Issue
Block a user