Hello,
spamd is emitting loads of this in my msyslog:
Mar 13 07:54:31 type spamd[9954]: dns: sendto() to [127.0.0.1]:53 failed: Connection refused, no more alternatives
and DNS-based rules do not work.
Simply restarting spamassassin gets this error away. I indeed do not
have a DNS server on my laptop, and do not plan to.
What happens is that when spamassassin gets started at system bootup,
/etc/resolv.conf is empty, because I don't have wired network on my
laptop, and I only switch on the wireless network later, and thus
/etc/resolv.conf contains DNS servers only later. Since spamassassin
instantiates Net::DNS::Resolver only once, the late filling of
/etc/resolv.conf is not noticed by spamassassin, and thus the DNS
resolving errors mentioned above keep happening until I restart
spamassassin.
So I would say that spamassassin should somehow reload the resolver, to
re-read /etc/resolv.conf with the new DNS server information. This has
to be done even if /etc/resolv.conf was not empty, since a laptop could
move from one wifi network to another, with varying DNS configuration
parameters.
Samuel
That's a city in Bosnia. Right?
(Discussion in comp.os.linux.misc on the intuitiveness of commands.)