User name: Rasp
TITLE
SPF cannot be checked when local SPF rule provided in Plesk
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
CentOS 7.8.2003 (Core), Plesk 18.0.27 Update #1
PROBLEM DESCRIPTION
When a local SPF rule is provided in Plesk the SPF checked is not performed in some cases because the SPF rule (somehow) becomes invalid. For example the SPF check is not performed (when a local rule is provided) on email messages received from Gmail or any Gsuite domain (with a SPF record configured).
In my case I've set
In the mail log there are the following entries:
If I understand the documentation correctly the local SPF rule is concatenated to the actual senders domain. So imagine the SPF rule gets rewritten to
This becomes some what of a (security) issue for domains using Gsuite (at least for those that have an strict SPF record configured). Because in this case the SPF always becomes invalid and as a result an email always passes the SPF check.
STEPS TO REPRODUCE
Setup a local SPF rule that uses the include syntax. Send a email from an Gmail account to a mailbox on the Plesk server.
ACTUAL RESULT
SPF not checked
EXPECTED RESULT
SPF check should not fail as the syntax is valid.
ANY ADDITIONAL INFORMATION
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
SPF cannot be checked when local SPF rule provided in Plesk
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
CentOS 7.8.2003 (Core), Plesk 18.0.27 Update #1
PROBLEM DESCRIPTION
When a local SPF rule is provided in Plesk the SPF checked is not performed in some cases because the SPF rule (somehow) becomes invalid. For example the SPF check is not performed (when a local rule is provided) on email messages received from Gmail or any Gsuite domain (with a SPF record configured).
In my case I've set
include:spf.antispamcloud.com
as a local SPF rule. When an email is received from an Gmail sender the SPF check is not performed. This becomes apparent in the mail header with:Received-SPF: none (test.hostname.com: no valid SPF record)
In the mail log there are the following entries:
spf[6404]: Starting the spf filter...
spf[6404]: Error code: (31) include: or redirect= caused unlimited recursion
spf[6404]: SPF result: none
spf[6404]: SPF status: PASS
If I understand the documentation correctly the local SPF rule is concatenated to the actual senders domain. So imagine the SPF rule gets rewritten to
v=spf1 redirect=_spf.google.com include:spf.antispamcloud.com
. Which, as far as I can tell from the rfc7208 specification is a valid syntax. But some how it seems to fail the SPF check in Plesk. This becomes some what of a (security) issue for domains using Gsuite (at least for those that have an strict SPF record configured). Because in this case the SPF always becomes invalid and as a result an email always passes the SPF check.
STEPS TO REPRODUCE
Setup a local SPF rule that uses the include syntax. Send a email from an Gmail account to a mailbox on the Plesk server.
ACTUAL RESULT
SPF not checked
EXPECTED RESULT
SPF check should not fail as the syntax is valid.
ANY ADDITIONAL INFORMATION
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug