SPF Record Merger for WordPress Email

An SPF record tells receivers which servers are allowed to send mail on behalf of a domain. Every WordPress site that sends email through more than one provider ends up combining include: mechanisms in the same TXT record. Add a mailer plugin here, a marketing service there, a form host on the side, and the record grows. Past a certain point it breaks in a way most site owners never see.

RFC 7208 caps a single SPF evaluation at ten DNS lookups. Each include:, a, mx, exists:, or redirect= counts, and so does every one inside the records your includes point to. Cross that ceiling and the check returns permerror, which is not a pass: the receiver could not interpret the record. RFC 7208 § 8.7 and Appendix G.3 leave the handling of permerror to receiver policy, so one receiver may reject the mail and another may deliver it. Of the SPF results, DMARC counts only a pass, so after a permerror the message passes DMARC only on an aligned DKIM signature. Paste the current record, pick the providers actually in use, and this tool returns a merged, deduplicated record and counts its SPF lookup terms, following include: and redirect= records.

Paste the whole record, or leave blank to build one from scratch. Look it up with dig +short TXT yourdomain.com or on any DNS lookup site.

Hold Ctrl (or ⌘) to pick more than one. Most providers add an include: mechanism; a provider that needs none says so in the result.

Picking a plugin here prefills the providers it supports. Handy if you know your plugin but not which provider include is in your SPF.

The badge counts the SPF lookup terms in the record and in the records reached through include: and redirect=. RFC 7208 §4.6.4 also counts MX and PTR resource records queried in the overall limit of 10, and this tool does not count those records. The badge is not a complete RFC 7208 count when an evaluated record uses mx or ptr. Your browser reads the included records from Cloudflare’s DNS resolver. ip4:, ip6:, and all don’t count. An SPF check that needs more than 10 returns permerror, which is not a pass, and each receiver decides whether to reject the mail (RFC 7208 section 8.7 and Appendix G.3).

How the merge works

  • Existing record parsed first. Mechanisms come out in the order they appeared; the all qualifier is preserved (-all, ~all, ?all). The merge ends the record in ~all, which Google recommends, in three cases: you build it from scratch, your record has no all (and no redirect=, covered in the next bullet), or your record ends in +all. Paste raw dig +short TXT output with the split quoted strings and it’s normalised the same way a resolver would assemble it.
  • redirect= handled as receivers read it. In a record with an all term, receivers ignore redirect= and every mechanism after all (RFC 7208 § 5.1), so the merge leaves them out and lists them under the result. If your record has redirect= and no all, the merge keeps the redirect=. New includes go in front of it, no all is added, and the record that redirect= points to still decides the result for servers your record does not list.
  • Provider includes appended. Every provider carries a canonical SPF-include list in the nanoPost dataset. SendGrid contributes sendgrid.net, Mailgun contributes mailgun.org, Zoho Mail contributes both zoho.com and zohomail.com, and so on. Pick a WP mailer plugin and the tool prefills the provider multiselect with the providers that plugin supports.
  • Duplicates dropped. If the existing record and a provider selection both point to the same include:, only one copy survives. The dropped entries are listed under the merged record so nothing is silent.
  • SPF terms counted through includes and redirects. The browser follows include: and redirect= records and counts the SPF lookup terms it finds. It does not count MX or PTR resource records queried, so the badge is not a complete RFC 7208 count when an evaluated record uses mx or ptr. The ip4:, ip6:, and all terms do not count.
  • Read live, from your browser. The browser reads included and redirected SPF records through Cloudflare DNS. If the check reaches a domain with no SPF record, a domain with more than one, or an include or redirect that loops back on itself, it returns permerror. A record the browser cannot read gives a minimum count.

When a merge won’t save the record

Deduplication buys back one or two lookups, sometimes three. It cannot turn a fifteen-provider record into a compliant one. Services are not a guide to the total: on 2026-11-25 Zoho Mail’s two includes took seven lookups and Mailgun’s one took five, so those two services alone are over the limit, while Google Workspace’s took one. If the merged output shows twelve or thirteen lookups, the answer is not a cleverer SPF, it’s fewer senders on the same domain. Split marketing off to a subdomain (news.example.com) with its own SPF, keep transactional on the root, and each record stays under the ceiling on its own. That split is the durable answer once the total stays above ten.

When you’re ready to check what a receiver actually sees for a domain, the DNS Auth Checker resolves SPF, DKIM, DMARC, and MX live and scores the domain against Gmail, Yahoo, and Microsoft 365’s bulk-sender requirements. If the merge here turned up a provider that no longer belongs, the free-tier comparator is the fast way to pick the one provider a small WordPress site actually needs, and the SMTP cost calculator is the next step above the free tiers.

Corrections
  • 2026-11-26: an earlier version of the tool dropped all from a record that also had redirect=, and moved mechanisms written after all in front of it. Receivers ignore both the redirect= and those mechanisms, so the tool now leaves them out.
  • 2026-11-26: an earlier version said most receivers treat a permerror as if there were no SPF, and that Gmail, Yahoo and Microsoft 365 scorecards mark the domain as failing. RFC 7208 leaves the handling to each receiver.
  • 2026-11-26: an earlier version of the tool ended the record in -all when it was built from scratch, had no all and no redirect=, or ended in +all with no redirect=. The tool now uses ~all, which Google recommends.
  • 2026-11-26: an earlier version of the tool counted only the terms in the merged record, so the badge could be green on a record whose includes took it over ten lookups. The merger follows nested include: and redirect= records, but it does not count MX or PTR resource records queried. Its badge can therefore understate the RFC 7208 count when an evaluated record uses mx or ptr. The earlier version also missed a and mx terms with a prefix length, such as a/24, and put a space between the quoted strings of a split record.