{"id":74433,"date":"2023-09-07T17:54:51","date_gmt":"2023-09-07T17:54:51","guid":{"rendered":"https:\/\/mailrelay.com\/glosario\/spf-sender-policy-framework\/"},"modified":"2026-10-07T00:37:11","modified_gmt":"2026-10-07T00:37:11","slug":"spf-sender-policy-framework","status":"publish","type":"glossary","link":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/","title":{"rendered":"SPF (Sender Policy Framework)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>SPF (Sender Policy Framework) is a DNS record that specifies which servers can send emails on behalf of your domain.<\/strong>  When an email arrives, the receiving server checks that list. If the sender isn&#8217;t on it, the server gets suspicious.<\/p>\n\n<p class=\"wp-block-paragraph\">Think of a party&#8217;s guest list. Whoever is on it gets in; whoever isn&#8217;t stays at the door or is let in with caution.<\/p>\n\n<p class=\"wp-block-paragraph\">Without that list, anyone could send emails pretending to be your company.<\/p>\n\n<h2 class=\"wp-block-heading\">What is SPF?<\/h2>\n\n<p class=\"wp-block-paragraph\">It is an email authentication standard defined in RFC 7208 (2014). It is published as a TXT record in your domain&#8217;s DNS and always starts with v=spf1.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Its goal is to stop sender spoofing.<\/strong> It is one of the three pillars of <a href=\"https:\/\/mailrelay.com\/en\/glossary\/email-authentication\/\" target=\"_blank\" rel=\"noopener\">email authentication<\/a>, along with <a href=\"https:\/\/mailrelay.com\/en\/glossary\/dkim-domainkeys-identified-mail\/\" target=\"_blank\" rel=\"noopener\">DKIM<\/a> and <a href=\"https:\/\/mailrelay.com\/en\/glossary\/dmarc\/\" target=\"_blank\" rel=\"noopener\">DMARC<\/a>.<\/p>\n\n<h2 class=\"wp-block-heading\">How does SPF work?<\/h2>\n\n<p class=\"wp-block-paragraph\">The check takes seconds, every time a server receives an email.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-1024x576.png\" alt=\"How SPF works in 4 steps: your server sends the email, the receiver reads the Return-Path, checks your SPF record in the DNS and the authorized IP gives spf=pass\" class=\"wp-image-98193\" srcset=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-1024x576.png 1024w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-300x169.png 300w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-768x432.png 768w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-1536x864.png 1536w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-110x62.png 110w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-60x34.png 60w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos.png 1672w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n<h3 class=\"wp-block-heading\">1. Your server sends the email<\/h3>\n\n<p class=\"wp-block-paragraph\">The message leaves from a specific IP: that of your mail server or that of your email marketing platform.<\/p>\n\n<h3 class=\"wp-block-heading\">2. The receiver looks at the technical sender&#8217;s domain<\/h3>\n\n<p class=\"wp-block-paragraph\">It reads the domain of the return address (Return-Path), the one that receives bounces. It isn&#8217;t always the same one the recipient sees in the &#8220;From&#8221; field.<\/p>\n\n<h3 class=\"wp-block-heading\">3. It checks the record in your DNS<\/h3>\n\n<p class=\"wp-block-paragraph\">It looks for the TXT record starting with v=spf1 on that domain and gets the list of authorized servers.<\/p>\n\n<h3 class=\"wp-block-heading\">4. It compares the IP and decides<\/h3>\n\n<p class=\"wp-block-paragraph\">If the IP is on the list, the result is <strong>spf=pass<\/strong>. If it isn&#8217;t, the result depends on how your record ends: fail, softfail or neutral.<\/p>\n\n<h2 class=\"wp-block-heading\">What an SPF record looks like<\/h2>\n\n<p class=\"wp-block-paragraph\">A typical example:<\/p>\n\n<p class=\"wp-block-paragraph\">v=spf1 a mx include:spf.ipzmarketing.com -all<\/p>\n\n<p class=\"wp-block-paragraph\">Each part has a meaning:<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Part<\/th><th>What it indicates<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td>v=spf1<\/td><td>Version (required, always at the start)<\/td><td>v=spf1<\/td><\/tr><tr><td>a<\/td><td>Authorizes the domain&#8217;s IP<\/td><td>a<\/td><\/tr><tr><td>mx<\/td><td>Authorizes the domain&#8217;s mail servers<\/td><td>mx<\/td><\/tr><tr><td>ip4 \/ ip6<\/td><td>Authorizes a specific IP or range<\/td><td>ip4:192.0.2.10<\/td><\/tr><tr><td>include<\/td><td>Authorizes another provider&#8217;s servers<\/td><td>include:provider-domain.com<\/td><\/tr><tr><td>all<\/td><td>What to do with everything else (always at the end)<\/td><td>-all<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h2 class=\"wp-block-heading\">What -all, ~all and ?all mean<\/h2>\n\n<p class=\"wp-block-paragraph\">The end of the record tells the receiver what to do with servers that aren&#8217;t on your list:<\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Ending<\/th><th>Result<\/th><th>What the receiver usually does<\/th><\/tr><\/thead><tbody><tr><td>-all<\/td><td>Fail<\/td><td>Reject the email or send it to spam<\/td><\/tr><tr><td>~all<\/td><td>Softfail (soft failure)<\/td><td>Accept it, but flag it as suspicious<\/td><\/tr><tr><td>?all<\/td><td>Neutral<\/td><td>Ignore the result<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\"><strong>If all your sending services are already on the list, use -all.<\/strong>  If you&#8217;re not sure, start with ~all and review your sends before tightening it. Avoid +all: it authorizes any server in the world.<\/p>\n\n<h2 class=\"wp-block-heading\">Why is this so important?<\/h2>\n\n<p class=\"wp-block-paragraph\"><strong>Because the major providers already require it.<\/strong>  Since February 2024, Gmail and Yahoo require SPF or DKIM from all senders, and all three protocols from anyone sending more than 5,000 emails a day. Microsoft has applied similar requirements in Outlook since May 2025.<\/p>\n\n<p class=\"wp-block-paragraph\">It also protects your domain from phishing and improves your <a href=\"https:\/\/mailrelay.com\/en\/glossary\/deliverability-in-email-marketing\/\" target=\"_blank\" rel=\"noopener\">deliverability<\/a>. A domain without this record is easier to spoof and inspires less trust.<\/p>\n\n<p class=\"wp-block-paragraph\">That said, it has two limitations. It checks the Return-Path, not the visible &#8220;From&#8221;, and it fails when another server forwards the email. That&#8217;s why it&#8217;s combined with DKIM and DMARC.<\/p>\n\n<div class=\"wp-block-group has-very-light-gray-background-color has-background\" style=\"border-radius:8px;padding-top:24px;padding-right:28px;padding-bottom:24px;padding-left:28px\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Authenticate your domain and reach the inbox<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set up SPF, DKIM and DMARC in Mailrelay and send up to 80,000 emails a month for free to 20,000 contacts.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-mailrelay-primary-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/mailrelay.com\/en\/signup\/?utm_medium=cta&amp;utm_campaign=spf\">Create a free account<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n<h2 class=\"wp-block-heading\">How to create an SPF record step by step<\/h2>\n\n<p class=\"wp-block-paragraph\">All you need is access to your domain&#8217;s DNS panel and the list of services that send on your behalf.<\/p>\n\n<h3 class=\"wp-block-heading\">1. List who sends with your domain<\/h3>\n\n<p class=\"wp-block-paragraph\">Include your business email, your email marketing platform, your CRM, your online store or your invoicing tool.<\/p>\n\n<h3 class=\"wp-block-heading\">2. Gather each provider&#8217;s include<\/h3>\n\n<p class=\"wp-block-paragraph\">Each service gives you theirs in its help docs. You&#8217;ll find Mailrelay&#8217;s at the end of this page.<\/p>\n\n<h3 class=\"wp-block-heading\">3. Create or edit the TXT record in your DNS<\/h3>\n\n<p class=\"wp-block-paragraph\">Write a single record with all of them and end it with -all or ~all. If you already have one, add the new include; don&#8217;t create another one.<\/p>\n\n<h3 class=\"wp-block-heading\">4. Check that it works<\/h3>\n\n<p class=\"wp-block-paragraph\">Send yourself an email to Gmail and open &#8220;Show original&#8221;. You should see <strong>SPF: PASS<\/strong>. You can also use tools like MXToolbox.<\/p>\n\n<h2 class=\"wp-block-heading\">Common mistakes when setting it up<\/h2>\n\n<p class=\"wp-block-paragraph\"><strong>The most common one is having two records of this type on the same domain.<\/strong>  Receivers treat this as an error and the check fails.<\/p>\n\n<p class=\"wp-block-paragraph\">Other common mistakes:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>exceeding the limit of 10 DNS lookups (every include, a or mx counts);<\/li>\n\n\n\n<li>forgetting a service that sends on your behalf, such as your CRM;<\/li>\n\n\n\n<li>using +all, which authorizes anyone;<\/li>\n\n\n\n<li>putting all in the middle of the record instead of at the end.<\/li>\n<\/ul>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/spf-all-softfail-neutral-1024x576.png\" alt=\"What each ending of an SPF record means: -all fails and is rejected, ~all is a soft failure and ?all is neutral\" class=\"wp-image-98196\" srcset=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/spf-all-softfail-neutral-1024x576.png 1024w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/spf-all-softfail-neutral-300x169.png 300w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/spf-all-softfail-neutral-768x432.png 768w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/spf-all-softfail-neutral-1536x864.png 1536w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/spf-all-softfail-neutral-110x62.png 110w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/spf-all-softfail-neutral-60x34.png 60w, https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/spf-all-softfail-neutral.png 1672w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\">How to set up SPF in Mailrelay<\/h2>\n\n<p class=\"wp-block-paragraph\">In <a href=\"https:\/\/mailrelay.com\/en\/\" target=\"_blank\" rel=\"noopener\">Mailrelay<\/a>, all you need to do is add <strong>include:spf.ipzmarketing.com<\/strong> to your record. If you don&#8217;t have one yet, use the example in the &#8220;What an SPF record looks like&#8221; section.<\/p>\n\n<p class=\"wp-block-paragraph\">Then set up DKIM and DMARC as well, and check that everything is correct in Settings \u2192 Email authentication. You&#8217;ll find all three records together in the <a href=\"https:\/\/mailrelay.com\/en\/glossary\/sending-domain\/\" target=\"_blank\" rel=\"noopener\">sending domain<\/a> guide.<\/p>\n\n<p class=\"wp-block-paragraph\">If you have questions, support helps you by chat, ticket or phone on every plan, including the free account.<\/p>\n\n<div class=\"wp-block-group has-very-light-gray-background-color has-background\" style=\"border-radius:8px;padding-top:24px;padding-right:28px;padding-bottom:24px;padding-left:28px\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Send authenticated campaigns with your domain<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add the record in minutes and, if you get stuck, support will help you by chat, ticket or phone.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-mailrelay-primary-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/mailrelay.com\/en\/signup\/?utm_medium=cta&amp;utm_campaign=spf\">Try Mailrelay for free<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n<h2 class=\"wp-block-heading\">Frequently asked questions about SPF<\/h2>\n\n<p class=\"wp-block-paragraph\">These are the most common questions about this record.<\/p>\n\n<h3 class=\"wp-block-heading\">What does SPF stand for?<\/h3>\n\n<p class=\"wp-block-paragraph\">Sender Policy Framework. It&#8217;s the list of servers authorized to send email with your domain.<\/p>\n\n<h3 class=\"wp-block-heading\">What&#8217;s the difference between -all and ~all?<\/h3>\n\n<p class=\"wp-block-paragraph\">With -all, emails from unauthorized servers fail and are usually rejected. With ~all, they soft fail and are usually accepted but flagged as suspicious.<\/p>\n\n<h3 class=\"wp-block-heading\">Can I have two SPF records?<\/h3>\n\n<p class=\"wp-block-paragraph\">No. There can only be one per domain. If you use several providers, add all their includes to the same record.<\/p>\n\n<h3 class=\"wp-block-heading\">What happens if I exceed 10 DNS lookups?<\/h3>\n\n<p class=\"wp-block-paragraph\">The receiver returns a permanent error (permerror) and the email fails the check. Remove the includes you don&#8217;t use or replace some of them with their IPs.<\/p>\n\n<h3 class=\"wp-block-heading\">How do I know if my domain has SPF?<\/h3>\n\n<p class=\"wp-block-paragraph\">Send yourself an email to Gmail and open &#8220;Show original&#8221;. If SPF: PASS appears, it&#8217;s set up correctly. You can also check your domain&#8217;s TXT record with MXToolbox.<\/p>\n\n<h2 class=\"wp-block-heading\">Related terms<\/h2>\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/dkim-domainkeys-identified-mail\/\">DKIM (DomainKeys Identified Mail)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/dmarc\/\">DMARC<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/email-authentication\/\">Email Authentication<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/sending-domain\/\">Sending domain<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mailrelay.com\/en\/glossary\/smtp\/\">SMTP<\/a><\/li>\n<\/ul>\n","protected":false},"template":"","class_list":["post-74433","glossary","type-glossary","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is SPF: how it works and how to create the record<\/title>\n<meta name=\"description\" content=\"What SPF is, how the record that authorizes the servers sending your emails works, what -all and ~all mean and how to set it up in Mailrelay.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is SPF: how it works and how to create the record\" \/>\n<meta property=\"og:description\" content=\"What SPF is, how the record that authorizes the servers sending your emails works, what -all and ~all mean and how to set it up in Mailrelay.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/\" \/>\n<meta property=\"og:site_name\" content=\"Mailrelay\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Mailrelay\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-07T00:37:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1672\" \/>\n\t<meta property=\"og:image:height\" content=\"941\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@mailrelay\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/spf-sender-policy-framework\\\/\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/spf-sender-policy-framework\\\/\",\"name\":\"What is SPF: how it works and how to create the record\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/spf-sender-policy-framework\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/spf-sender-policy-framework\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/como-funciona-spf-4-pasos-1024x576.png\",\"datePublished\":\"2023-09-07T17:54:51+00:00\",\"dateModified\":\"2026-10-07T00:37:11+00:00\",\"description\":\"What SPF is, how the record that authorizes the servers sending your emails works, what -all and ~all mean and how to set it up in Mailrelay.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/spf-sender-policy-framework\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/spf-sender-policy-framework\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/spf-sender-policy-framework\\\/#primaryimage\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/como-funciona-spf-4-pasos-1024x576.png\",\"contentUrl\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/como-funciona-spf-4-pasos-1024x576.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/glossary\\\/spf-sender-policy-framework\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SPF (Sender Policy Framework)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/\",\"name\":\"Mailrelay\",\"description\":\"Mailrelay.com - Email Marketing Software\",\"publisher\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#organization\",\"name\":\"Mailrelay\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/mailrelay-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/mailrelay.com\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/mailrelay-logo.jpg\",\"width\":613,\"height\":291,\"caption\":\"Mailrelay\"},\"image\":{\"@id\":\"https:\\\/\\\/mailrelay.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Mailrelay\\\/\",\"https:\\\/\\\/x.com\\\/mailrelay\",\"https:\\\/\\\/www.youtube.com\\\/mailrelay-email-marketing\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is SPF: how it works and how to create the record","description":"What SPF is, how the record that authorizes the servers sending your emails works, what -all and ~all mean and how to set it up in Mailrelay.","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:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/","og_locale":"en_US","og_type":"article","og_title":"What is SPF: how it works and how to create the record","og_description":"What SPF is, how the record that authorizes the servers sending your emails works, what -all and ~all mean and how to set it up in Mailrelay.","og_url":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/","og_site_name":"Mailrelay","article_publisher":"https:\/\/www.facebook.com\/Mailrelay\/","article_modified_time":"2026-10-07T00:37:11+00:00","og_image":[{"width":1672,"height":941,"url":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@mailrelay","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/","url":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/","name":"What is SPF: how it works and how to create the record","isPartOf":{"@id":"https:\/\/mailrelay.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/#primaryimage"},"image":{"@id":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/#primaryimage"},"thumbnailUrl":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-1024x576.png","datePublished":"2023-09-07T17:54:51+00:00","dateModified":"2026-10-07T00:37:11+00:00","description":"What SPF is, how the record that authorizes the servers sending your emails works, what -all and ~all mean and how to set it up in Mailrelay.","breadcrumb":{"@id":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/#primaryimage","url":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-1024x576.png","contentUrl":"https:\/\/mailrelay.com\/wp-content\/uploads\/2026\/10\/como-funciona-spf-4-pasos-1024x576.png"},{"@type":"BreadcrumbList","@id":"https:\/\/mailrelay.com\/en\/glossary\/spf-sender-policy-framework\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mailrelay.com\/en\/"},{"@type":"ListItem","position":2,"name":"SPF (Sender Policy Framework)"}]},{"@type":"WebSite","@id":"https:\/\/mailrelay.com\/en\/#website","url":"https:\/\/mailrelay.com\/en\/","name":"Mailrelay","description":"Mailrelay.com - Email Marketing Software","publisher":{"@id":"https:\/\/mailrelay.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mailrelay.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mailrelay.com\/en\/#organization","name":"Mailrelay","url":"https:\/\/mailrelay.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailrelay.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/mailrelay.com\/wp-content\/uploads\/2019\/05\/mailrelay-logo.jpg","contentUrl":"https:\/\/mailrelay.com\/wp-content\/uploads\/2019\/05\/mailrelay-logo.jpg","width":613,"height":291,"caption":"Mailrelay"},"image":{"@id":"https:\/\/mailrelay.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Mailrelay\/","https:\/\/x.com\/mailrelay","https:\/\/www.youtube.com\/mailrelay-email-marketing"]}]}},"uagb_featured_image_src":[],"uagb_author_info":{"display_name":"Jose Argudo","author_link":"https:\/\/mailrelay.com\/en\/blog\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"SPF (Sender Policy Framework) is a DNS record that specifies which servers can send emails on behalf of your domain. When an email arrives, the receiving server checks that list. If the sender isn&#8217;t on it, the server gets suspicious. Think of a party&#8217;s guest list. Whoever is on it gets in; whoever isn&#8217;t stays&hellip;","_links":{"self":[{"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary\/74433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/types\/glossary"}],"version-history":[{"count":4,"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary\/74433\/revisions"}],"predecessor-version":[{"id":99620,"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/glossary\/74433\/revisions\/99620"}],"wp:attachment":[{"href":"https:\/\/mailrelay.com\/en\/wp-json\/wp\/v2\/media?parent=74433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}