Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

dns: sendto() failed:

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


rob at colorist

Oct 30, 2009, 8:55 AM

Post #1 of 4 (197 views)
Permalink
dns: sendto() failed:

Been running Spamassassin for a long time with no problems until a
recent update of various packages including perl (but no other
immediately perceptible relevant update) and now this error:

Oct 30 15:34:31 <hostname deleted> spamd[16264]: dns: sendto()
failed: Connection refused at /usr/lib/perl5/vendor_perl/5.8.8/Mail/
SpamAssassin/DnsResolver.pm line 395, <GEN3116> line 485.

The <GEN3116> line 485 varies from error msg to error msg, but it
seems every message hitting spamd is generating this error.

OS is CentOS 5.4-4
SpamAssassin version 3.2.5 running as:
/usr/bin/spamd -d -c -m9 -H -r /var/run/spamd.pid

Perl just updated to perl-5.8.8-27.el5.i386

thanks in advance for any help.
Rob
--
Rob Lingelbach
rob[at]colorist.org


Mark.Martinec+sa at ijs

Oct 30, 2009, 9:17 AM

Post #2 of 4 (184 views)
Permalink
Re: dns: sendto() failed: [In reply to]

Rob,

> Been running Spamassassin for a long time with no problems until a
> recent update of various packages including perl (but no other
> immediately perceptible relevant update) and now this error:
>
> Oct 30 15:34:31 <hostname deleted> spamd[16264]: dns: sendto()
> failed: Connection refused at /usr/lib/perl5/vendor_perl/5.8.8/Mail/
> SpamAssassin/DnsResolver.pm line 395
>
> CentOS 5.4-4, SpamAssassin 3.2.5 running as:
> /usr/bin/spamd -d -c -m9 -H -r /var/run/spamd.pid
> Perl just updated to perl-5.8.8-27.el5.i386

man 2 send

[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.


Check health of the first DNS resolver as specified in your /etc/resolv.conf.
Is it alive? Is a firewall or OS policy blocking queries?

Mark


rob at colorist

Oct 30, 2009, 2:09 PM

Post #3 of 4 (186 views)
Permalink
Re: dns: sendto() failed: [In reply to]

On Oct 30, 2009, at 2:17 PM, Mark Martinec wrote:

>> immediately perceptible relevant update) and now this error: (CentOS)
>>
>> Oct 30 15:34:31 <hostname deleted> spamd[16264]: dns: sendto()
>> failed: Connection refused at /usr/lib/perl5/vendor_perl/5.8.8/Mail/
>> SpamAssassin/DnsResolver.pm line 395

> Check health of the first DNS resolver as specified in your /etc/
> resolv.conf.
> Is it alive? Is a firewall or OS policy blocking queries?

This indeed turned out to be the problem. Iptables was reinitialized
with values other than those which I thought I had saved. The other
possibility arose that because SELinux was also somewhat changed in
the multi-package update, that it was being more strict, but adjusting
iptables for port 53 fixed. thank you Mark.

Rob
--
Rob Lingelbach
rob[at]colorist.org


martin at gregorie

Oct 30, 2009, 5:01 PM

Post #4 of 4 (179 views)
Permalink
Re: dns: sendto() failed: [In reply to]

On Fri, 2009-10-30 at 19:09 -0200, Rob Lingelbach wrote:

> The other
> possibility arose that because SELinux was also somewhat changed in
> the multi-package update, that it was being more strict, but adjusting
> iptables for port 53 fixed. thank you Mark.
>
IME SELinux is a pain in the butt. Its more trouble than its worth
because I run both non-standard services and standard services with
non-standard file system usage.

Consequently, my first action after a clean install is to disable
SELinux. My firewall doesn't accept any inward connections and I'm
fairly careful with cross-user permissions, so I don't think this adds
appreciably to systemic risk.


Martin

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.