domainaware / checkdmarc

A parser for SPF and DMARC DNS records
https://domainaware.github.io/checkdmarc
Apache License 2.0
251 stars 77 forks source link

Preserve SPF evaluation order #50

Open kenmortimer opened 4 years ago

kenmortimer commented 4 years ago

Currently the parsed SPF terms are listed according to their directive's qualifier or modifier name.

As SPF records are evaluated left-to-right [RFC 7208 4.6.2], this output format loses information. It would be useful for the structured output to preserve the actual order of the terms.

The current format also ignores that the include mechanism may be prefixed with a qualifier [RFC 7208 5.1 (4)].

seanthegeek commented 3 years ago

I'm finally getting around to improving this project. It will take some rewriting to get the output right. Not sure when I'll have time, but it's on my todo list.