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-parse doesn't fail on invalid terms per RFC4408 #2

Open
pboyd04 opened this issue Feb 24, 2019 · 0 comments
Open

spf-parse doesn't fail on invalid terms per RFC4408 #2

pboyd04 opened this issue Feb 24, 2019 · 0 comments

Comments

@pboyd04
Copy link

pboyd04 commented Feb 24, 2019

From RFC4408 the system should find if the record is invalid, however spf-parse says that extra unknown terms are just a warning and flags the parsed string as valid.

Here is the relevant portion of the RFC:

4.6. Record Evaluation

After one SPF record has been selected, the check_host() function
parses and interprets it to find a result for the current test. If
there are any syntax errors, check_host() returns immediately with
the result "PermError".

Implementations MAY choose to parse the entire record first and
return "PermError" if the record is not syntactically well formed.
However, in all cases, any syntax errors anywhere in the record MUST
be detected.

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

1 participant