Mailing List Archive

New PHP library to build/parse/check SPF records
Hello everybody,

I just released a new PHP library that can be used to:

* build the value of SPF records with PHP classes
* parse SPF records, either from a live domain or from an offline "v=spf1 ..." string
* validate SPF strings
* check SPF strings for issues/warnings
* validate IPs/HELO domains/MAIL FROM email addresses against SPF records

Since version 3.0.0, this library passes the Test Suite for RFC 7208 (version 2014.05) available at http://www.open-spf.org/Test_Suite/

You can find this library at https://github.com/mlocati/spf-lib

I think it would be nice to add this library to the Implementations list available at http://www.open-spf.org/Implementations/

Best,
Michele

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



spf: spf-devel
Permalink: https://spf.topicbox.com/groups/spf-devel/T5b800dbc434d6aae-Mca73d45d482461bcb0fb4272
Delivery options: https://spf.topicbox.com/groups/spf-devel/subscription
Re: New PHP library to build/parse/check SPF records [ In reply to ]
That sounds cool. I'm currently working on a PHP DKIM validator that's reasonably advanced, hopefully they will work nicely together.

Marcus

> On 17 Jul 2020, at 16:56, mlocati@gmail.com wrote:
>
> Hello everybody,
>
> I just released a new PHP library that can be used to:
>
> build the value of SPF records with PHP classes
> parse SPF records, either from a live domain or from an offline "v=spf1 ..." string
> validate SPF strings
> check SPF strings for issues/warnings
> validate IPs/HELO domains/MAIL FROM email addresses against SPF records
>
> Since version 3.0.0, this library passes the Test Suite for RFC 7208 (version 2014.05) available at http://www.open-spf.org/Test_Suite/ <http://www.open-spf.org/Test_Suite/>
>
> You can find this library at https://github.com/mlocati/spf-lib <https://github.com/mlocati/spf-lib>
>
> I think it would be nice to add this library to the Implementations list available at http://www.open-spf.org/Implementations/ <http://www.open-spf.org/Implementations/>
>
> Best,
> Michele
>
> Sender Policy Framework: http://www.openspf.net
> Modify Your Subscription: http://www.listbox.com/member/
>
> spf <https://spf.topicbox.com/latest> / spf-devel / see discussions <https://spf.topicbox.com/groups/spf-devel> + participants <https://spf.topicbox.com/groups/spf-devel/members> + delivery options <https://spf.topicbox.com/groups/spf-devel/subscription>Permalink <https://spf.topicbox.com/groups/spf-devel/T5b800dbc434d6aae-Mca73d45d482461bcb0fb4272>
--
Marcus Bointon
Technical Director, Synchromedia Limited

Creators of https://info.smartmessages.net/
UK 1CRM solutions https://www.syniah.com/
marcus@synchromedia.co.uk | https://www.synchromedia.co.uk/


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



spf: spf-devel
Permalink: https://spf.topicbox.com/groups/spf-devel/T5b800dbc434d6aae-M450c57e868032e8608d0573c
Delivery options: https://spf.topicbox.com/groups/spf-devel/subscription
Re: New PHP library to build/parse/check SPF records [ In reply to ]
On Fri, 17 Jul 2020, mlocati@gmail.com wrote:

> I just released a new PHP library that can be used to:

Cool!

> Since version 3.0.0, this library passes the Test Suite for RFC 7208 (version 2014.05) available at
> http://www.open-spf.org/Test_Suite/

While not yet official, I (author of the test suite) suggest also testing against the development
version: https://github.com/sdgathman/pyspf/tree/master/test
It mainly adds more tests for e.g. some implementations that have failed with
mixed case in IPv6 addresses(!), with DNS servers that randomly change
case every time you query them, and other real-life brain damage in the
field.

And please file an issue if there is any failure where the proposed new test suite is wrong.

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



spf: spf-devel
Permalink: https://spf.topicbox.com/groups/spf-devel/T5b800dbc434d6aae-M5a3f8ffce014b449c00378bb
Delivery options: https://spf.topicbox.com/groups/spf-devel/subscription
Re: New PHP library to build/parse/check SPF records [ In reply to ]
I'll check that dev version for sure, thanks for the suggestion!
But not so soon, I'm going to have a 1 week break, (not very) sorry ;)

--
Michele


Il Ven 17 Lug 2020, 18:13 Stuart D Gathman <stuart@gathman.org> ha scritto:

> On Fri, 17 Jul 2020, mlocati@gmail.com wrote:
>
> > I just released a new PHP library that can be used to:
>
> Cool!
>
> > Since version 3.0.0, this library passes the Test Suite for RFC 7208
> (version 2014.05) available at
> > http://www.open-spf.org/Test_Suite/
>
> While not yet official, I (author of the test suite) suggest also testing
> against the development
> version: https://github.com/sdgathman/pyspf/tree/master/test
> It mainly adds more tests for e.g. some implementations that have failed
> with
> mixed case in IPv6 addresses(!), with DNS servers that randomly change
> case every time you query them, and other real-life brain damage in the
> field.
>
> And please file an issue if there is any failure where the proposed new
> test suite is wrong.
>

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



spf: spf-devel
Permalink: https://spf.topicbox.com/groups/spf-devel/T5b800dbc434d6aae-Mf8f145a7a5d7d16a4cedb739
Delivery options: https://spf.topicbox.com/groups/spf-devel/subscription