Syntax error in the SPF policy - ORF Forums

Syntax error in the SPF policy RSS Back to forum


Good afternoon!

ORF finds a syntax error in the SPF policy for the domain when checking mail coming from this domain. At the same time, the parser on your site, considers this policy to be correct.
Here is the policy "v=spf1 ip4: ip4: ~all".
What could be the problem?

by aleksey.fomin 2 years ago

@aleksey.fomin: Hello Aleksey,

The problem is caused by a TAB character inside the SPF policy (marked with \t below):

v=spf1 ip4:\tip4: ~all

As per RFC7208, SPF terms must be separated by a whitespace (0x20, ASCII 32) character and TAB is not mentioned as a legitimate separator. Due to this, ORF attempts to evaluate "ip4:\tip4:" as an SPF term, which then fails due to a syntax error. I hope this helps.


by Péter Karsai (Vamsoft) 2 years ago
(in reply to this post)

New comment

Fill in the form below to add a new comment. All fields are required. If you are a registered user on our site, please sign in first.

It will not be published.
hnp1 | hnp2