Question about Test Suite

"Peter M. Goldstein via spf-devel" <[email protected]> Tue, 23 Sep 2014 14:03:50 -0700
Newsgroups gmane.mail.spam.spf.devel
Message-ID <CAErFxE=5cyVV3vbjpq2VeAw-fi6LHdESbmFn6r+Rucbusu6+9w@mail.gmail.com>
--047d7bdc7d0e7e22410503c1e777
Content-Type: text/plain; charset=UTF-8

Hi Everyone,

I'm in the midst of writing an SPF implementation and toolkit in Ruby.  You
can find the source code here - https://github.com/petergoldstein/coppertone

I've implemented a runner for the RFC 7208 OpenSPF test suite as defined
here - http://www.openspf.org/svn/project/test-suite/ - and I've got all
but two of the specs passing.  You can find the RSpec version of the test
suite in the repository referenced above, under the spec/open_spf directory.

Two of the specs, both related to subdomain resolution in 'p' macro
expansion are not passing, and I can't figure out why the results specified
in the suite are correct.  The two specs are p-macro-ip4-valid on line 2110
and p-macro-ip6-valid on line 2132.

In both cases, I get the expected 'fail' result, but the p macro does not
resolve, because the current domain (e6.example.com) is not a subdomain of
any of the PTR records returned by 41.218.168.192.in-addr.arpa or
3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa
respectively.

The only returned PTR record in each case in 'mx.example.com', which is not
a subdomain of e6.example.com and thus, according to my reading of the
spec, should not be used.  So my explanation is 'connect from unknown' as
opposed to the 'connect from mx.example.com'

Am I misunderstanding the RFC here?  If not, why is this value correct?

Any help is appreciated.  Thanks.

Best,

Peter



-------------------------------------------
Sender Policy Framework: http://www.openspf.net [http://www.openspf.net]
Modify Your Subscription: http://www.listbox.com/member/ [http://www.listbox.com/member/]

Archives: https://www.listbox.com/member/archive/1007/=now
RSS Feed: https://www.listbox.com/member/archive/rss/1007/6959932-f3d1312d
Modify Your Subscription: https://www.listbox.com/member/?member_id=6959932&id_secret=6959932-d95100fc
Unsubscribe Now: https://www.listbox.com/unsubscribe/?member_id=6959932&id_secret=6959932-4aedb9c4&post_id=20140923170356:20F9F84A-4365-11E4-B69E-A0FB298D6111
Powered by Listbox: http://www.listbox.com

--047d7bdc7d0e7e22410503c1e777
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Everyone,<div><br></div><div>I&#39;m in the midst of wr=
iting an SPF implementation and toolkit in Ruby.=C2=A0 You can find the sou=
rce code here -=C2=A0<a href=3D"https://github.com/petergoldstein/copperton=
e">https://github.com/petergoldstein/coppertone</a></div><div><br></div><di=
v>I&#39;ve implemented a runner for the RFC 7208 OpenSPF test suite as defi=
ned here -=C2=A0<a href=3D"http://www.openspf.org/svn/project/test-suite/">=
http://www.openspf.org/svn/project/test-suite/</a> - and I&#39;ve got all b=
ut two of the specs passing.=C2=A0 You can find the RSpec version of the te=
st suite in the repository referenced above, under the spec/open_spf direct=
ory.</div><div><br></div><div>Two of the specs, both related to subdomain r=
esolution in &#39;p&#39; macro expansion are not passing, and I can&#39;t f=
igure out why the results specified in the suite are correct.=C2=A0 The two=
 specs are=C2=A0<span style=3D"color:rgb(51,51,51);font-family:Consolas,&#3=
9;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:1=
6.7999992370605px;white-space:pre">p-macro-ip4-valid </span>on line 2110 an=
d=C2=A0<span style=3D"color:rgb(51,51,51);font-family:Consolas,&#39;Liberat=
ion Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.7999992=
370605px;white-space:pre">p-macro-ip6-valid </span>on line 2132. =C2=A0</di=
v><div><br></div><div>In both cases, I get the expected &#39;fail&#39; resu=
lt, but the p macro does not resolve, because the current domain (<a href=
=3D"http://e6.example.com">e6.example.com</a>) is not a subdomain of any of=
 the PTR records returned by=C2=A041.218.168.192.in-addr.arpa or 3.0.0.0.0.=
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa respectively=
.</div><div><br></div><div>The only returned PTR record in each case in &#3=
9;<a href=3D"http://mx.example.com">mx.example.com</a>&#39;, which is not a=
 subdomain of <a href=3D"http://e6.example.com">e6.example.com</a> and thus=
