You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Kenneth Porter <sh...@sewingwitch.com> on 2004/12/14 16:58:26 UTC

Re: Debugging lack of network tests

--On Tuesday, December 14, 2004 10:43 AM -0500 Matt Kettler 
<mk...@evi-inc.com> wrote:

> I'd start off simple...
>
>          spamassassin --lint -D
>
> See what that can tell you. If that's showing network tests working, try
> adding -D to spamd's start up (note: spamd not spamc) and check your
> syslogs. (warning: this will dump lots of debug into your mail log)

Aha!

debug: is Net::DNS::Resolver available? yes
debug: Net::DNS version: 0.45
debug: trying (3) ebay.com...
debug: looking up NS for 'ebay.com'
debug: NS lookup of ebay.com failed horribly => Perhaps your resolv.conf 
isn't pointing at a valid server?
debug: All NS queries failed => DNS unavailable (set dns_available to 
override)
debug: is DNS available? 0

However, "dig ebay.com ns" gives me valid results. (I'm running BIND and 
resolv.conf points at 127.0.0.1.) So it looks like maybe something's wrong 
with Net::DNS.

Hmm, just retried it twice more, and the test succeeds on these two tests. 
Perhaps Net::DNS gives up too quickly?

RE: Debugging lack of network tests

Posted by Bret Miller <br...@wcg.org>.
> > Hmm, just retried it twice more, and the test succeeds on these two
> > tests. Perhaps Net::DNS gives up too quickly?
> 
> Found the section in "man Mail::SpamAssassin::Conf" on 
> dns_available and 
> changed it to use a domain my server is master for, to 
> guarantee that it 
> has the records on hand if it's up. In 
> /etc/mail/spamassassin/local.cf I 
> now include:
> 
> # DNS tests may time out prematurely indicating falsely that BIND is
> # down so query a zone we are authoritative for locally
> dns_available test: myhouse.lan

Or maybe just:

dns_available: yes

Bret




Re: Debugging lack of network tests

Posted by Kenneth Porter <sh...@sewingwitch.com>.
--On Tuesday, December 14, 2004 7:58 AM -0800 Kenneth Porter 
<sh...@sewingwitch.com> wrote:

> Hmm, just retried it twice more, and the test succeeds on these two
> tests. Perhaps Net::DNS gives up too quickly?

Found the section in "man Mail::SpamAssassin::Conf" on dns_available and 
changed it to use a domain my server is master for, to guarantee that it 
has the records on hand if it's up. In /etc/mail/spamassassin/local.cf I 
now include:

# DNS tests may time out prematurely indicating falsely that BIND is
# down so query a zone we are authoritative for locally
dns_available test: myhouse.lan