Syntax error in the SPF policy - ORF Forums

Syntax error in the SPF policy RSS Back to forum

1

Good afternoon!

ORF finds a syntax error in the SPF policy for the domain dnb.ru 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:46.28.17.0/24 ip4:109.68.190.132 ~all".
What could be the problem?

by aleksey.fomin 2 years ago
2

@aleksey.fomin: Hello Aleksey,

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

v=spf1 ip4:46.28.17.0/24\tip4:109.68.190.132 ~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:46.28.17.0/24\tip4:109.68.190.132" as an SPF term, which then fails due to a syntax error. I hope this helps.

Peter

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