How to Add SPF Record to Cloudflare

Sender Policy Framework (SPF), is an e-mail authentication technique that synchronizes with the Domain Name System. SPF is a kind of DNS TXT report itemizing the IP addresses permitted to ship emails from a selected area. 

What is Cloudflare? Cloudflare is a content material supply community (CDN) and distributed DNS (Domain Name System) service operated by Cloudflare, Inc. It supplies a worldwide CDN with a give attention to safety and efficiency. Cloudflare’s providers embody a web site’s customer and the Cloudflare person’s internet hosting supplier, performing as a reverse proxy for web sites. 

Cloudflare was launched in 2009 by Matthew Prince, Lee Holloway, and Michelle Zatlyn, who had beforehand labored collectively on Project Honey Pot.

To enhance email deliverability and mitigate phishing, spoofing, and spamming, you want to implement SPF with DKIM and DMARC.

How to Add SPF Record to Cloudflare

Adding an SPF report to your Cloudflare DNS settings will assist to be sure that emails despatched out of your area will not be marked as spam.

How to Generate an SPF Record?

To create an SPF report, you want to outline what sources you’ll use for sending emails on behalf of your area and establish all these sources in your SPF report. 

To enable just one particular server to ship emails on behalf of your area, then specify that server’s IP tackle in your SPF report. In case of permitting solely the server with IP tackle to ship emails on behalf of your area, then your SPF report would appear to be this:

v=spf1 ip4: ~all 

Here are some steps on how to add SPF report in Cloudflare:

Step 1. Add the SPF Record to Your Cloudflare account

  1. Log in to your Cloudflare account
  2. Click in your area discipline 
  3. Head to the DNS part 
  4. Click “Add” Record

Step 2. Add your SPF Type, Host, and Content

  1. In the DNS part, discover the Type, Name (required), and Content (required) fields
  2. Fill within the fields, as proven within the screenshot beneath


Here’s an instance of a case, the place we whitelisted Zoho’s SPF in our DNS zone.

Type Host Content
TXT Record @ v=spf1 ~all

Step 3. Add the IPs within the Same SPF Record

If you’re utilizing sources that solely have an IP tackle you possibly can add IPs in SPF report.


Here’s an instance on how to fill it:

Type Host Content
TXT Record @ v=spf1 ip4: ~all

Step 4. Finish your Cloudflare SPF Setup

Click “Save” to end your Cloudflare SPF setup and that is how to add an SPF report in Cloudflare.


Important Recommendations

Having a number of SPF Records for a single root area is a nasty observe and leads to authentication failure. If you utilize a number of sources inside your group, it’s essential to have them whitelisted in a single SPF Record.


How Can EasyDMARC Help?

Ensuring your e-mail server is safe and solely sending authentic emails is crucial for your online business, clients, and fame. 

Now that you just’ve added an SPF report to your Cloudflare account, you possibly can advance your e-mail safety additional by establishing DKIM and DMARC, taking tried and true steps towards DMARC compliance.  

Want to be taught extra? Explore EasyDMARC tools by signing up in our platform.

The publish How to Add SPF Record to Cloudflare appeared first on EasyDMARC.

*** This is a Security Bloggers Network syndicated weblog from EasyDMARC authored by Knarik Petrosyan. Read the unique publish at:

Related Posts