PatchPingsAI-Powered
HomeFeaturesMonitoringPricingHow it worksFAQ
Download free
PatchPings

Secure. Monitor. Fix.

AI-powered website monitoring & audits

Product

  • Features
  • Monitoring
  • Scans
  • DMARC checker
  • SSL checker
  • Pricing
  • FAQ

Company

  • About
  • Knowledge Base
  • Contact

Install

  • Lens
  • WordPress
GET IT ONGoogle Play
PrivacyExtension privacyCookiesTermsAcceptable useDelete account

© 2026 PatchPings by CodenVibe IT LLC. All rights reserved.

PatchPings

Secure. Monitor. Fix.

AI-powered website monitoring & audits

Install

  • Lens
  • WordPress
GET IT ONGoogle Play

Product

  • Features
  • Monitoring
  • Scans
  • DMARC checker
  • SSL checker
  • Pricing
  • FAQ

Company

  • About
  • Knowledge Base
  • Contact

© 2026 PatchPings by CodenVibe IT LLC. All rights reserved.

PrivacyExtension privacyCookiesTermsAcceptable useDelete account
PatchPings

Secure. Monitor. Fix.

AI-powered website monitoring & audits

Product

  • Features
  • Monitoring
  • Scans
  • DMARC checker
  • SSL checker
  • Pricing
  • FAQ

Company

  • About
  • Knowledge Base
  • Contact

Install

  • Lens
  • WordPress
  • GET IT ONGoogle Play

© 2026 PatchPings by CodenVibe IT LLC. All rights reserved.

PrivacyExtension privacyCookiesTermsAcceptable useDelete account
  1. Home
  2. /
  3. Knowledge Base
  4. /
  5. SPF Record Guide
Dev guides 4 min readOct 19, 2026

SPF Record Guide: Publish, Align, and Avoid Lookup Limits

Sender Policy Framework (SPF) lists which servers may send mail for your domain. Learn how to write an SPF TXT record, stay under ten DNS lookups, and pair it with DKIM and DMARC.

The PatchPings Team
Mail and DNS key imagery for publishing an SPF sender policy record

An SPF record is a DNS TXT record that lists the mail servers allowed to send email for your domain. Receiving servers check that list when a message arrives. If the sending IP is not authorised, SPF fails and DMARC can quarantine or reject the mail.

This guide focuses on SPF alone: syntax, common includes, the ten-lookup limit, and how to verify the record with a DMARC checker that also surfaces SPF and DKIM in one DNS health pass. For the full trio, see SPF, DKIM and DMARC explained.

Where SPF lives in DNS

Publish a TXT record on the apex (or the exact domain that appears in the SMTP mail-from / bounce domain). You should have one SPF policy per domain. Multiple SPF TXT records cause unpredictable failures.

Minimal SPF examplecode
v=spf1 include:_spf.google.com include:sendgrid.net -all
  • `v=spf1` - required version tag; always first.
  • `include:` - pull another provider's authorised IPs by DNS.
  • `ip4:` / `ip6:` - authorise specific addresses when you run your own MTA.
  • `-all` - hard fail for anything not listed (preferred once inventory is complete).
  • `~all` - soft fail; useful briefly during migration, not as a permanent setting.

Build an inventory before you publish

  1. 1List every system that sends as your domain: Google Workspace, Microsoft 365, CRMs, billing, support desks, marketing tools.
  2. 2Copy each provider's recommended SPF include or IP mechanism from their docs.
  3. 3Merge into a single v=spf1 ... -all string.
  4. 4Count DNS lookups (each include, a, mx, and redirect counts toward the limit of ten).
  5. 5Publish, send test mail, then confirm SPF pass in message headers.
The ten-lookup trap

Nested includes burn lookups quickly. If SPF exceeds ten DNS lookups, receivers treat the record as a permanent error. Flatten carefully or drop unused vendors.

Alignment with DMARC

SPF can pass for the bounce domain while the visible From domain differs. DMARC requires alignment: the authenticated domain must match (or be a parent of) the From domain, depending on aspf strict or relaxed mode. See DMARC policy explained before you tighten p=quarantine or p=reject.

Common SPF mistakes

  • Publishing two SPF TXT records instead of one combined policy.
  • Leaving `+all` or a missing all mechanism, which authorises the world.
  • Forgetting a transactional ESP so invoices start failing after DMARC enforcement.
  • Using `~all` forever so spoofed mail still reaches inboxes.

How to verify SPF is working

Run the free DMARC checker or a full DNS health scan against your domain. PatchPings reports whether an SPF record exists and whether the value looks parseable alongside DKIM and DMARC. Pair that with a real outbound test and inspect Received-SPF in the destination inbox.

SPF is the allow-list. DKIM is the signature. DMARC is the policy. Get SPF complete and under the lookup limit first, then move on to the DKIM record guide so enforcement does not surprise a forgotten sender.

#SPF#Email#DNS#DMARC

Keep reading

Email inbox interface suggesting authenticated outbound mail delivery
Scans

What Is DMARC? SPF, DKIM and Email Authentication

2 min read
Cryptographic key visual for DKIM email signing and DNS public keys
Dev guides

DKIM Record Guide: Selectors, Keys, and Alignment

4 min read
Policy document and inbox imagery for DMARC none quarantine reject choices
Scans

DMARC Policy Explained: none, quarantine, and reject

4 min read
PatchPings

Start scanning. It’s free.

Download PatchPings and run your first full security scan in under a minute. No credit card, no catch.

GET IT ONGoogle Play

Free for all signed-in users · Guest mode available · v1.0.0