Run it from your AI agent
This is also a Hermoso tool your agent can call, free, as often as it needs, for example on every domain in a lead list before a campaign. Paste this into Claude Code, Codex or Cursor once:
Set up Hermoso for me. It is an AI marketing tool (hermoso.ai) that researches ads, makes image and video ads and posts to my social accounts. 1. Install it by running: claude plugin marketplace add hermoso-ai/hermoso && claude plugin install hermoso@hermoso If the new skills only load after a restart, tell me, and use npx meanwhile. 2. Sign me in by running: npx -y hermoso auth login It opens my browser and I will approve the connection there. If this machine has no browser, ask me for a Hermoso API key and run npx -y hermoso auth login --token <key> instead. 3. Once I am signed in, do one small task to show it works: tell me my Hermoso credit balance and which profile is saved. 4. Then set up my brand from my website and make my first ad.
Then ask it: “Hermoso, check the SPF record of example.com and tell me how to fix it”
In ChatGPT or Claude, connect Hermoso from hermoso.ai/mcp and ask the same thing. The tools are check_domain_email_health, check_email_address, generate_dns_record and check_spam_words, and they work over the API and CLI too.
What SPF does
SPF (Sender Policy Framework) is a TXT record on your domain that lists the servers allowed to send email as you. A receiving server compares the server a message came from with that list. Gmail and Yahoo ask every sender for SPF or DKIM, and bulk senders for both.
The 10-lookup limit
This is where most SPF records break. Each include, a, mx, exists and redirect makes the receiver look up another DNS record, and so does every include inside an include. SPF allows 10 of these in total (RFC 7208). Past 10, the check returns an error and your record counts as broken, even though it looks fine. This checker follows the whole tree and counts every one, so you see the real number before your mail does.
How to read the result
- The record. It must start with v=spf1, and a domain may have only one. Two SPF records break both.
- Lookups used. Up to 10 is fine; 8 or more leaves little room for the next tool you sign up for.
- The ending. ~all marks mail from unlisted servers as suspicious, -all asks receivers to refuse it. +all lets anyone send as you and should never be used. ?all gives no verdict.
- What the record includes. Each include and what it pulls in. An include of a domain that has no SPF record of its own is an error.
How to fix the common errors
- Too many lookups: remove includes for services you no longer use, and replace an include that only covers a few fixed servers with their ip4 addresses.
- Two SPF records: merge them into one record with every include, then delete the other.
- No SPF record: make one with the SPF record generator.
SPF is one of three checks receivers run. See all three at once, plus your MX records and blocklists, in the SPF, DKIM and DMARC checker.
Sending from your own mailbox? Hermoso writes and sends one-to-one emails and timed follow-ups from your own mailbox, stops a sequence when someone replies, and never adds a tracking pixel.
Free tools: SPF record generator · DMARC checker · DKIM checker
Frequently asked questions
How do I check my SPF record?
Type your domain into the SPF checker on this page. It shows the record, follows every include, counts the DNS lookups against the limit of 10 and lists anything to fix.
What is the SPF 10 lookup limit?
Checking an SPF record may take at most 10 DNS lookups, counting every include, a, mx, exists and redirect, including those inside includes. Past 10 the check fails with an error, so the record does not protect you.
Can a domain have two SPF records?
No. With more than one, every SPF check returns an error. Merge them into one record.
Should SPF end in ~all or -all?
Both are fine. ~all marks mail from unlisted servers as suspicious and is the usual start; -all asks receivers to refuse it. Google suggests ~all for Workspace and Microsoft suggests -all for Microsoft 365 once DKIM and DMARC are set up.
Is this SPF checker free?
Yes. It reads public DNS records and needs no account.
Hermoso makes the ads, sends the follow-ups and posts to every channel from one place. Start free, no card.
Start free → See pricing