Plesk for Windows
kb: how-to
Plesk for Linux
ABT: Group B
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
- How to change the SPF record for a domain in Plesk?
Answer
By default, Plesk has the following SPF TXT DNS record preconfigured for domains:
CONFIG_TEXT: example.com TXT v=spf1 +a +mx +a:server.example.com -all
The parts of this record mean the following:
Part | Description |
---|---|
v=spf1 |
The domain uses SPF of the version 1. |
+a |
All the hosts from the A records are authorized to send mail. |
+mx |
All the hosts from the MX records are authorized to send mail. |
+a:server.example.com |
In the example, the Plesk server hostname is server.example.com and it is authorized to send mail. Remember that the Plesk server hostname you use in your case will be different and should be resolvable. |
-all |
All other domains are not authorized to send mail. |
|
That is the full SPF record text when everything mentioned above is combined |
If it is necessary to adjust the record, you may do so by using the steps in the following article:
How to edit DNS zone records for a Plesk domain?
You can find more information about the syntax of SPF DNS records
SPF: SPF Record Syntax
The exact policy notation is available on the following link:
RFC 7208 - Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1
Comments
2 comments
Hi,
Sorry, I didn't understand...
You write:
+a:server.example.com
it is mandatory to write the word 'server' (do i need to create a 'server' subdomain?)
or simply
+a:example.com
Thanks for the answer
Ghe In the example, server.example.com is set to be the Plesk server hostname at Plesk > Tools & Settings > Server Settings.
In your SPF record, you should use whichever Full hostname you have set on your Plesk server at Plesk > Tools & Settings > Server Settings.
As another example, if your Plesk server hostname is set to be myfirstserver.net at Plesk > Tools & Settings > Server Settings, your default SPF record for the domain example.com should be
example.com TXT v=spf1 +a +mx +a:myfirstserver.net -all
Please sign in to leave a comment.