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

Garbage after all mechanism causes an exception #45

Closed schack closed 5 years ago

schack commented 5 years ago

Example: avd.dk returns the following TXT record. "v=spf1 mx a ip4:213.5.39.110 a:navsmtpsrv001.bodata.dk ?all MS=83859DAEBD1978F9A7A67D3A0A483D6F5EB88784" and causes an exception. Section 5.1 in the spec states: Mechanisms after "all" will never be tested. Mechanisms listed after "all" MUST be ignored. Any "redirect" modifier (Section 6.1) MUST be ignored when there is an "all" mechanism in the record, regardless of the relative ordering of the terms.

seanthegeek commented 5 years ago

Fixed in 4,2,0