Mailing List Archive

Is there a library for validating SPF syntax
Hello. I am one of the few, the proud, the DNS implementors. I am
looking for a library that can look at a text string and tell me if the
string in question is good SPF. The library needs the following:

* It needs to be written in C

* It needs to be under a BSD license or compatible with a BSD license.
Also, the BSD license needs to be one *without* the obnoxious advertising
clause. (For people not familiar with licenses, this means that it
can't be GPL, LGPL, etc.)

What I want to do is to be able to give users of my DNS software a
warning if they have a SPF record with syntax errors in it. It is
sufficient that the library says "This ain't good SPF", but something
that gives more detailed error messages would help my users more.

I do not have the resources to write such a parser at this time, but
can easily integrate such a parser in to my DNS server. I am just about
to add support to TXT records to the zone file parser.

- Sam

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com
Re: Is there a library for validating SPF syntax [ In reply to ]
In <20040622100255.13A553F205@mail.chaosring.org> sam+spf@chaosring.org writes:

> Hello. I am one of the few, the proud, the DNS implementors. I am
> looking for a library that can look at a text string and tell me if the
> string in question is good SPF. The library needs the following:

Yes, libspf-alt will do that. See http://www.midwestcs.com/spf/libspf-alt


-wayne



-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com
Re: Is there a library for validating SPF syntax [ In reply to ]
On Tue, 2004-06-22 at 03:02, sam+spf@chaosring.org wrote:

> Hello. I am one of the few, the proud, the DNS implementors. I am
> looking for a library that can look at a text string and tell me if the
> string in question is good SPF. The library needs the following:

-- snip!

libspf has all of these things and a license perfectly suited for
absolutely any desired implementation of SPF and was written
specifically to cater to anyone being able to have free and unlimited
access to parsing SPF.

Everything you need can be found on the website: http://libspf.org

Cheers,

James

--
James Couzens,
Programmer
-----------------------------------------------------------------
XML is WRONG, and here it doesn't BELONG.
Neither in SPF, nor inside of DNS,
its fat and its bloated and so I express:
JSON - "The FAT FREE alternative to XML"
http://www.crockford.com/JSON/xml.html
-----------------------------------------------------------------
http://libspf.org -- ANSI C Sender Policy Framework library
http://libsrs.org -- ANSI C Sender Rewriting Scheme library
-----------------------------------------------------------------
PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBD3BF855

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com
Re: Is there a library for validating SPF syntax [ In reply to ]
On Tue, 22 Jun 2004 sam+spf@chaosring.org wrote:

> Hello. I am one of the few, the proud, the DNS implementors. I am
> looking for a library that can look at a text string and tell me if the
> string in question is good SPF. The library needs the following:
>
> * It needs to be written in C
>
> * It needs to be under a BSD license or compatible with a BSD license.
> Also, the BSD license needs to be one *without* the obnoxious advertising
> clause. (For people not familiar with licenses, this means that it
> can't be GPL, LGPL, etc.)
>
> What I want to do is to be able to give users of my DNS software a
> warning if they have a SPF record with syntax errors in it. It is
> sufficient that the library says "This ain't good SPF", but something
> that gives more detailed error messages would help my users more.
>
> I do not have the resources to write such a parser at this time, but
> can easily integrate such a parser in to my DNS server. I am just about
> to add support to TXT records to the zone file parser.

libspf2 may be downloaded from http://www.libspf2.org/download.html and
satisfies these requirements. It compiles SPF records into bytecode,
during which process it does a syntax check of the record.

I will be happy to work with you to help you implement this in your
system.

S.

--
Shevek http://www.anarres.org/
Robust Sender Policy Framework (SPF) http://www.libspf2.org/
SRS for the next generation http://www.libsrs2.org/

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com