Skip Menu |
 

This queue is for tickets about the Mail-SPF CPAN distribution.

Report information
The Basics
Id: 21922
Status: resolved
Priority: 0/
Queue: Mail-SPF

People
Owner: JMEHNLE [...] cpan.org
Requestors: advax [...] triumf.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.001



Subject: SPF/Mech/PTR.pm blows up with certain SPF records
Date: Thu, 5 Oct 2006 12:38:41 -0700 (PDT)
To: bug-Mail-SPF [...] rt.cpan.org
From: Andrew Daviel <advax [...] triumf.ca>
Download (untitled) / with headers
text/plain 1.8k
We have used Mail-SPF-Query-1.996 in perl v5.6.1 for some time to track SPF records in incoming mail. We just upgraded to a new machine running v5.8.5 and I installed Mail-SPF-2.00 The mail system just blew up and delivered a 1Gbyte delivery failure message. It starts off: Final-Recipient: RFC822; Tootsie@anchorinsulation.com Action: failed Status: 5.2.2 Remote-MTA: DNS; anchorinsulation.com.s5a2.psmtp.com Diagnostic-Code: SMTP; 552 Message too large - psmtp Show quoted text
----- Transcript of session follows ----- PTR/A: Unexpected RR type PTR at /usr/lib/perl5/site_perl/5.8.5/Mail/SPF/Mech/PTR.pm line 59. Query anchorinsulation.com TXT $VAR1 = bless( { 'Value' => '', 'Qualifier' => '', 'ParseValue' => '' }, 'Mail::SPF::Mech::A' ); $VAR1 = bless( { 'Value' => '', 'Qualifier' => '', 'ParseValue' => '' }, 'Mail::SPF::Mech::MX' ); . . match_in_domain(anchorinsulation.com, A) Query anchorinsulation.com A anchorinsulation.com. 3599 IN A 208.239.169.92 match_in_domain(anchorinsulation.com, AAAA) Query anchorinsulation.com AAAA Query anchorinsulation.com MX match_in_domain(anchorinsulation.com.s5b1.psmtp.com, A) Query anchorinsulation.com.s5b1.psmtp.com A anchorinsulation.com.s5b1.psmtp.com. 14400 IN A 64.18.4.13 match_in_domain(anchorinsulation.com.s5b1.psmtp.com, AAAA) Query anchorinsulation.com.s5b1.psmtp.com AAAA ... and so on. Undoubtedly the original message was spam of some kind. And perhaps the anchorinsulation SPF or DNS records are malformed. But clearly there is a serious problem here with unconstrained resource consumption. $ host -t txt anchorinsulation.com anchorinsulation.com text "v=spf1 a mx ptr include:anchorinsulation.com ?all" -- Andrew Daviel, TRIUMF, Canada Tel. +1 (604) 222-7376 (Pacific Time) security@triumf.ca
Download (untitled) / with headers
text/plain 216b
Mail::SPF is currently undergoing a major extension and overhaul (including documentation). A new, polished release is expected within the next 4 weeks (really!). Please wait until then and retry the new release.
Please try Mail::SPF 2.001.
Subject: Re: [rt.cpan.org #21922] SPF/Mech/PTR.pm blows up with certain SPF records
Date: Fri, 15 Dec 2006 12:33:10 -0800 (PST)
To: Julian Mehnle via RT <bug-Mail-SPF [...] rt.cpan.org>
From: Andrew Daviel <advax [...] triumf.ca>
Download (untitled) / with headers
text/plain 846b
On Sat, 9 Dec 2006, Julian Mehnle via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=21922 > > > Please try Mail::SPF 2.001.
We're using Scientific Linux 4.4 (equiv RHEL 4.4), a new install. I just installed SpamAssassin, Razor and then IO::Zlib and Mail::SPF::Query from CPAN (required by S/A), then tried "Mail::SPF" as per your message. I got 2.002. [Mail-SPF-2.002]# perl Makefile.PL This module requires Module::Build to install itself. Install Module::Build now from CPAN? [y] this generates a ton of errors. I'm not competent enough writing CPAN modules to easily debug this. e.g. Couldn't run Build.PL: Argument list too long at /root/.cpan/build/Module-Build-0.2805/blib/lib/Module/Build/Compat.pm line 200. regards -- Andrew Daviel, TRIUMF, Canada Tel. +1 (604) 222-7376 (Pacific Time) security@triumf.ca
Download (untitled) / with headers
text/plain 1.3k
On Fri Dec 15 15:33:30 2006, advax@triumf.ca wrote: Show quoted text
> We're using Scientific Linux 4.4 (equiv RHEL 4.4), a new install. > I just installed SpamAssassin, Razor and then IO::Zlib and > Mail::SPF::Query from CPAN (required by S/A), then tried > "Mail::SPF" as per your message. I got 2.002. > > [Mail-SPF-2.002]# perl Makefile.PL > This module requires Module::Build to install itself. > Install Module::Build now from CPAN? [y] > > this generates a ton of errors. I'm not competent enough writing > CPAN modules to easily debug this. > > e.g. > Couldn't run Build.PL: Argument list too long at > /root/.cpan/build/Module-Build-0.2805/blib/lib/Module/Build/Compat.pm > line 200.
That's very unfortunate because this seems to be a bug in Module::Build that I cannot reproduce myself (because (1) I'm running Debian and (2) Debian still has only Module::Build 0.26). I have forwarded your issue to the Module::Build developers and will notify you as soon as I learn of a solution. Meanwhile, you could try installing Mail::SPF by running `perl Build.PL` instead of `perl Makefile.PL` (as described in the INSTALL file). Perhaps this will work. If it does, please let me know directly instead of replying to the RT ticket address. I'm closing this bug ("SPF/Mech/PTR.pm blows up with certain SPF records") again. Sorry for the trouble! Julian.
Subject: Module::Build "argument list too long" on redhat systems
Download (untitled) / with headers
text/plain 191b
On Fri Dec 15 18:07:06 2006, JMEHNLE wrote: Show quoted text
> That's very unfortunate because this seems to be a bug in > Module::Build
Should be fixed now http://rt.cpan.org/Ticket/Display.html?id=19406
Download (untitled) / with headers
text/plain 105b
The later issue (unrelated to the one originally reported here) has been solved in Module::Build 0.2806.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.