DNSWL spam reporting plugin for SpamAssassin

DNSWLh.pm

Adds DNSWL to the services which receive a report via the command "spamassassin --report" (or -r). (In addition to DCC, Pyzor, Razor, and SpamCop).

It is very important that you use SpamAssassin's internal_networks and trusted_relay settings to indicate any trusted relays, such as proxies or mailing list servers. Otherwise you'll report your trusted relays as spammers.

There is also a script which does not depend on SpamAssassin.

This requires creating an dnswl account and retrieving your reporting API token.

Put DNSWLh.pm in something like /usr/share/perl5/Mail/SpamAssassin/Plugin/

Add to your spamassassin config ($HOME/.spamassassin/user_prefs):

loadplugin Mail::SpamAssassin::Plugin::DNSWLh
dnswl_token yourtoken
internal_networks [IPs you control]
trusted_networks [IPs you have asked to relay mail to you, like proxies and mailing list servers]

trusted_networks docs: network test options, trust path.

I don't know if this internal / trusted networks handling is currently implimented on their end, you should probably use their web UI to provide that information.

Output tells you what IP address you reported, so you can verify your internal_networks / trusted_networks is configured correctly. Output looks like:
Successfully reported to DNSWL 188.116.52.141. Current trust level is:
Unlisted.
1 message(s) examined.

You can also check your DNSWL abuse report history.
( http//www.dnswl.org / Report Abuse, Report / History )
It also shows the domain we believe owns the reported IP. Requires logging in with the username and password created above. Unfortunately Unlisted IPs are not recorded, or shown on this page.

Status

This thing is quite solidly done. It has been tested. Updates are inactive because there are none left to make. - 2012-02-10

Change History

2010-02-26-23 Initial release.
2010-02-27-11 Also call report successful on unlisted IPs.
2010-02-28-20 State when reported email has trust level "Unlisted".
2010-03-02-10 Report the IP DNSWL thought was interesting.
2014-11-03-15 Handle IPv6. Handle DNSWL now recording unlisted IPs.
2019-03-02-14 Handle new DNSWL submission form.
2019-03-10-23 Handle DNSWL output for no DNSWL ID.


Sat Mar 2 14:21:28 EST 2019
Contact Darxus.