[Pymilter] pyspf SPF checking raises TypeError exception when checking erroneous record

Stuart D Gathman stuart at bmsi.com
Wed Mar 13 10:39:42 EDT 2013


On Mar 13, Kazuhiro Ogura transmitted in part:

> I'm using pyspf-2.0.7, and I've found that spf.query.check() raises
> TypeError exception when doing SPF check against particular DNS
> entries like:
>
>        example.com  IN  TXT     "v=spf1 mx:mx1.example.com"
>    mx1.example.com  IN  CNAME   .
>
> or entries like:
>
>        example.com  IN  TXT     "v=spf1 a:mx2.example.com"
>    mx2.example.com  IN  CNAME   .
>
> (It is apparently wrong, but it do exists in real world)

Excellent nit nabbing!  Will make a great test case for the test suite
also.  The next question is, what should the correct result be?
PermError, or nomatch?




More information about the Pymilter mailing list