Benoit.Branciard at univ-paris1
Nov 2, 2010, 9:13 AM
Post #2 of 3
Re: libspf2: "ip6" mechanism not working ?
[In reply to]
below is a message I posted some months ago about "ip6:" SPF mechanism
not being handled correctly by libspf2.
Googling in the mailing list archives, I found someone already
encountered the problem and submitted a patch:
but without the patch attached).
I tested this patch (basically replacing an occurrence of
INET_ADDRSTRLEN by INET6_ADDRSTRLEN in spf_compile.c), and I confirm it
solves the "ip6" problem.
Could this patch be included in future releases of libspf2 ?
Le 18/02/2010 20:15, Benoit Branciard a écrit :
> If I publish a SPF record like this:
> testspf.univ-paris1.fr descriptive text "v=spf1 ip6:2001:660:3305::71
> ip4:220.127.116.11 -all"
> then execute some queries on it using libspf2 (through the spfquery
> spfquery -i 18.104.22.168 -s testspf.univ-paris1.fr
> -> pass
> spfquery -i 2001:660:3305::71 -s testspf.univ-paris1.fr
> -> fail
> I would have expected both queries to return "pass".
> Tested lipspf2/spfquery versions are: 1.2.5 and 1.2.9, with same faulty
> Testing environment is on Debian Lenny, libspf2 are from Debian packages
> (Lenny and Sid).
> I arrived to the conclusion of a libspf2 bug after seeing a
> libspf2-linked mail filter (milter-greylist) not behave as expected on
> incoming SPF-enabled IPv6 SMTP connexions. After thoroughly examining
> the faulty SPF record, I concluded the SPF test should have passed,
> whereas it failed. Then I did some manual queries using spfquery on the
> same SPF record with same results. I then created the above simple test
> SPF record which obviously illustrates the bug.
> Could someone have a look at it ?
> Best regards,
CRIR - SIS
Centre de Ressources Informatiques et du Réseau,
Université Paris 1 Panthéon-Sorbonne
Tel. 01 44 07 89 68
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.
Sender Policy Framework: http://www.openspf.org [http://www.openspf.org]
Modify Your Subscription: http://www.listbox.com/member/ [http://www.listbox.com/member/]
RSS Feed: https://www.listbox.com/member/archive/rss/1007/1311533-9e42a648
Modify Your Subscription: https://www.listbox.com/member/?member_id=1311533&id_secret=1311533-d322f1f1
Unsubscribe Now: https://www.listbox.com/unsubscribe/?member_id=1311533&id_secret=1311533-d59c80a0&post_id=20101102121314:170FB588-E69C-11DF-B5C3-A439631276BD
Powered by Listbox: http://www.listbox.com