, according to my reading of the spec, should not be used.=C2=A0 So my expl=
anation is &#39;connect from unknown&#39; as opposed to the &#39;<span styl=
e=3D"color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Men=
lo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-sp=
ace:pre">connect from <a href=3D"http://mx.example.com">mx.example.com</a><=
/span>&#39;</div><div><br></div><div>Am I misunderstanding the RFC here?=C2=
=A0 If not, why is this value correct?</div><div><br></div><div>Any help is=
 appreciated.=C2=A0 Thanks.</div><div><br></div><div>Best,</div><div><br></=
div><div>Peter</div><div><br></div><div><font face=3D"yw-615ecac8932474f596=
391d7811607ca49192c7c9-89ed08c9e9f9729407086d880f9c9139--to" style></font><=
/div><img src=3D"https://t.yesware.com/t/615ecac8932474f596391d7811607ca491=
92c7c9/89ed08c9e9f9729407086d880f9c9139/spacer.gif" style=3D"border: 0; wid=
th: 0px; height: 0px;" width=3D"0" height=3D"0"><img src=3D"http://t.yeswar=
e.com/t/615ecac8932474f596391d7811607ca49192c7c9/89ed08c9e9f9729407086d880f=
9c9139/spacer.gif" style=3D"border: 0; width: 0px; height: 0px;" width=3D"0=
" height=3D"0"></div>
<div style=3D"width:auto;margin:0;padding:5px;background-color:#fff;clear:b=
oth;border-top: 1px solid #ccc;" bgcolor=3D"#ffffff">
<p style=3D'font-family:Arial,sans-serif;margin:0.5em auto'>Sender Policy F=
ramework: <a href=3D"http://www.openspf.net">http://www.openspf.net</a><br>=
=0D
Modify Your Subscription: <a href=3D"http://www.listbox.com/member/">http:/=
/www.listbox.com/member/</a></p>
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" width=3D"100%" styl=
e=3D"background-color:#fff" bgcolor=3D"#ffffff">
  <tr>
    <td padding=3D"4px">
      <font color=3D"#333333" size=3D"1" style=3D"font-family:helvetica, sa=
ns-serif;">
      <a style=3D"text-decoration:none;color:#669933;border-bottom: 1px sol=
id #444444"
href=3D"https://www.listbox.com/member/archive/1007/=3Dnow" title=3D"Go to =
archives for spf-devel">Archives</a>
<a border=3D"0" style=3D"text-decoration:none;color:#669933" href=3D"https:=
//www.listbox.com/member/archive/rss/1007/6959932-f3d1312d" title=3D"RSS fe=
ed for spf-devel"><img border=3D0 src=3D"https://www.listbox.com/images/fee=
d-icon-10x10.jpg" /></a>
 | <a style=3D"text-decoration:none;color:#669933;border-bottom: 1px solid =
#444444"
href=3D"https://www.listbox.com/member/?member_id=3D6959932&id_secret=3D695=
9932-d95100fc" title=3D"">Modify</a>
 Your Subscription | <a style=3D"text-decoration:none;color:#669933;border-=
bottom: 1px solid #444444"
href=3D"https://www.listbox.com/unsubscribe/?member_id=3D6959932&id_secret=
=3D6959932-4aedb9c4&post_id=3D20140923170356:20F9F84A-4365-11E4-B69E-A0FB29=
8D6111" title=3D"">Unsubscribe Now</a>
<td valign=3D"top" align=3D"right"><a style=3D"border-bottom:none;" href=3D=
"http://www.listbox.com">
<img src=3D"https://www.listbox.com/images/listbox-logo-small.png"
title=3D"Powered by Listbox" border=3D"0" /></a></td>

      </font>
    </td>
  </tr>
</table>
</div>

--047d7bdc7d0e7e22410503c1e777--