{"id":31355,"date":"2022-11-18T20:00:18","date_gmt":"2022-11-18T20:00:18","guid":{"rendered":"https:\/\/easydmarc.com\/blog\/?p=31355"},"modified":"2026-05-05T12:30:52","modified_gmt":"2026-05-05T12:30:52","slug":"how-to-setup-cloudflare-spf-record-step-by-step","status":"publish","type":"post","link":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/","title":{"rendered":"How to Set Up Cloudflare SPF Record: Step-by-Step"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Most email deliverability problems start long before your campaign hits the inbox. They begin at the DNS level, where mailbox providers decide whether your domain is a real sender or just another impersonator. If you are using Cloudflare and your emails are landing in spam or getting rejected, your SPF setup is one of the first things to check.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Learning how to set up a Cloudflare SPF record correctly helps you control who is allowed to send emails on your behalf, prevents domain spoofing, and builds trust with Gmail, Outlook, and other major providers.<\/span><\/p>\n<h2><b>How to Add SPF Record to Cloudflare<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Adding an SPF record to your Cloudflare DNS settings will help to ensure that emails sent from your domain are not marked as spam.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A properly configured Cloudflare SPF record tells mailbox providers like Gmail and Outlook which servers are authorized to send emails for your domain. This improves deliverability and reduces the risk of spoofing or phishing using your domain name.<\/span><\/p>\n<h3><b>How to Generate an SPF Record?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">To create an SPF record, you need to define what sources you will use for sending emails on behalf of your domain and identify all those sources in your SPF record.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">These sources can include your web hosting provider, email service providers such as Zoho or Google Workspace, CRM tools, and any third-party tools that send emails on your behalf. All of them must be listed in the same SPF record Cloudflare will store in DNS.\u00a0 You can use <\/span><a href=\"https:\/\/easydmarc.com\/tools\/spf-record-generator\"><span style=\"font-weight: 400;\">EasyDMARC\u2019s SPF record generator <\/span><\/a><span style=\"font-weight: 400;\">for an easy and error-free process.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To allow only one specific server to send emails on behalf of your domain, specify that server\u2019s IP address in your SPF record. In case of allowing only the server with IP address 1.2.3.4 to send emails on behalf of your domain, then your SPF record would look like this:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">v=spf1 ip4:1.2.3.4 ~all\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This means only this IP is allowed to send emails; all others should be treated as suspicious.<\/span><\/p>\n<h3><b>Step 1. Add the SPF Record to Your Cloudflare account<\/b><\/h3>\n<ol>\n<li><span style=\"font-weight: 400;\">Log in to your Cloudflare account<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Click on your domain field\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Head to the DNS section\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Click <\/span><span style=\"font-weight: 400;\">&#8220;Add&#8221; <\/span><span style=\"font-weight: 400;\">Record<\/span><\/li>\n<\/ol>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-31356\" title=\"oi\" src=\"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/oi.png\" alt=\"oi\" width=\"1600\" height=\"612\" srcset=\"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/oi.png 1600w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/oi-300x115.png 300w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/oi-1024x392.png 1024w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/oi-768x294.png 768w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/oi-1536x588.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">This is the main area where you will add the SPF record to Cloudflare and manage all DNS-related settings for your domain.<\/span><\/p>\n<h3><b>Step 2. Add your SPF Type, Host, and Content<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">In the DNS section, find the Type, Name (required), and Content (required) fields, <\/span><span style=\"font-weight: 400;\">then enter the values shown in the screenshot below.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When adding a Cloudflare SPF record, always select TXT as the record type, and use @ in the Host field for the root domain.<\/span><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-31361\" title=\"yt\" src=\"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/yt.png\" alt=\"yt\" width=\"1600\" height=\"610\" srcset=\"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/yt.png 1600w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/yt-300x114.png 300w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/yt-1024x390.png 1024w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/yt-768x293.png 768w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/yt-1536x586.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Here\u2019s an example of a case, where we whitelisted Zoho\u2019s SPF in our DNS zone.<\/span><\/p>\n<table style=\"height: 159px;\" width=\"581\">\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">Type<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Host<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Content<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">TXT Record<\/span><\/td>\n<td><span style=\"font-weight: 400;\">@<\/span><\/td>\n<td><span style=\"font-weight: 400;\">v=spf1 include:zoho.com ~all<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><b>Step 3. Add the IPs in the Same SPF Record<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">If you\u2019re using sources that only have an IP address you can add IPs in SPF record.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Make sure you don\u2019t create multiple SPF records. Cloudflare allows only one valid SPF record per domain, so all sources must be combined into a single line.<\/span><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-31366\" title=\"cde\" src=\"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/cde.png\" alt=\"cde\" width=\"1600\" height=\"608\" srcset=\"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/cde.png 1600w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/cde-300x114.png 300w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/cde-1024x389.png 1024w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/cde-768x292.png 768w, https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/cde-1536x584.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Here\u2019s an example on how to fill it:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p><b>Type<\/b><\/p>\n<\/td>\n<td>\n<p><b>Host<\/b><\/p>\n<\/td>\n<td>\n<p><b>Content<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400;\">TXT Record<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400;\">@<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400;\">v=spf1 ip4:169.148.146.23\/32 include:zoho.com ~all<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><b>Step 4. Finish your Cloudflare SPF Setup<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Click \u201cSave\u201d to finish your Cloudflare SPF setup and this is how to add an SPF record in Cloudflare.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">After saving, it may take a few minutes to a few hours for DNS to fully propagate. Once done, you can use any SPF checker tool to verify that your Cloudflare SPF record is working correctly.<\/span><\/p>\n<h2><b>Common SPF Mistakes in Cloudflare and How to Fix Them<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">At times, even with a properly configured DNS setup, small configuration errors can silently affect email delivery. Below are common issues encountered with Cloudflare SPF records and how to resolve them.<\/span><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-existence-of-multiple-spf-records\"><strong>Existence of Multiple SPF Records<\/strong><\/h3>\n\n\n\n<p>One of the most common mistakes is creating more than one SPF record for the same domain in Cloudflare. This usually happens when different email tools or team members add their own records separately. Mailbox providers only read one SPF record per domain. If multiple records exist, SPF fails automatically, even if each record is technically correct on its own.<\/p>\n\n\n\n<p>To fix this, combine everything into a single record. All sending services must be listed under one v=spf1 entry when you add a SPF record to Cloudflare, instead of creating multiple TXT records.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-missing-email-services\"><strong>Missing Email Services<\/strong><\/h3>\n\n\n\n<p>Many domains that use Cloudflare rely on third-party tools, such as email marketing platforms, CRM systems, helpdesk tools, or payment systems, to send emails. If these services are not included in SPF, their emails will fail authentication. This often occurs when a new tool is added, but the DNS record is not updated. As a result, emails may end up in spam or be rejected outright.<\/p>\n\n\n\n<p>To fix this, list every platform that sends emails on your behalf and add them to your Cloudflare SPF record using the include or ip4 mechanisms.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-exceeding-the-dns-lookup-limit\"><strong>Exceeding the DNS Lookup Limit<\/strong><\/h3>\n\n\n\n<p>SPF allows a maximum of 10 DNS lookups. Complex setups with multiple email services can easily cross this limit, especially when several providers are added using chained include statements. When this happens, mailbox providers stop processing SPF and treat it as a failure, even if all sources are legitimate.<\/p>\n\n\n\n<p>You can fix this by flattening your record. An SPF flattener replaces multiple include mechanisms with direct IP addresses, reducing lookups and keeping your Cloudflare SPF record within technical limits.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Verify SPF Using an SPF Checker?<\/strong><\/h2>\n\n\n\n<p>After setting up your SPF record, it is important to verify whether it is working correctly. An SPF checker helps you confirm that your Cloudflare SPF record is valid and properly formatted.<\/p>\n\n\n\n<p>You can use the <a href=\"https:\/\/easydmarc.com\/tools\/spf-lookup\">EasyDMARC SPF record lookup tool<\/a> to instantly check your domain. Simply enter your domain name into the tool, and it will fetch your SPF record from DNS and show all authorized sending sources. This makes it easy to spot common issues like missing email services, syntax errors, or multiple SPF records that could affect deliverability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Important Recommendations<\/strong><\/h2>\n\n\n\n<p>Having multiple SPF Records for a single root domain is a bad practice and results in authentication failure. If you use multiple sources within your organization, you must have them allowlisted in a single SPF Record.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How Can EasyDMARC Help?<\/strong><\/h2>\n\n\n\n<p>Ensuring your email server is secure and that only legitimate emails are sent is essential for your business, customers, and reputation.&nbsp;<\/p>\n\n\n\n<p>Now that you\u2019ve added an SPF record to your Cloudflare account, you can further enhance your email security by setting up DKIM and DMARC, taking tried-and-true steps toward DMARC compliance.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Want to learn more? Explore <a href=\"https:\/\/easydmarc.com\/tools\" target=\"_blank\" rel=\"noreferrer noopener\">EasyDMARC tools<\/a> by signing up for our platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-frequently-asked-questions\"><strong>Frequently Asked Questions<\/strong><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777984384160\"><strong class=\"schema-faq-question\">Can I Use Cloudflare IPs in SPF?<\/strong> <p class=\"schema-faq-answer\">No, Cloudflare IPs should not be added to your SPF record unless Cloudflare is sending emails on your behalf. Cloudflare only manages DNS and traffic routing, not outbound email delivery.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1777984401151\"><strong class=\"schema-faq-question\">Does Cloudflare Automatically Create SPF Records?<\/strong> <p class=\"schema-faq-answer\">No, Cloudflare does not automatically create SPF records for your domain. You must manually add and manage your SPF record based on the email services you use to send emails.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1777984424387\"><strong class=\"schema-faq-question\">How Long Does SPF Change Take to Apply?<\/strong> <p class=\"schema-faq-answer\">SPF changes usually take a few minutes to a few hours to apply. In some cases, DNS propagation can take up to 24 or 48 hours, depending on TTL and caching.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1777984439404\"><strong class=\"schema-faq-question\">How to Check If Your Cloudflare SPF Record Is Working?<\/strong> <p class=\"schema-faq-answer\">You can check your Cloudflare SPF record by using an SPF lookup tool. Enter your domain name, and the tool will fetch the SPF record and show whether it is valid.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Most email deliverability problems start long before your &#8230;<\/p>\n","protected":false},"author":25,"featured_media":61265,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[391,205],"tags":[],"class_list":["post-31355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dns-providers","category-knowledge-base"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Set Up Cloudflare SPF Record | EasyDMARC<\/title>\n<meta name=\"description\" content=\"Learn how to add an SPF record in Cloudflare step by step to protect your domain and improve email delivery.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up Cloudflare SPF Record: Step-by-Step\" \/>\n<meta property=\"og:description\" content=\"Learn how to add an SPF record in Cloudflare step by step to protect your domain and improve email delivery.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/\" \/>\n<meta property=\"og:site_name\" content=\"EasyDMARC\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/EasyDMARC\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-18T20:00:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-05T12:30:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"910\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Hagop K.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@easydmarc\" \/>\n<meta name=\"twitter:site\" content=\"@easydmarc\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hagop K.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/\"},\"author\":{\"name\":\"Hagop K.\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/#\\\/schema\\\/person\\\/740e38b8d7f98e6c4141ae2931ca5a2a\"},\"headline\":\"How to Set Up Cloudflare SPF Record: Step-by-Step\",\"datePublished\":\"2022-11-18T20:00:18+00:00\",\"dateModified\":\"2026-05-05T12:30:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/\"},\"wordCount\":1287,\"publisher\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png\",\"articleSection\":[\"DNS Providers\",\"Knowledge Base\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/\",\"url\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/\",\"name\":\"How to Set Up Cloudflare SPF Record | EasyDMARC\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png\",\"datePublished\":\"2022-11-18T20:00:18+00:00\",\"dateModified\":\"2026-05-05T12:30:52+00:00\",\"description\":\"Learn how to add an SPF record in Cloudflare step by step to protect your domain and improve email delivery.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984384160\"},{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984401151\"},{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984424387\"},{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984439404\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#primaryimage\",\"url\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png\",\"contentUrl\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png\",\"width\":1440,\"height\":910},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/easydmarc.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/category\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"DNS Providers\",\"item\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/category\\\/knowledge-base\\\/dns-providers\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Set Up Cloudflare SPF Record: Step-by-Step\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/\",\"name\":\"EasyDMARC\",\"description\":\"Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/#organization\",\"name\":\"EasyDMARC\",\"url\":\"https:\\\/\\\/easydmarc.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/easydmarc.com\\\/img\\\/logo.png\"},\"image\":{\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/EasyDMARC\\\/\",\"https:\\\/\\\/x.com\\\/easydmarc\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/easydmarc\\\/mycompany\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/#\\\/schema\\\/person\\\/740e38b8d7f98e6c4141ae2931ca5a2a\",\"name\":\"Hagop K.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb6e65e2ae3c6e57f798515a978995b899d1d972034c909397efad978249be85?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb6e65e2ae3c6e57f798515a978995b899d1d972034c909397efad978249be85?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb6e65e2ae3c6e57f798515a978995b899d1d972034c909397efad978249be85?s=96&r=g\",\"caption\":\"Hagop K.\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/hagopkhatchoian\\\/\"],\"url\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/author\\\/hagop-khatchoian\\\/\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984384160\",\"position\":1,\"url\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984384160\",\"name\":\"Can I Use Cloudflare IPs in SPF?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No, Cloudflare IPs should not be added to your SPF record unless Cloudflare is sending emails on your behalf. Cloudflare only manages DNS and traffic routing, not outbound email delivery.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984401151\",\"position\":2,\"url\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984401151\",\"name\":\"Does Cloudflare Automatically Create SPF Records?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No, Cloudflare does not automatically create SPF records for your domain. You must manually add and manage your SPF record based on the email services you use to send emails.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984424387\",\"position\":3,\"url\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984424387\",\"name\":\"How Long Does SPF Change Take to Apply?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"SPF changes usually take a few minutes to a few hours to apply. In some cases, DNS propagation can take up to 24 or 48 hours, depending on TTL and caching.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984439404\",\"position\":4,\"url\":\"https:\\\/\\\/easydmarc.com\\\/blog\\\/how-to-setup-cloudflare-spf-record-step-by-step\\\/#faq-question-1777984439404\",\"name\":\"How to Check If Your Cloudflare SPF Record Is Working?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"You can check your Cloudflare SPF record by using an SPF lookup tool. Enter your domain name, and the tool will fetch the SPF record and show whether it is valid.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Set Up Cloudflare SPF Record | EasyDMARC","description":"Learn how to add an SPF record in Cloudflare step by step to protect your domain and improve email delivery.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up Cloudflare SPF Record: Step-by-Step","og_description":"Learn how to add an SPF record in Cloudflare step by step to protect your domain and improve email delivery.","og_url":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/","og_site_name":"EasyDMARC","article_publisher":"https:\/\/www.facebook.com\/EasyDMARC\/","article_published_time":"2022-11-18T20:00:18+00:00","article_modified_time":"2026-05-05T12:30:52+00:00","og_image":[{"width":1440,"height":910,"url":"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png","type":"image\/png"}],"author":"Hagop K.","twitter_card":"summary_large_image","twitter_creator":"@easydmarc","twitter_site":"@easydmarc","twitter_misc":{"Written by":"Hagop K.","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#article","isPartOf":{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/"},"author":{"name":"Hagop K.","@id":"https:\/\/easydmarc.com\/blog\/#\/schema\/person\/740e38b8d7f98e6c4141ae2931ca5a2a"},"headline":"How to Set Up Cloudflare SPF Record: Step-by-Step","datePublished":"2022-11-18T20:00:18+00:00","dateModified":"2026-05-05T12:30:52+00:00","mainEntityOfPage":{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/"},"wordCount":1287,"publisher":{"@id":"https:\/\/easydmarc.com\/blog\/#organization"},"image":{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#primaryimage"},"thumbnailUrl":"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png","articleSection":["DNS Providers","Knowledge Base"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/","url":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/","name":"How to Set Up Cloudflare SPF Record | EasyDMARC","isPartOf":{"@id":"https:\/\/easydmarc.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#primaryimage"},"image":{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#primaryimage"},"thumbnailUrl":"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png","datePublished":"2022-11-18T20:00:18+00:00","dateModified":"2026-05-05T12:30:52+00:00","description":"Learn how to add an SPF record in Cloudflare step by step to protect your domain and improve email delivery.","breadcrumb":{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984384160"},{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984401151"},{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984424387"},{"@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984439404"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#primaryimage","url":"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png","contentUrl":"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png","width":1440,"height":910},{"@type":"BreadcrumbList","@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/easydmarc.com\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/easydmarc.com\/blog\/category\/knowledge-base\/"},{"@type":"ListItem","position":3,"name":"DNS Providers","item":"https:\/\/easydmarc.com\/blog\/category\/knowledge-base\/dns-providers\/"},{"@type":"ListItem","position":4,"name":"How to Set Up Cloudflare SPF Record: Step-by-Step"}]},{"@type":"WebSite","@id":"https:\/\/easydmarc.com\/blog\/#website","url":"https:\/\/easydmarc.com\/blog\/","name":"EasyDMARC","description":"Blog","publisher":{"@id":"https:\/\/easydmarc.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/easydmarc.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/easydmarc.com\/#organization","name":"EasyDMARC","url":"https:\/\/easydmarc.com\/","logo":{"@type":"ImageObject","url":"https:\/\/easydmarc.com\/img\/logo.png"},"image":{"@id":"https:\/\/easydmarc.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/EasyDMARC\/","https:\/\/x.com\/easydmarc","https:\/\/www.linkedin.com\/company\/easydmarc\/mycompany\/"]},{"@type":"Person","@id":"https:\/\/easydmarc.com\/blog\/#\/schema\/person\/740e38b8d7f98e6c4141ae2931ca5a2a","name":"Hagop K.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bb6e65e2ae3c6e57f798515a978995b899d1d972034c909397efad978249be85?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bb6e65e2ae3c6e57f798515a978995b899d1d972034c909397efad978249be85?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb6e65e2ae3c6e57f798515a978995b899d1d972034c909397efad978249be85?s=96&r=g","caption":"Hagop K."},"sameAs":["https:\/\/www.linkedin.com\/in\/hagopkhatchoian\/"],"url":"https:\/\/easydmarc.com\/blog\/author\/hagop-khatchoian\/"},{"@type":"Question","@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984384160","position":1,"url":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984384160","name":"Can I Use Cloudflare IPs in SPF?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No, Cloudflare IPs should not be added to your SPF record unless Cloudflare is sending emails on your behalf. Cloudflare only manages DNS and traffic routing, not outbound email delivery.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984401151","position":2,"url":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984401151","name":"Does Cloudflare Automatically Create SPF Records?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No, Cloudflare does not automatically create SPF records for your domain. You must manually add and manage your SPF record based on the email services you use to send emails.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984424387","position":3,"url":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984424387","name":"How Long Does SPF Change Take to Apply?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"SPF changes usually take a few minutes to a few hours to apply. In some cases, DNS propagation can take up to 24 or 48 hours, depending on TTL and caching.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984439404","position":4,"url":"https:\/\/easydmarc.com\/blog\/how-to-setup-cloudflare-spf-record-step-by-step\/#faq-question-1777984439404","name":"How to Check If Your Cloudflare SPF Record Is Working?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"You can check your Cloudflare SPF record by using an SPF lookup tool. Enter your domain name, and the tool will fetch the SPF record and show whether it is valid.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"jetpack_featured_media_url":"https:\/\/easydmarc.com\/blog\/wp-content\/uploads\/2022\/11\/SPF-Alignment_-Why-it-is-Important-for-improving-DMARC.png","_links":{"self":[{"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/posts\/31355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/comments?post=31355"}],"version-history":[{"count":1,"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/posts\/31355\/revisions"}],"predecessor-version":[{"id":61266,"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/posts\/31355\/revisions\/61266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/media\/61265"}],"wp:attachment":[{"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/media?parent=31355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/categories?post=31355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easydmarc.com\/blog\/wp-json\/wp\/v2\/tags?post=31355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}