Skip to content

Fix SPF Record verification failing for domains with a label starting with "all" (#145)#147

Merged
seanthegeek merged 2 commits intodomainaware:masterfrom
maxime-huyghe:master
Oct 26, 2024
Merged

Fix SPF Record verification failing for domains with a label starting with "all" (#145)#147
seanthegeek merged 2 commits intodomainaware:masterfrom
maxime-huyghe:master

Conversation

@maxime-huyghe
Copy link
Copy Markdown
Contributor

Hello ! There is already an issue and a commit for this bug (ricco386@2690627), but I discovered it independently and came up with a more complete fix.

My solution ensures that, if .all ever becomes a valid TLD, the parsing won't stop working again, because it ensures that what we're matching is really an all mechanism and not part of some other mechanism.

It also fixes another bug : the current regex only matches one term after the all, so multiple "trailing" terms or random text with spaces are not ignored properly.

@Tazmaniac
Copy link
Copy Markdown

This PR fix #145

@seanthegeek seanthegeek merged commit 7ff1b50 into domainaware:master Oct 26, 2024
seanthegeek added a commit that referenced this pull request Oct 26, 2024
- SPF record validation fixes (PR #147)
  - Accept mechanisms with domains that start with `all` (Fixes #145)
  - Ignore multiple trailing mechanisms and random text with spaces
seanthegeek added a commit to seanthegeek/dns that referenced this pull request Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants