Open Pascal76 opened 1 year ago
The RFC doesn't declare that an SPF record must be terminated with "all" or with "redirect".
Here's what it says:
If none of the mechanisms match and there is no "redirect" modifier, then the check_host() returns a result of "neutral", just as if "?all" were specified as the last directive.
That is the error I got here: https://dnschecker.org/spf-record-validation.php
This library has been written by following the rules specified in RFC 7208; I don't think I'm not going to update the library to reflect what other services do, in particular if they don't follow the RFC,
maybe just a warning / notice (not an error) , saying the rule is not enforced ?
\SPFLib\OnlineSemanticValidator should raise an error or warning for such content: v=spf1 ip4:185.132.182.57 from spf-0016fe01.pphosted.com (from nl-it.privalia.com)