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

Mailing List Archive: SpamAssassin: devel

[Bug 6819] Avoiding some DNS lookup failure warnings

 

 

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


bugzilla-daemon at bugzilla

Jul 26, 2012, 6:31 AM

Post #1 of 4 (242 views)
Permalink
[Bug 6819] Avoiding some DNS lookup failure warnings

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6819

--- Comment #1 from Mark Martinec <Mark.Martinec [at] ijs> ---
trunk (3.4):
Bug 6819: Avoiding some DNS lookup failure warnings
Sending lib/Mail/SpamAssassin/DnsResolver.pm
Sending lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm
Committed revision 1365983.

--
You are receiving this mail because:
You are the assignee for the bug.


bugzilla-daemon at bugzilla

Jul 30, 2012, 8:25 AM

Post #2 of 4 (219 views)
Permalink
[Bug 6819] Avoiding some DNS lookup failure warnings [In reply to]

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6819

--- Comment #2 from Mark Martinec <Mark.Martinec [at] ijs> ---
> Can't call method "id" on an undefined value ... DnsResolver.pm line 474

(trunk)
$ svn ci -m 'Bug 6819, one more detail'
Sending lib/Mail/SpamAssassin/DnsResolver.pm
Committed revision 1367116.

--
You are receiving this mail because:
You are the assignee for the bug.


bugzilla-daemon at bugzilla

Jul 31, 2012, 9:02 AM

Post #3 of 4 (216 views)
Permalink
[Bug 6819] Avoiding some DNS lookup failure warnings [In reply to]

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6819

--- Comment #3 from Mark Martinec <Mark.Martinec [at] ijs> ---
> dns: cannot create Net::DNS::Packet, but new_dns_packet() was called:
> unexpected null domain label
> at /usr/local/lib/perl5/site_perl/5.17.2/mach/Net/DNS/Question.pm line 81.
> at /usr/local/lib/perl5/site_perl/5.17.2/Mail/SpamAssassin/DnsResolver.pm
> line 473.
> (still don't know its cause, improved logging of a failure)

I have finally caught it in the act. The SPF plugin acts on an invalid
SPF record, creating a DNS query for an invalid domain name starting
with a null label (i.e. a dot):

$ host -t txt lse.com
lse.com descriptive text
"v=spf1 a mx a:mail.lse.com a:smtp.lse.com a:mailrelay.embarq.synacor.com
a:embarq.synacor.com mx:dnsmadeeasy.com mx:mail.lse.com mx:smtp.lse.com
include:.embarq.synacor.com ~all"

results in a query for a domain ".embarq.synacor.com", which is invalid.
The Mail::SPF may need to be more careful about what queries it generates,
but this is outside the scope of this problem report.

Adjusting code in new_dns_packet() yet again for the purpose of a
more meaningful but still compact diagnostics, to look like:

warn: dns: new_dns_packet (host=.embarq.synacor.com. type=TXT class=IN)
failed: a domain name contains a null label

trunk (3.4):
Bug 6819: Avoiding some DNS lookup failure warnings
Sending lib/Mail/SpamAssassin/DnsResolver.pm
Committed revision 1367634.

--
You are receiving this mail because:
You are the assignee for the bug.


bugzilla-daemon at bugzilla

Jul 31, 2012, 9:37 AM

Post #4 of 4 (214 views)
Permalink
[Bug 6819] Avoiding some DNS lookup failure warnings [In reply to]

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6819

Kevin A. McGrail <kmcgrail [at] pccc> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |kmcgrail [at] pccc

--- Comment #4 from Kevin A. McGrail <kmcgrail [at] pccc> ---
Woohoo! I've seen this exact issue.

--
You are receiving this mail because:
You are the assignee for the bug.

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


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.