SPF Check: Understand and Use the Results
Validate SPF record syntax, DNS lookups, and policy
What SPF really is, in plain English (no jargon)
SPF (Sender Policy Framework) is a list — published as a single text record in your domain's DNS — that tells the rest of the internet which mail servers are allowed to send email on behalf of your domain. When a receiving mail server gets a message claiming to be from `you@yourdomain.com`, it looks up your SPF record and asks, "is the server that just delivered this message on the approved list?" If yes, the message passes the SPF check and keeps moving toward the inbox. If no, the receiving server now knows the message is suspicious and can act on that — usually by routing it to spam or rejecting it outright. SPF was first published in 2003, became an internet standard in 2014 (RFC 7208), and is now the foundational layer of every modern email-authentication setup.
You should care because without SPF, anyone in the world can send an email that says "From: you@yourdomain.com" and there is nothing in the protocol stopping it. Email was designed in a more trusting era — the original 1982 specification has no way to verify the sender at all — and SPF is one of three rulebooks (with DKIM and DMARC) that the internet community came up with to fix that. As of February 2024, Gmail and Yahoo require SPF on any domain sending more than 5,000 emails per day; Microsoft followed shortly after. SPF has crossed the line from "good practice" to "do this or your bulk mail will not arrive."
The five things every SPF check looks at:
Does the record exist? A surprising fraction of production domains still have no SPF record at all.
Is the syntax valid? SPF records have a specific grammar (`v=spf1 ... -all`). A typo invalidates the whole record.
Does the record stay under the 10-DNS-lookup limit? Each `include:` mechanism counts as a lookup, and nested includes count too. Going over 10 produces a permanent error that disables SPF entirely. RFC 7208 §4.6.4 actually defines two limits: the 10-mechanism MUST and a 2-void-lookup SHOULD (an `include:` whose target returns NXDOMAIN or an empty answer is a "void lookup"). Google and Microsoft enforce both — a stale include pointing at a dead vendor can fail SPF at the major mailbox providers even when the total lookup count stays well under 10.
Does it end in `-all` or `~all`? Both are acceptable end-markers; `+all` is a configuration disaster that allows anyone in the world to send mail as you.
Is the record at the apex of the domain? SPF records live on the bare domain (`example.com`), not on subdomains, unless you explicitly want to override them per subdomain.
Three questions an SPF check answers:
Will the emails I send actually reach the inbox, or are they going to spam?
Can someone else send phishing emails pretending to be my domain?
Have I quietly broken my SPF record by adding too many email services to it?
The cost of skipping SPF is the slow erosion of email deliverability — your real messages start going to spam, your bulk mail starts getting rejected by Gmail and Yahoo, and scammers find it easier to impersonate your brand. The fix is one DNS edit and one validation check. The longer hand-written guide on setup lives at SPF Record Setup Guide, which walks through writing the record from scratch and avoiding the most common pitfalls.
The SPF Check endpoint, in plain language
Validate SPF (Sender Policy Framework) record syntax, DNS (Domain Name System) lookups, and policy
Use source-scoped configuration evidence to investigate policy gaps and compare equivalent observations. This diagnostic does not prove actual message authentication, provider disposition or a complete sender inventory; review standards profile, coverage and limitations before acting.
What is actually happening when you call it
Validates ordered mechanisms and address/CIDR/modifier syntax, follows applicable include/redirect dependencies and A/MX/exists lookups under resource bounds, and propagates nested invalid records or DNS (Domain Name System) failures. Initial TXT is not a counted SPF (Sender Policy Framework) mechanism; actual DNS queries are separate from the ten-term limit. Positive candidate address references are diagnostic; qualifiers, earlier matches, sender family and runtime macros can change authorization. Unavailable/partial analyses are not cached as absent policies.
Why this specific tool matters
Choose a task: Email Deliverability Troubleshooting. Emails are being rejected or landing in spam. Verify the SPF (Sender Policy Framework) record is syntactically valid, under the 10-lookup limit, and uses an appropriate policy qualifier.
Run the SPF Check request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the SPF Check reference to check the field definitions and supported options.
Available on the free plan. The technical details: `GET /v1/security/spf`.
When would I actually use this?
Email Deliverability Troubleshooting
Emails are being rejected or landing in spam. Verify the SPF (Sender Policy Framework) record is syntactically valid, under the 10-lookup limit, and uses an appropriate policy qualifier.
Use the finding: Identify and fix SPF (Sender Policy Framework) issues causing email rejection or spam classification.
Email Security Audit
Audit organization domains to ensure SPF (Sender Policy Framework) records use strict policies (-all) and don't include unnecessary third-party services that expand the attack surface.
Use the finding: Reduce email spoofing risk with properly hardened SPF (Sender Policy Framework) configuration.
Third-Party Sender Authorization
After adding a new email marketing platform (Mailchimp, SendGrid, HubSpot), verify the SPF (Sender Policy Framework) record includes the new sender and hasn't exceeded the DNS (Domain Name System) lookup limit.
Use the finding: Ensure marketing emails authenticate properly after platform changes.
Bulk Sender Compliance
Verify SPF (Sender Policy Framework) compliance with Google/Yahoo/Microsoft bulk sender requirements (2024-2025) that mandate valid SPF records for domains sending 5,000+ emails/day. Non-compliant emails face rejection starting November 2025 (Gmail) and May 2025 (Outlook).
Use the finding: Maintain email deliverability to Gmail, Yahoo, and Outlook recipients.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use security_spf with domain=google.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For SPF Check, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This SPF Check request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/security/spf?domain=google.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for SPF Check
Start with the inputs below. Keep the same hostname, path, and options when comparing SPF Check observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | The domain to check SPF (Sender Policy Framework) records for | google.com |
Interpret SPF Check findings
Read these fields alongside the full response from your SPF Check check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The queried domain |
spf.found | boolean | Whether an SPF (Sender Policy Framework) record exists |
spf.record | string | Raw SPF (Sender Policy Framework) record value |
Words you might be wondering about
DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.
SPF (Sender Policy Framework) — A list, published in your DNS, of which servers are allowed to send email pretending to be you. Helps stop spammers from forging your address.
CIDR (Classless Inter-Domain Routing) — A shorthand way of describing a range of IP addresses, like 192.168.1.0/24. The number after the slash says how many addresses are in the range.
RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.
Related Free Tools
Related Guides
SPF Record Setup Guide: From Zero to Protected
If you send any email at all from a domain you own, you should have an SPF record. This guide explains what SPF is in plain language, walks you through setting one up step by step, and warns you about the gotchas before you hit them.
DKIM Check: Understand and Use the Results
Discover and validate DKIM signing keys
DMARC Check: Understand and Use the Results
Analyze DMARC policy, alignment, and reporting
Email Score: Understand and Use the Results
Rate email security (SPF, DKIM, DMARC)
TXT Records: Understand and Use the Results
Get TXT records including verification entries
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.