Mail::SpamAssassin::Plugin::URIDNSBLSection: User Contributed Perl Documentation (3)Updated: 2004-08-27 |
Mail::SpamAssassin::Plugin::URIDNSBLSection: User Contributed Perl Documentation (3)Updated: 2004-08-27 |
This works by analysing message text and HTML for URLs, extracting the domain names from those, querying their NS records in DNS, resolving the hostnames used therein, and querying various DNS blocklists for those IP addresses. This is quite effective.
loadplugin Mail::SpamAssassin::Plugin::URIDNSBL uridnsbl URIBL_SBLXBL sbl-xbl.spamhaus.org. TXT
Example:
uridnsbl URIBL_SBLXBL sbl-xbl.spamhaus.org. TXT
header URIBL_SBLXBL eval:check_uridnsbl('URIBL_SBLXBL')
describe URIBL_SBLXBL Contains a URL listed in the SBL/XBL blocklist
An RHSBL zone is one where the domain name is looked up, as a string; e.g. a URI using the domain "foo.com" will cause a lookup of "foo.com.uriblzone.net". Note that hostnames are stripped from the domain used in the URIBL lookup, so the domain "foo.bar.com" will look up "bar.com.uriblzone.net", and "foo.bar.co.uk" will look up "bar.co.uk.uriblzone.net".
Example:
urirhsbl URIBL_RHSBL rhsbl.example.org. TXT
"subtest" is the sub-test to run against the returned data. The sub-test may either be an IPv4 dotted address for RHSBLs that return multiple A records, a non-negative decimal number to specify a bitmask for RHSBLs that return a single A record containing a bitmask of results, or (if none of the preceding options seem to fit) a regular expression.
Note that, as with "urirhsbl", you must also define a header-eval rule calling "check_uridnsbl()" to use this.
Example:
urirhssub URIBL_RHSBL_4 rhsbl.example.org. A 127.0.0.4 urirhssub URIBL_RHSBL_8 rhsbl.example.org. A 8