Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPF does not expand redirect modifier #143

Open
TheGacko opened this issue Aug 1, 2024 · 1 comment
Open

SPF does not expand redirect modifier #143

TheGacko opened this issue Aug 1, 2024 · 1 comment

Comments

@TheGacko
Copy link

TheGacko commented Aug 1, 2024

The SPF interpretation doesn't seem to expand out the redirect parameter

It might be something to do with the redirect pointing to a very long six-level domain ? eg sub.domain.com.hosted.mspdomain.com
would this be supported?

A standard redirect SPF record of

"v=spf1 redirect=sub.domain.com.hosted.mspdomain.com"

produces error

"targetdomain.com: Expected mechanism or end_of_statement at position 15 (marked with ➞) in: v=spf1 redirect➞=sub.domain.com.hosted.mspdomain.com"

The redirected record works fine and I can validate this directly with checkdmarc and it works as expected.

--

The SPF works fine and no issues so this error is not valid -- unless I'm missing something here but I've checked multiple times.

--

Ill try and look at the code to see if I can see the issue here but just reporting my current issue.

@EmailKarma
Copy link

Another working example of this is for gmail.com's SPF lookup

"spf": {
"record": "v=spf1 redirect=_spf.google.com",
"valid": false,
"dns_void_lookups": null,
"warnings": [],
"error": "gmail.com: Expected mechanism or end_of_statement at position 15 (marked with ➞) in: v=spf1 redirect➞=_spf.google.com"

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

No branches or pull requests

2 participants