Spamassassin on OS X and URIDNSBL.pm errors

It seems the latest version of a Perl component required by Spamassassin refuses to install properly on OS X systems without force. Brutal, ruthless force.

The culprit, Net::DNS, has been recently upgraded to provide support for IPv6, but the ‘make’ script fails in the IPv6 tests, which prevents installation. Without this module, Spamassassin’s network tests universally fail, and you’ll find lines like this in its debug log:

Use of uninitialized value in exists at /Library/Perl/5.8.6/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 718.

To get back in action, be sure the dependencies listed in the README for Net::DNS have been satisfied, then simply run a force install for Net::DNS, like so (if you’re using CPAN):

cpan> install Test::More IO::Socket MIME::Base64 Digest::MD5 Digest::HMAC_MD5 Net::IP
cpan> force install Net::DNS

That’s it. Unless you’re running IPv6 nameservers, Net::DNS works just fine and your spam rejection percentage will improve dramatically.

Comments are closed.