You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Chris <cp...@embarqmail.com> on 2009/03/24 01:23:56 UTC
dns: sendto() failed: Connection refused
The whole error(s) read:
Mar 23 18:01:08 localhost spamd[3676]: dns: sendto() failed: Connection
refused
at /usr/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/DnsResolver.pm line
395, <GEN71> line 45.
Mar 23 18:01:08 localhost spamd[3676]: plugin: eval failed: oops, no key
at /usr/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/AsyncLoop.pm line
173, <GEN71> line 45.
Mar 23 18:01:09 localhost spamd[3676]: dns: sendto() failed: Connection
refused
at /usr/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/DnsResolver.pm line
395, <GEN71> line 45.
Mar 23 18:01:09 localhost spamd[3676]: rules: failed to run
NO_DNS_FOR_FROM RBL test, skipping:
Mar 23 18:01:10 localhost spamd[3676]: dns: sendto() failed: Connection
refused
at /usr/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/DnsResolver.pm line
395, <GEN71> line 45.
Mar 23 18:01:10 localhost spamd[3676]: rules: failed to run
DNS_FROM_OPENWHOIS RBL test, skipping:
Mar 23 18:04:01 localhost clamd[3996]:
cli_engine_set_str(CL_ENGINE_TMPDIR) failed: Invalid argument passed to
function
I caused this myself I believe but I'm wondering why. I'm having issues
getting named to work correctly in chroot configuration, it will run but
when started reports zone files not found even though they are where I
have them in the named.conf file. So, I stopped named running and went
back to the OpenDNS nameservers in my resolf.conf file. The outcome is
above. Can someone enlighten me as to why this happened since I had
named stop and was not using 127.0.0.1 as the local caching nameserver.
Also, if anyone could possibly lend me a hand with this running named
chrooted I'd appreciate it. Please contact me off list. After starting
named again all seems back to normal with SA.
Chris
--
KeyID 0xE372A7DA98E6705C
Re: dns: sendto() failed: Connection refused
Posted by Mark Martinec <Ma...@ijs.si>.
Chris,
> Mar 23 18:01:08 localhost spamd[3676]: dns: sendto() failed:
> Connection refused
> at /usr/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/DnsResolver.pm
> line 395, <GEN71> line 45.
man 2 sendto
[ECONNREFUSED] The socket received an ICMP destination
unreachable message from the last message sent. This typically
means that the receiver is not listening on the remote port.
Your DNS server is not reachable - either it is not running, or
is being blocked by a firewall, or your <chroot>/etc/resolv.conf
is misconfigured.
Mark
Re: dns: sendto() failed: Connection refused
Posted by Matt Kettler <mk...@verizon.net>.
Chris wrote:
> I caused this myself I believe but I'm wondering why. I'm having issues
> getting named to work correctly in chroot configuration, it will run but
> when started reports zone files not found even though they are where I
> have them in the named.conf file.
Are they in the path listed in named.conf or are they in
/<chrootdir>/<named.conf path>.
They need to be in the latter. ie: if named.conf says
/var/named/zones/zonefile.zone and you're chrooting to /var/named it
will actually try to read /var/named/var/named/zones/zonefile.zone,
because / has been replaced by /var/named.
> So, I stopped named running and went
> back to the OpenDNS nameservers in my resolf.conf file. The outcome is
> above. Can someone enlighten me as to why this happened since I had
> named stop and was not using 127.0.0.1 as the local caching nameserver.
>
Sounds like you have a firewall somewhere (local iptables/ipfw? or
perhaps a dedicated firewall device) that's refusing the traffic.
> Also, if anyone could possibly lend me a hand with this running named
> chrooted I'd appreciate it. Please contact me off list. After starting
> named again all seems back to normal with SA.
>
> Chris
>
>