How do I add an SPF record?
Sender Policy Frame (SPF) record specifies the list of approved hostnames (or IPs) from where email can originate for a particular domain.
To set up an SPF record:
- Log into your Cloudflare Account.
- From the drop-down on the top left, select your domain.
- Click the DNS app at the top of the page.
- Under DNS Records, complete the fields for your TXT record, including your SPF values record (see image below).
- Choose TXT. Enter the Name of the record and its corresponding value.
- (optional) Add your SPF format record string under the value section and click Add Record. Note that the SPF format has been deprecated due to the DNS RFC and thus, you should always have at least the TXT record definition present, even if you use the SPF type.
The mechanisms can be prefixed with one of four qualifiers:
Prefix | Qualifier |
---|---|
+ | Pass |
- | Fail |
~ | Soft Fail |
? | Neutral |
Evaluation of an SPF record can return any of these results:
Pass | Explanation | Intended action |
---|---|---|
Pass | The SPF record designates the host to be allowed to send. | Accept |
Fail | The SPF record has designated the host as NOT being allowed to send. | Reject |
SoftFail | The SPF record has designated the host as NOT being allowed to send but is in transition. | Accept but mark |
Neutral | The SPF record specifies explicitly that nothing can be said about the validity. | Accept |
None | The domain does not have an SPF record or the SPF record does not evaluate to a result. | Accept |
PermError | A permanent error has occurred (e.g. badly formatted SPF record). | Unspecified |
TempError | A transient error has occurred. | Accept or reject |
If you're unsure, double check what the value should be with your mail service provider.
Read more about Cloudflare's DNS services.
No comments:
Post a Comment