Hi!
I recently stumbled over SPF on slashdot and today I started hacking on
a qmail patch.
Actually I found an older patch on this list (via Google) and used some
of it. I had to extend the DNS ptr and txt functions to handle multiple
entries. I also added strsalloc functions (like ipalloc) that can handle
lists of strallocs (to store multiple ptr or txt results).
Don't try to compile qmail-smtpd with this patch, it won't work, it
doesn't integrate with qmail-smtpd yet. Run "make test" and it will
create a test program called test.
Run it with ./test <email address> <HELO/EHLO string> <ipv4 address>
The result will be one of:
0: passed
1: unknown
2: failed
3: error (temporary failure, probably DNS lookup problems)
It supports only ipv4 and the message generation is missing. Apart from
that the patch seems in pretty good (and mostly complete, did I miss
something special?) shape considering that it's the result of a 10 hour
hacking marathon. :)
Yes, spf.c is still hanging around from the older patch, it doesn't do
anything. My code is currently in test.c. It's only a testing version,
something to play with.
Because the patch is 48k in size I'll give you a link:
http://www.saout.de/misc/qmail-spf-testing1.patch
Have fun!
-------
Sender Permitted From: http://spf.pobox.com/
Archives at http://archives.listbox.com/spf-discuss/current/
Latest draft at http://spf.pobox.com/draft-mengwong-spf-02.9.4.txt
Wiki:
http://spfwiki.infinitepenguins.net/pmwiki.php/SenderPermittedFrom/HomePage
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to
http://v2.listbox.com/member/?listname(_at_)©#«Mo\¯HÝÜîU;±¤Ö¤Íµø?¡