spamhaus / spamassassin-dqs

Spamhaus code for the Spamassassin plugin. See https://docs.spamhaustech.com/40-real-world-usage/SpamAssassin/000-intro.html
Apache License 2.0
54 stars 15 forks source link

Consistently use $self->{'main'}->{'registryboundaries'}->uri_to_domain where appropriate #38

Closed robertmathews closed 6 months ago

robertmathews commented 3 years ago

Fix these problems:

The code does lookups against ZRD and DBL for subdomains rather than the domain name itself, causing unnecessary extra queries.

In addition, the code compares subdomains to $skip_domains, instead of comparing the domain name. This results in unnecessary ZRD and DBL queries for "sub.example.com..." even if example.com is in skip_domains.

(This is a replacement for https://github.com/spamhaus/spamassassin-dqs/pull/31, in which I wrongly included an additional change.)