{
    "title": "SPF record",
    "description": "A DNS TXT record listing the servers allowed to send email for your domain. Receivers check it before they trust a message. How to check yours.",
    "url": "https://ursy.com/wiki/spf-record/",
    "canonical": "https://ursy.com/wiki/spf-record/",
    "markdown": "https://ursy.com/wiki/spf-record/index.md",
    "json": "https://ursy.com/wiki/spf-record/index.json",
    "published": "2026-11-22T17:38:10+00:00",
    "updated": "2026-11-26T15:48:12+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/spf-record/",
    "headings": [
        {
            "level": 2,
            "text": "What is an SPF record?",
            "id": "what-is-an-spf-record",
            "url": "https://ursy.com/wiki/spf-record/#what-is-an-spf-record"
        },
        {
            "level": 2,
            "text": "What does SPF actually check?",
            "id": "what-does-spf-actually-check",
            "url": "https://ursy.com/wiki/spf-record/#what-does-spf-actually-check"
        },
        {
            "level": 2,
            "text": "How does an SPF check work?",
            "id": "how-does-an-spf-check-work",
            "url": "https://ursy.com/wiki/spf-record/#how-does-an-spf-check-work"
        },
        {
            "level": 2,
            "text": "What do Gmail, Yahoo and Outlook ask for?",
            "id": "what-do-gmail-yahoo-and-outlook-ask-for",
            "url": "https://ursy.com/wiki/spf-record/#what-do-gmail-yahoo-and-outlook-ask-for"
        },
        {
            "level": 2,
            "text": "Why does SPF matter for search?",
            "id": "why-does-spf-matter-for-search",
            "url": "https://ursy.com/wiki/spf-record/#why-does-spf-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does SPF matter for AI answers?",
            "id": "why-does-spf-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/spf-record/#why-does-spf-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/spf-record/#a-worked-example"
        },
        {
            "level": 2,
            "text": "What about domains that never send email?",
            "id": "what-about-domains-that-never-send-email",
            "url": "https://ursy.com/wiki/spf-record/#what-about-domains-that-never-send-email"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/spf-record/#common-mistakes"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/spf-record/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "What URSY.com counts",
            "id": "what-ursy-counts",
            "url": "https://ursy.com/wiki/spf-record/#what-ursy-counts"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/spf-record/#questions"
        },
        {
            "level": 3,
            "text": "Should I end with ~all or -all?",
            "id": "should-i-end-with-all-or-all",
            "url": "https://ursy.com/wiki/spf-record/#should-i-end-with-all-or-all"
        },
        {
            "level": 3,
            "text": "Can I have two SPF records?",
            "id": "can-i-have-two-spf-records",
            "url": "https://ursy.com/wiki/spf-record/#can-i-have-two-spf-records"
        },
        {
            "level": 3,
            "text": "Why does my SPF pass but DMARC fail?",
            "id": "why-does-my-spf-pass-but-dmarc-fail",
            "url": "https://ursy.com/wiki/spf-record/#why-does-my-spf-pass-but-dmarc-fail"
        },
        {
            "level": 3,
            "text": "What does softfail mean?",
            "id": "what-does-softfail-mean",
            "url": "https://ursy.com/wiki/spf-record/#what-does-softfail-mean"
        },
        {
            "level": 3,
            "text": "Does SPF work for forwarded mail?",
            "id": "does-spf-work-for-forwarded-mail",
            "url": "https://ursy.com/wiki/spf-record/#does-spf-work-for-forwarded-mail"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/spf-record/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/spf-record/#sources"
        }
    ],
    "links": [
        {
            "text": "RFC 7208",
            "url": "https://www.rfc-editor.org/rfc/rfc7208",
            "internal": false
        },
        {
            "text": "DNS",
            "url": "https://ursy.com/wiki/dns/",
            "internal": true
        },
        {
            "text": "domain",
            "url": "https://ursy.com/wiki/domain-name/",
            "internal": true
        },
        {
            "text": "IP address",
            "url": "https://ursy.com/wiki/ip-address/",
            "internal": true
        },
        {
            "text": "DMARC",
            "url": "https://ursy.com/wiki/dmarc/",
            "internal": true
        },
        {
            "text": "Google&#8217;s sender guidelines",
            "url": "https://support.google.com/a/answer/81126",
            "internal": false
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "Yahoo",
            "url": "https://ursy.com/wiki/yahoo/",
            "internal": true
        },
        {
            "text": "sender best practices",
            "url": "https://senders.yahooinc.com/best-practices/",
            "internal": false
        },
        {
            "text": "Microsoft&#8217;s April 2025 post",
            "url": "https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/strengthening-email-ecosystem-outlook%E2%80%99s-new-requirements-for-high%E2%80%90volume-senders/4399730",
            "internal": false
        },
        {
            "text": "search crawlers",
            "url": "https://ursy.com/wiki/search-crawler/",
            "internal": true
        },
        {
            "text": "Googlebot",
            "url": "https://ursy.com/wiki/googlebot/",
            "internal": true
        },
        {
            "text": "landing pages",
            "url": "https://ursy.com/wiki/landing-page/",
            "internal": true
        },
        {
            "text": "organic search",
            "url": "https://ursy.com/wiki/organic-traffic/",
            "internal": true
        },
        {
            "text": "conversion rate",
            "url": "https://ursy.com/wiki/conversion-rate/",
            "internal": true
        },
        {
            "text": "AI assistant",
            "url": "https://ursy.com/wiki/ai-assistant/",
            "internal": true
        },
        {
            "text": "AI agent",
            "url": "https://ursy.com/wiki/ai-agent/",
            "internal": true
        },
        {
            "text": "Google&#8217;s SPF help",
            "url": "https://knowledge.workspace.google.com/admin/security/set-up-spf",
            "internal": false
        },
        {
            "text": "Its advice for parked domains",
            "url": "https://www.ncsc.gov.uk/blog-post/protecting-parked-domains",
            "internal": false
        },
        {
            "text": "expired domain abuse",
            "url": "https://ursy.com/wiki/expired-domain-abuse/",
            "internal": true
        },
        {
            "text": "RFC 7505",
            "url": "https://www.rfc-editor.org/rfc/rfc7505.html",
            "internal": false
        },
        {
            "text": "MX record",
            "url": "https://ursy.com/wiki/mx-record/",
            "internal": true
        },
        {
            "text": "staging site",
            "url": "https://ursy.com/wiki/staging-site/",
            "internal": true
        },
        {
            "text": "DKIM",
            "url": "https://ursy.com/wiki/dkim/",
            "internal": true
        },
        {
            "text": "DNS Lookup",
            "url": "https://ursy.com/webmaster-tools/dns-lookup/",
            "internal": true
        },
        {
            "text": "DNS records",
            "url": "https://ursy.com/wiki/dns-records/",
            "internal": true
        },
        {
            "text": "SPF Record Explainer",
            "url": "https://ursy.com/webmaster-tools/spf-record-explainer/",
            "internal": true
        },
        {
            "text": "IP Subnet Calculator",
            "url": "https://ursy.com/webmaster-tools/subnet-calculator/",
            "internal": true
        },
        {
            "text": "Email Security Checker",
            "url": "https://ursy.com/webmaster-tools/email-security-checker/",
            "internal": true
        },
        {
            "text": "DNS Propagation Checker",
            "url": "https://ursy.com/webmaster-tools/dns-propagation-checker/",
            "internal": true
        },
        {
            "text": "tech stack checker",
            "url": "https://ursy.com/tech-stack-checker/",
            "internal": true
        },
        {
            "text": "Website IP Lookup",
            "url": "https://ursy.com/webmaster-tools/website-ip-lookup/",
            "internal": true
        },
        {
            "text": "reverse DNS bot check",
            "url": "https://ursy.com/wiki/reverse-dns-bot-check/",
            "internal": true
        },
        {
            "text": "verified bots",
            "url": "https://ursy.com/wiki/verified-bots/",
            "internal": true
        },
        {
            "text": "Verify an AI Bot",
            "url": "https://ursy.com/verify-ai-bot/",
            "internal": true
        },
        {
            "text": "Gmail Help",
            "url": "https://support.google.com/mail/answer/29436",
            "internal": false
        },
        {
            "text": "Email Header Analyser",
            "url": "https://ursy.com/webmaster-tools/email-header-analyser/",
            "internal": true
        },
        {
            "text": "RFC 8601",
            "url": "https://www.rfc-editor.org/rfc/rfc8601.html",
            "internal": false
        },
        {
            "text": "DMARC Record Generator",
            "url": "https://ursy.com/webmaster-tools/dmarc-record-generator/",
            "internal": true
        },
        {
            "text": "DKIM Record Decoder",
            "url": "https://ursy.com/webmaster-tools/dkim-record-decoder/",
            "internal": true
        },
        {
            "text": "SPF, DKIM and DMARC explained",
            "url": "https://ursy.com/wiki/spf-dkim-dmarc-explained/",
            "internal": true
        },
        {
            "text": "SSL checker",
            "url": "https://ursy.com/ssl-checker/",
            "internal": true
        },
        {
            "text": "certificate",
            "url": "https://ursy.com/wiki/ssl-certificate/",
            "internal": true
        },
        {
            "text": "security headers checker",
            "url": "https://ursy.com/security-headers-checker/",
            "internal": true
        },
        {
            "text": "WordPress security checker",
            "url": "https://ursy.com/wordpress-security-checker/",
            "internal": true
        },
        {
            "text": "redirect checker",
            "url": "https://ursy.com/redirect-checker/",
            "internal": true
        },
        {
            "text": "redirect",
            "url": "https://ursy.com/wiki/redirect/",
            "internal": true
        },
        {
            "text": "redirect chain",
            "url": "https://ursy.com/wiki/redirect-chain/",
            "internal": true
        },
        {
            "text": "broken link checker",
            "url": "https://ursy.com/broken-link-checker/",
            "internal": true
        },
        {
            "text": "broken links",
            "url": "https://ursy.com/wiki/broken-link/",
            "internal": true
        },
        {
            "text": "page view",
            "url": "https://ursy.com/wiki/pageview/",
            "internal": true
        },
        {
            "text": "UTM tags",
            "url": "https://ursy.com/wiki/utm-parameters/",
            "internal": true
        },
        {
            "text": "Bot",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "methodology",
            "url": "https://ursy.com/methodology/",
            "internal": true
        },
        {
            "text": "Email deliverability",
            "url": "https://ursy.com/wiki/email-deliverability/",
            "internal": true
        },
        {
            "text": "Subdomain",
            "url": "https://ursy.com/wiki/subdomain/",
            "internal": true
        }
    ],
    "words": 1760,
    "text": "An SPF record is a DNS TXT record that lists the servers allowed to send email for your domain. Receiving mail servers check it to see whether a message came from an authorised server. If your quotes and invoices go out through a booking system or a newsletter service, that service must be in your SPF record too, or its mail can fail the check. What is an SPF record? SPF stands for Sender Policy Framework. The standard is RFC 7208, published in April 2014. The record lives in your DNS as a TXT record on your domain, and it starts with v=spf1. RFC 7208 says SPF records must be published as TXT records; an older special record type is no longer to be used. Each domain gets one SPF record, listing every service that sends mail as you. What does SPF actually check? This surprises many people. SPF does not check the From address you see in your inbox. RFC 7208 checks two other names: the HELO name the sending server gives, and the MAIL FROM address, the hidden “envelope” sender where bounces go. The receiver takes the sending server’s IP address and asks: is this address on the list published by the MAIL FROM domain? Lining that up with the visible From address is the job of DMARC. How does an SPF check work? A server connects and says which domain the mail is from (MAIL FROM). The receiver fetches that domain’s TXT records and finds the one starting v=spf1. It reads the terms left to right: ip4:, ip6:, include:, a, mx and so on. The first term that matches the sending address decides the result. The all term at the end matches everything left. The result is one of seven: none, neutral, pass, fail, softfail, temperror or permerror. What do Gmail, Yahoo and Outlook ask for? Gmail: since 1 February 2024, Google’s sender guidelines ask every sender to set up SPF or DKIM. Senders of more than 5,000 messages a day to personal Gmail accounts must set up both, plus DMARC. Google also asks for valid forward and reverse DNS on sending servers. Yahoo: its sender best practices ask all senders for SPF or DKIM, and bulk senders for both. Outlook: Microsoft’s April 2025 post says SPF “Must Pass” for domains sending over 5,000 emails a day to outlook.com, hotmail.com and live.com. From 5 May 2025 their non-compliant mail goes to Junk. Why does SPF matter for search? SPF records are read by mail servers, not by search crawlers such as Googlebot. The link to search is the domain. The name that ranks your landing pages is the name spoofers would like to send as. Search visits also end in email: a booking reply, a quote, an order confirmation. If those land in spam, the work that brought the visitor from organic search is wasted, and your conversion rate looks worse than it is. Why does SPF matter for AI answers? When an AI assistant recommends a business, the next step is often an email. When an AI agent books or orders for someone, it often waits for an emailed confirmation or code. If your reply fails SPF and DMARC, it may never arrive. The person, and any assistant reading their inbox for them, then sees silence, not your answer. A worked example A bakery sends its email through Google Workspace. Google’s SPF help gives its record as: v=spf1 include:_spf.google.com ~all Later the bakery starts a newsletter with Mailchimp. It does not add a second record. It adds Mailchimp to the same one, as Google’s own table shows: v=spf1 include:_spf.google.com include:servers.mcsv.net ~all Part What it means v=spf1 This TXT record is an SPF record include: Also allow the servers listed in that service’s own SPF record ip4: / ip6: Allow one address or a range, written in CIDR form ~all Any other server is a softfail: probably not allowed, so receivers may treat the mail as spam -all Any other server is a fail: not allowed RFC 7208 defines four qualifiers: + pass (the default), - fail, ~ softfail and ? neutral. Google’s help recommends ending with ~all. What about domains that never send email? They need SPF too. The UK National Cyber Security Centre warns that unprotected domains that send no email “can just as easily be used for email spoofing and phishing”. Its advice for parked domains starts with this record, which authorises no server at all: v=spf1 -all Do this for old brand names and spare domains too, and renew them: a domain you let lapse can be bought by someone else, which is how expired domain abuse starts. The NCSC pairs the SPF record with a DMARC record set to p=reject, an empty DKIM key and a “null MX” record (0 .), defined in RFC 7505. See MX record. Common mistakes Two SPF records on one domain. RFC 7208 says a domain must not have more than one, and a check that finds two returns “permerror”, so the record fails. Merge them. Too many look-ups. RFC 7208 limits the terms that need DNS look-ups (include, a, mx, ptr, exists and redirect) to 10 in total, counting any inside the services you include. Over that, the result is “permerror”. Google’s help says a record can have up to 10 include tags. Includes that lead nowhere. RFC 7208 says checks should allow no more than two “void” look-ups, ones that find nothing. Remove includes for services you have left. Using ptr. RFC 7208 says the ptr term “SHOULD NOT be published”. A forgotten sender. A booking system, shop platform or card terminal that emails receipts as you, but is missing from the record. A test site sending as you. A staging site that sends order emails from a server not in the record fails SPF and fills your DMARC reports with noise. Forgetting subdomains. Google’s help says each subdomain you send from needs its own SPF record. Expecting SPF to survive forwarding. RFC 7208 says a forwarder that keeps the original sender address makes SPF fail. That is why DKIM matters too. How to check it Look up your domain’s TXT records with the DNS Lookup tool. The SPF record starts with v=spf1. There must be exactly one. Our DNS records entry explains the other record types you will see. Paste the record into the SPF Record Explainer. It reads the record in plain words, one part at a time. Count the look-ups. Every include, a, mx and redirect counts, and so do the ones inside each include. Stay at 10 or under. Check the ip4: ranges with the IP Subnet Calculator, which turns a CIDR range into its first and last address and host count. Run the whole domain through the Email Security Checker. It checks SPF, DKIM, DMARC, MX, MTA-STS and BIMI live from the DNS. After a change, use the DNS Propagation Checker. Google says SPF can take up to 48 hours to start working. Make a list of every service that sends as your domain. The tech stack checker shows which shop and other platforms your website runs on; any that send order emails belong in the record. Google asks for valid forward and reverse DNS on sending servers. The Website IP Lookup shows an address’s network owner and reverse name, and our reverse DNS bot check entry explains how forward and reverse names are matched, the same idea that separates verified bots from fakes. Verify an AI Bot uses the same idea for crawlers. Send yourself a test email in Gmail, choose “Show original”, as Gmail Help describes, and paste the header into the Email Header Analyser. Look for spf=pass, a result name from RFC 8601. Then add the other two records. Build a DMARC record with the DMARC Record Generator and check your keys with the DKIM Record Decoder. SPF, DKIM and DMARC explained shows the safe order. Check the website side of the same domain: the SSL checker for its certificate and the security headers checker for its headers. On WordPress, the WordPress security checker shows exposed user lists and open APIs on the same domain. Check where your emails send people. The redirect checker follows every redirect hop of a tracked link, so you can spot a long redirect chain, and the broken link checker finds broken links on the page they land on. Single checks on each tool page: free, no account (2 a day). The full audit: a free account (sign in with an emailed code), 1 a day. What URSY.com counts URSY.com counts visits to your website, not email. A click from an email shows as a page view when the visitor’s browser runs our cookie-free counter. The counter never stores query strings, only the path, so UTM tags are not kept. Reverse DNS is used only in our Verify an AI Bot tool, not in the log. See methodology. Questions Should I end with ~all or -all? Google’s help recommends ~all for domains that send mail. The NCSC uses -all for domains that send none. Your DMARC policy then decides what receivers do with failures. Can I have two SPF records? No. RFC 7208 says one. Two give “permerror”. Put every service into one record. Why does my SPF pass but DMARC fail? SPF checks the hidden MAIL FROM domain. If your newsletter service uses its own bounce domain, SPF passes for that domain, not yours, so it does not line up with your From address. Use DKIM signed with your domain. What does softfail mean? The sending server is probably not allowed. Receivers may accept the mail but treat it as suspicious. Does SPF work for forwarded mail? Often not. RFC 7208 says forwarding makes SPF fail unless the forwarder rewrites the sender address. Related words DKIM DMARC SPF, DKIM and DMARC explained: why your emails go to spam Email deliverability DNS records MX record DNS IP address Subdomain Sources RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1 (April 2014), checked 24 November 2026 RFC 7505: A “Null MX” No Service Resource Record (June 2015), checked 24 November 2026 RFC 8601: Message Header Field for Indicating Message Authentication Status (May 2019), checked 24 November 2026 Google Workspace Admin Help: Set up SPF (last updated 10 November 2026), checked 24 November 2026 Google Workspace Admin Help: Email sender guidelines, checked 24 November 2026 Gmail Help, viewing an email’s full headers, checked 24 November 2026 Yahoo, Sender best practices, checked 24 November 2026 Microsoft, Outlook’s new requirements for high-volume senders (April 2025), checked 24 November 2026 NCSC, Protecting parked domains, checked 24 November 2026 Updated 24 November 2026 by URSY.com.",
    "source": "https://ursy.com/wiki/spf-record/"
}