spamassassin dns whining

The Problem


Logs full of:

May 19 23:27:13 chain spamd[14249]: rules: failed to run NO_DNS_FOR_FROM RBL test, skipping:
May 19 23:27:13 chain spamd[14249]:  (oops, no id at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 172, <GEN1854> line 99.
May 19 23:27:13 chain spamd[14249]: )
May 19 23:27:13 chain spamd[14249]: dns: sendto() failed: Connection refused at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 374, <GEN1854> line 99.
May 19 23:27:15 chain last message repeated 5 times
May 19 23:27:15 chain spamd[14249]: rules: failed to run __RFC_IGNORANT_ENVFROM RBL test, skipping:
May 19 23:27:15 chain spamd[14249]:  (oops, no id at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 172, <GEN1854> line 99.
May 19 23:27:15 chain spamd[14249]: )
May 19 23:27:18 chain spamd[14538]: dns: sendto() failed: Connection refused at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 374, <GEN1866> line 84.
May 19 23:27:19 chain spamd[14538]: plugin: eval failed: oops, no key at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 173, <GEN1866> line 84.
May 19 23:27:19 chain spamd[14538]: dns: sendto() failed: Connection refused at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 374, <GEN1866> line 84.
May 19 23:27:19 chain spamd[14538]: dns: sendto() failed: Connection refused at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 374, <GEN1866> line 84.
May 19 23:27:19 chain spamd[14538]: rules: failed to run DNS_FROM_AHBL_RHSBL RBL test, skipping:
May 19 23:27:20 chain spamd[14538]:  (oops, no id at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 172, <GEN1866> line 84.
May 19 23:27:20 chain spamd[14538]: )
May 19 23:27:20 chain spamd[14538]: dns: sendto() failed: Connection refused at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 374, <GEN1866> line 84.
May 19 23:27:20 chain spamd[14538]: rules: failed to run NO_DNS_FOR_FROM RBL test, skipping:
May 19 23:27:21 chain spamd[14538]:  (oops, no id at /usr/share/perl5/Mail/SpamAssassin/AsyncLoop.pm line 172, <GEN1866> line 84.
May 19 23:27:21 chain spamd[14538]: )

The Cause


The first line of /etc/resolv.conf was localhost (more precisely, 127.0.0.1) and bind had stopped after the last apt upgrade and not come back.

The Solution

Start bind on localhost; in my case
/etc/init.d/bind9 start

Comments


I shudder to think that spamassassin/spamd does this with any bad entry in /etc/resolv.conf. Yeesh. What whining.