DnsBlocklist.get defaults to being not strict, meaning that unresponsive blacklists should not be considered as having an entry.
In practice however, DNS errors happening while querying the blacklist will result in the entry being present. This likely comes from the not in slimta.util.dnsbl:
try:
DNSResolver.query(query, 'A').get()
except DNSError as exc:
if exc.errno == ARES_ENOTFOUND:
return False
logging.log_exception(__name__, query=query)
return not strict
else:
return True
DnsBlocklist.get
defaults to being not strict, meaning that unresponsive blacklists should not be considered as having an entry.In practice however, DNS errors happening while querying the blacklist will result in the entry being present. This likely comes from the
not
inslimta.util.dnsbl
: