How do you check if your SPF record is working correctly?

Sealed envelope on a modern desk with a magnifying glass inspecting a postage stamp for authentication, navy and amber tones.

To check if your SPF record is working correctly, run a free SPF lookup using a tool like MXToolbox, Google Admin Toolbox, or dmarcian. These tools query your domain’s DNS and return the full SPF record, flag syntax errors, and show whether the record is valid. A passing result means receiving mail servers can authenticate email sent from your domain.

SPF configuration errors are one of the most common causes of email deliverability problems, and they are not always obvious from looking at the raw record. Even a technically valid-looking SPF record can fail due to lookup limits, missing sending sources, or conflicts with other records. The sections below walk through the most important questions around SPF testing, reading results, and fixing issues.

What tools can you use to test an SPF record?

The most reliable tools for testing an SPF record are MXToolbox SPF Lookup, Google Admin Toolbox Check MX, dmarcian SPF Surveyor, and Kitterman SPF Validator. Each tool queries your domain’s DNS records in real time, displays the full SPF record, and highlights any syntax errors, missing includes, or configuration issues that could cause authentication failures.

Here is a quick breakdown of what each tool is best suited for:

  • MXToolbox SPF Lookup: Excellent for a fast, clear pass/fail result with detailed error descriptions. It also counts DNS lookups, which is critical for diagnosing the common “too many DNS lookups” error.
  • Google Admin Toolbox Check MX: Useful if you are sending through Google Workspace. It checks SPF alongside other DNS health signals.
  • dmarcian SPF Surveyor: Visualizes the entire SPF record as a tree, making it easy to see nested includes and spot where lookups are being consumed.
  • Kitterman SPF Validator: A straightforward validator that tests SPF syntax and logic without requiring an account.

For a complete picture of your email authentication setup, it is worth testing SPF, DKIM, and DMARC together. Tools like mail-tester.com allow you to send a test email and receive a full authentication report in one step.

How do you read the results of an SPF lookup?

When you run an SPF lookup, the tool returns your raw SPF record and one of several status results: Pass, Fail, SoftFail, Neutral, None, or PermError. A Pass result means the sending IP is authorized. A None result means no SPF record was found. A PermError usually signals a syntax problem or too many DNS lookups.

Understanding the components of the raw record itself is equally important. A typical SPF record looks like this:

v=spf1 include:_spf.google.com include:sendgrid.net ~all

Each element has a specific meaning:

  • v=spf1: Declares that this is an SPF record. Every valid SPF record starts with this.
  • include: Authorizes a third-party sending service by pulling in its list of approved IP addresses.
  • ip4: / ip6: Directly authorizes a specific IP address or range.
  • ~all: A softfail qualifier, meaning unauthenticated mail is accepted but flagged.
  • -all: A hard fail qualifier, meaning unauthenticated mail should be rejected.

When reviewing results, pay close attention to the DNS lookup count. SPF allows a maximum of ten DNS lookups per evaluation. If your record exceeds this, many tools will flag a PermError, which causes SPF to fail entirely for that sending domain.

What does it mean when an SPF record returns a ‘fail’ or ‘softfail’?

An SPF fail result means the sending IP address is not listed as an authorized sender in your SPF record, and the record uses a -all qualifier that instructs receiving servers to reject the message. A softfail means the same mismatch occurred, but the ~all qualifier tells receiving servers to accept the message while marking it as suspicious.

In practical terms, a hard fail can result in emails being rejected outright before they reach the inbox. A softfail is less aggressive but still signals to spam filters that something is off, which can reduce deliverability and increase the likelihood of messages being routed to junk folders.

The most common reasons an SPF check returns a fail or softfail include:

  • The sending service or IP address is not included in the SPF record
  • A third-party tool was added to your sending infrastructure, but the SPF record was never updated
  • The email is being forwarded, which changes the sending IP and breaks SPF alignment
  • The SPF record has exceeded the ten DNS lookup limit, causing a PermError that behaves like a fail

Why is your SPF record failing even though it looks correct?

The most common reason an SPF record fails despite appearing correct is exceeding the ten DNS lookup limit. SPF allows a maximum of ten mechanisms that require DNS resolution, such as include:, a:, and mx:. If your record chains together multiple third-party services, each with their own nested includes, the total can easily exceed ten even when the record syntax looks clean.

Other less obvious reasons include:

  • Multiple SPF records on the same domain: A domain must have exactly one SPF record. If two TXT records beginning with v=spf1 exist, SPF evaluation fails with a PermError.
  • Subdomain sending without a subdomain SPF record: SPF records do not inherit from the root domain. If you send from a subdomain like mail.yourdomain.com, that subdomain needs its own SPF record.
  • Outdated include references: If a third-party provider changes their SPF infrastructure and you still reference their old include mechanism, the lookup may return no valid IPs.
  • IP address changes: If your email service provider rotates or changes sending IPs and those new IPs are not covered by the existing includes, SPF will fail for those messages.

How do you fix a broken or misconfigured SPF record?

To fix a broken SPF record, start by running a full SPF lookup to identify the specific error, then correct the underlying issue in your DNS settings. The fix depends entirely on the type of failure: syntax errors require editing the record directly, missing senders require adding the correct include mechanism, and lookup limit errors require flattening or consolidating the record.

Follow these steps to work through a broken SPF record:

  1. Run a diagnostic lookup: Use MXToolbox or dmarcian to get a clear picture of what the record currently contains and what errors are present.
  2. Identify all legitimate sending sources: List every platform, tool, or service that sends email on behalf of your domain, including transactional email providers, marketing platforms, and CRM tools.
  3. Check for duplicate records: Confirm there is only one TXT record starting with v=spf1 on your domain.
  4. Add missing includes: For each authorized sending service, add the appropriate include: mechanism as specified in that provider’s documentation.
  5. Resolve the lookup limit if needed: If you are over ten lookups, use SPF flattening to replace nested includes with their resolved IP addresses, or use a dynamic SPF management service to stay within limits automatically.
  6. Publish and retest: Update the record in your DNS provider, allow time for propagation, and run the lookup again to confirm the fix.

DNS changes can take anywhere from a few minutes to 48 hours to propagate fully, so allow adequate time before concluding a fix has or has not worked.

How does SPF work alongside DKIM and DMARC?

SPF, DKIM, and DMARC are three complementary email authentication protocols that work together to verify the legitimacy of your email. SPF confirms that the sending server is authorized to send on behalf of your domain. DKIM adds a cryptographic signature to the message that proves the content has not been altered. DMARC ties the two together by specifying what receiving servers should do when SPF or DKIM checks fail.

Each protocol addresses a different layer of email trust:

  • SPF validates the sending infrastructure. It answers the question: is this IP address allowed to send email for this domain?
  • DKIM validates the message content. It answers the question: was this email actually sent and signed by the domain it claims to be from?
  • DMARC enforces policy and provides reporting. It answers the question: what should happen when SPF or DKIM fail, and who should be notified?

For DMARC to function correctly, at least one of SPF or DKIM must pass and be aligned with the domain in the From header. This alignment requirement is important: SPF can pass technically while still failing DMARC alignment if the return-path domain does not match the From domain. This is why fixing SPF in isolation is sometimes not enough. A complete email authentication setup requires all three protocols to be properly configured and aligned.

In 2026, major inbox providers including Google and Yahoo continue to enforce requirements around DMARC policy for bulk senders, making the combination of SPF, DKIM, and DMARC more important than ever for inbox placement.

How Email Industries helps with SPF configuration and email authentication

At Email Industries, we work with organizations that are dealing with exactly these kinds of SPF and authentication challenges, from records that look correct but keep failing, to complex multi-platform sending setups that push against the ten-lookup limit. Our team brings deep technical expertise in email authentication and deliverability, and we take a hands-on approach to diagnosing and resolving issues that internal teams often struggle to isolate.

Here is what we can help with:

  • Full SPF, DKIM, and DMARC audits to identify misconfigurations across your entire sending infrastructure
  • SPF record consolidation and flattening to resolve lookup limit errors without losing authorized senders
  • DMARC policy implementation, including moving from monitoring mode to enforcement safely
  • Ongoing authentication monitoring to catch issues before they affect deliverability
  • Guidance for complex environments including multiple subdomains, third-party senders, and forwarding setups

Our Deliverability Assurance Packages are designed to give businesses ongoing protection and expert oversight of their full email authentication setup. If you are unsure whether your SPF record is configured correctly or want a complete review of your authentication health, explore our services or reach out directly. We are happy to take a look and point you in the right direction.

Related Articles

Share the Post

Related Posts

The Best Senders Read This – Do You?

Get expert-backed strategies, real-world case studies, and insider email deliverability tips straight to your inbox. Join the Inbox Insiders.