https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6518
Summary: Implement a general purpose Plugin::AskDNS, makes
Spamhaus DWL possible
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Plugins
AssignedTo: [email protected]
ReportedBy: [email protected]
Adding a new plugin AskDNS, which can implement Spamhaus DWL lookups.
It is a general purpose plugin implementing DNS lookups, where a
queried domain may depend on data provided by other plugins through
the existing tags mechanism.
It understands rules of the form:
askdns RULENAME domain [rr_type [subrule]]
where:
- domain is a template for assembling a full query domain name
(not just its zone name). The template may include any number of
tag names (none, one, or several), using the familiar _TAGNAME_
syntax as used in add_header rules. Specifying a tagname implies
dependencies: the assembled query will be launched immediately
when all the required tags become available.
A typical example is: _DKIMDOMAIN_._vouch.dwl.spamhaus.org
- rr_type is a DNS resource record type to be queried, typically
a TXT or A, but may be other type known to Net::DNS, such as
AAAA, PTR, NS, SPF, SRV, ... Missing rr_type implies A.
- optional subrule can be a regular expression, or a form already
familiar from a URIDNSBL plugin (IP address with or without a mask,
or a range). Absence of subrule accepts any positive response.
askdns rules are grouped by their dependencies and their queries are
launched as soon as all dependencies are met. Dns queries are grouped
by RR type and an expanded query domain, so only a single DNS query
is launched for all askdns rules which happen to evaluate to the
same rr type / domain pair.
If a tag value is a space-separated list (e.g. multiple signing
domains in a _DKIMDOMAIN_, when a message has multiple valid DKIM
signatures), then multiple queries are launched, each with one
tag value. Walking through all possible values is general and
works even with multiple tags in a template.
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.