"Bill Landry" <[EMAIL PROTECTED]> writes: > I wanted to setup an RHSBL test that would simply query my local DNS server > for a host "A" record. Here is what I attempted to do, however, this does > not work: [...]
The current 2.60 code isn't able to do such a test. Just apply this patch to the 2.60 code if you want to treat 64.94.110.11 as NXDOMAIN. Index: lib/Mail/SpamAssassin/EvalTests.pm =================================================================== RCS file: /cvsroot/spamassassin/spamassassin/lib/Mail/SpamAssassin/EvalTests.pm,v retrieving revision 1.446 diff -u -r1.446 EvalTests.pm --- lib/Mail/SpamAssassin/EvalTests.pm +++ lib/Mail/SpamAssassin/EvalTests.pm @@ -113,7 +113,8 @@ if ($query) { my $count = 0; foreach my $rr ($query->answer) { - $count++ if ($rr->type eq "A"); + # A records are okay unless the A record is for a non-existing domain + $count++ if ($rr->type eq "A" && $rr->address ne "64.94.110.11"); } dbg ("DNS A records found: $count"); return 0 if ($count > 0); Daniel ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk