spf-discuss
[Top] [All Lists]

Wizard and commas

2004-10-21 11:06:57
I discovered, quite by chance, that if a domain has an spf record that contains 
a comma, and you enter that domain as a starting point for the wizard at 
spf.pobox.com, the wizard blows up.  Yes, I know that commas are not in the 
spec, but a page of Perl errors (I am guessing it is Perl) is not the most 
efficient way to communicate the nature of the problem.

The registry checker at spftools, on the other hand, returns a moderately 
helpful error,
 "Malformed cidr '/24,' in 'ip4' declaration in rule part 4 
(ip4:216.223.128.0/24,)"

Even better would be to say that mechanisms should be separated with spaces.


Here is the record that caused the blow up

v=spf1 a mx ip4:216.223.128.0/24, ip4:216.223.130.0/24 -all

It belongs to domain ipermitmail.com

I have informed them of the error.  They might fix it before anybody gets 
around to looking at the wizard, so here is the page of errors the wizard spat 
out.

System error

error:  Bad mask 24, at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm line 39
Net::CIDR::Lite::add('Net::CIDR::Lite=HASH(0x943eba4)', '216.223.128.0/24,') 
called at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm line 25
Net::CIDR::Lite::add_any('Net::CIDR::Lite=HASH(0x943eba4)', 
'216.223.128.0/24,') called at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm 
line 18
Net::CIDR::Lite::new('Net::CIDR::Lite', '216.223.128.0/24,') called at 
/sw/apache/htdocs/spf/wizard.html line 287
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 156
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x943175c)',
 'main', 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 753
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)',
 'main', 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/sw/apache/htdocs/spf/wizard.html line 195
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x943175c)',
 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1069
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, 'x', 30, 'mydomain', 
'ipermitmail.com', 'y', 6) called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm 
line 760
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /sw/apache/htdocs/spf/autohandler line 92
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9439ca0)',
 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1069
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, 'x', 30, 'mydomain', 
'ipermitmail.com', 'y', ...) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 338
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 338
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 792
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x844e048)',
 'Apache=SCALAR(0x93720c0)') called at /sw/apache/conf/handler.pl line 102
My::Mason::handler('Apache=SCALAR(0x93720c0)') called at /dev/null line 0
eval {...} called at /dev/null line 0
 
context:  ...   
116:  # or simply report the caller's package (croak() and carp()), 
respectively. 
117:  # confess() and croak() die, carp() and cluck() warn. 
118:   
119:  sub croak { die shortmess @_ } 
120:  sub confess { die longmess @_ } 
121:  sub carp { warn shortmess @_ } 
122:  sub cluck { warn longmess @_ } 
123:   
124:  1; 
...   
 
code stack:  /icg/pkg/perl/perl(_at_)5(_dot_)6(_dot_)1/lib/Carp.pm:120
g /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm:39
g /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm:25
g /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm:18
g /sw/apache/htdocs/spf/wizard.html:287
g /icg/lib/perl/5.6.1/HTML/Mason/Request.pm:753
g /sw/apache/htdocs/spf/wizard.html:195
g /sw/apache/htdocs/spf/autohandler:92
g  
raw error































Bad mask 24, at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm line 39
Net::CIDR::Lite::add('Net::CIDR::Lite=HASH(0x943eba4)', '216.223.128.0/24,') 
called at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm line 25
Net::CIDR::Lite::add_any('Net::CIDR::Lite=HASH(0x943eba4)', 
'216.223.128.0/24,') called at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm 
line 18
Net::CIDR::Lite::new('Net::CIDR::Lite', '216.223.128.0/24,') called at 
/sw/apache/htdocs/spf/wizard.html line 287
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 156
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x943175c)',
 'main', 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 753
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)',
 'main', 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/sw/apache/htdocs/spf/wizard.html line 195
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x943175c)',
 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1069
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, 'x', 30, 'mydomain', 
'ipermitmail.com', 'y', 6) called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm 
line 760
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /sw/apache/htdocs/spf/autohandler line 92
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9439ca0)',
 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1069
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, 'x', 30, 'mydomain', 
'ipermitmail.com', 'y', ...) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 338
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 338
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134
eval {...} called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 792
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x844e048)',
 'Apache=SCALAR(0x93720c0)') called at /sw/apache/conf/handler.pl line 102
My::Mason::handler('Apache=SCALAR(0x93720c0)') called at /dev/null line 0
eval {...} called at /dev/null line 0


Trace begun at /icg/lib/perl/5.6.1/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception('Bad mask 24, at 
/icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm line 
39^J^INet::CIDR::Lite::add(\'Net::CIDR::Lite=HASH(0x943eba4)\', 
\'216.223.128.0/24,\') called at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm 
line 25^J^INet::CIDR::Lite::add_any(\'Net::CIDR::Lite=HASH(0x943eba4)\', 
\'216.223.128.0/24,\') called at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm 
line 18^J^INet::CIDR::Lite::new(\'Net::CIDR::Lite\', \'216.223.128.0/24,\') 
called at /sw/apache/htdocs/spf/wizard.html line 
287^J^IHTML::Mason::Commands::__ANON__(\'x\', 30, \'mydomain\', 
\'ipermitmail.com\', \'y\', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 
156^J^IHTML::Mason::Component::run_dynamic_sub(\'HTML::Mason::Component::FileBased=HASH(0x943175c)\',
 \'main\', \'x\', 30, \'mydomain\', \'ipermitmail.com\', \'y\', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 
753^J^IHTML::Mason::Request::call_dynamic(\'HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)\',
 \'main\', \'x\', 30, \'mydomain\', \'ipermitmail.com\', \'y\', 6) called at 
/sw/apache/htdocs/spf/wizard.html line 
195^J^IHTML::Mason::Commands::__ANON__(\'x\', 30, \'mydomain\', 
\'ipermitmail.com\', \'y\', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 
134^J^IHTML::Mason::Component::run(\'HTML::Mason::Component::FileBased=HASH(0x943175c)\',
 \'x\', 30, \'mydomain\', \'ipermitmail.com\', \'y\', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1069^J^Ieval {...} called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 
1068^J^IHTML::Mason::Request::comp(undef, undef, \'x\', 30, \'mydomain\', 
\'ipermitmail.com\', \'y\', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 
760^J^IHTML::Mason::Request::call_next(\'HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)\')
 called at /sw/apache/htdocs/spf/autohandler line 
92^J^IHTML::Mason::Commands::__ANON__(\'x\', 30, \'mydomain\', 
\'ipermitmail.com\', \'y\', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 
134^J^IHTML::Mason::Component::run(\'HTML::Mason::Component::FileBased=HASH(0x9439ca0)\',
 \'x\', 30, \'mydomain\', \'ipermitmail.com\', \'y\', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1069^J^Ieval {...} called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 
1068^J^IHTML::Mason::Request::comp(undef, undef, undef, \'x\', 30, 
\'mydomain\', \'ipermitmail.com\', \'y\', ...) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 338^J^Ieval {...} called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 338^J^Ieval {...} called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 
297^J^IHTML::Mason::Request::exec(\'HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)\')
 called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134^J^Ieval 
{...} called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 
134^J^IHTML::Mason::Request::ApacheHandler::exec(\'HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)\')
 called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 
792^J^IHTML::Mason::ApacheHandler::handle_request(\'HTML::Mason::ApacheHandler=HASH(0x844e048)\',
 \'Apache=SCALAR(0x93720c0)\') called at /sw/apache/conf/handler.pl line 
102^J^IMy::Mason::handler(\'Apache=SCALAR(0x93720c0)\') called at /dev/null 
line 0^J^Ieval {...} called at /dev/null line 0^J') called at 
/icg/pkg/perl/perl(_at_)5(_dot_)6(_dot_)1/lib/Carp.pm line 120
Carp::confess('Bad mask 24,') called at 
/icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm line 39
Net::CIDR::Lite::add('Net::CIDR::Lite=HASH(0x943eba4)', '216.223.128.0/24,') 
called at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm line 25
Net::CIDR::Lite::add_any('Net::CIDR::Lite=HASH(0x943eba4)', 
'216.223.128.0/24,') called at /icg/lib/perl/site_perl/5.6.1/Net/CIDR/Lite.pm 
line 18
Net::CIDR::Lite::new('Net::CIDR::Lite', '216.223.128.0/24,') called at 
/sw/apache/htdocs/spf/wizard.html line 287
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 156
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x943175c)',
 'main', 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 753
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)',
 'main', 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/sw/apache/htdocs/spf/wizard.html line 195
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x943175c)',
 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1069
eval {...}('HTML::Mason::Component::FileBased=HASH(0x943175c)', 'x', 30, 
'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, 'x', 30, 'mydomain', 
'ipermitmail.com', 'y', 6) called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm 
line 760
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /sw/apache/htdocs/spf/autohandler line 92
HTML::Mason::Commands::__ANON__('x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9439ca0)',
 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1069
eval {...}('HTML::Mason::Component::FileBased=HASH(0x9439ca0)', 'x', 30, 
'mydomain', 'ipermitmail.com', 'y', 6) called at 
/icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, 'x', 30, 'mydomain', 
'ipermitmail.com', 'y', 6) called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm 
line 338
eval {...}(undef, undef, undef, 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 338
eval {...}(undef, undef, undef, 'x', 30, 'mydomain', 'ipermitmail.com', 'y', 6) 
called at /icg/lib/perl/5.6.1/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134
eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)') called at 
/icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x869d7f0)')
 called at /icg/lib/perl/5.6.1/HTML/Mason/ApacheHandler.pm line 792
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x844e048)',
 'Apache=SCALAR(0x93720c0)') called at /sw/apache/conf/handler.pl line 102
My::Mason::handler('Apache=SCALAR(0x93720c0)') called at /dev/null line 0
eval {...}('Apache=SCALAR(0x93720c0)') called at /dev/null line 


<Prev in Thread] Current Thread [Next in Thread>