Skip to content

Returns PermanentError on invalid include #2

Description

@kristho91
SpfResolver.CheckHost(
    address: IPAddress.Parse("1.1.1.1"),
    domainName: "domain.com",
    sender: "bob@domain.com",
    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 :)

Metadata

Metadata

Assignees

Labels

v2To be completed in v2

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions