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

Returns PermanentError on invalid include #2

Open
kristho91 opened this issue Nov 9, 2021 · 1 comment
Open

Returns PermanentError on invalid include #2

kristho91 opened this issue Nov 9, 2021 · 1 comment
Assignees
Labels
v2 To be completed in v2

Comments

@kristho91
Copy link

SpfResolver.CheckHost(
    address: IPAddress.Parse("1.1.1.1"),
    domainName: "domain.com",
    sender: "[email protected]",
    heloDomain: "domain.com",
    hostDomain: "other.com");

SPF for domain.com:
v=spf1 include:a.com ipv4:1.1.1.1 -all

SPF for a.com:
NONE

This example will return PermanentError, because a.com is invalid - but the email I'm checking is valid, due to ipv4:1.1.1.1 coming after.

But if the SPF for domain.com was:
v=spf1 ipv4:1.1.1.1 include:a.com -all

It would work fine.
The order of the items in SPF record should not matter :)

@danielsen
Copy link
Owner

Thanks for the report. I'll check it out.

@danielsen danielsen self-assigned this Nov 11, 2021
@danielsen danielsen added the v2 To be completed in v2 label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 To be completed in v2
Projects
None yet
Development

No branches or pull requests

2 participants