SPF Check ValidationResults have no explaination

Dec 4, 2015 at 6:45 PM

I call the SPF check like this:
validator.CheckHostAsync(ipAddress, domain, "", true);

where the true, is for the "ExpandExplanation" argument. However, when the SPF check fails, I the ValidationResult.Explanation is never populated.

Anything else I need to do to get the explanation?

Dec 7, 2015 at 9:04 AM

The Explanation is only populated if the SPF record contains a "exp" modifier and the result of CheckHost is "Fail" (as stated in RFC 4408 section 6.2)
Are you sure, that there are "exp" modifiers in the records you checked?

Dec 7, 2015 at 5:45 PM
I see, I misunderstood the Explanation field, as I wasn't aware it was part of the SPF spec. I thought this field was the library providing information on why the SPF check failed.

Thanks for informing me!