> Two SPF records cause SPF PermError and spam folder delivery. Learn how to merge them into one TXT record, stay under 10 DNS lookups, and verify the fix.

Source: https://mailbux.com/blog/email-security/fix-multiple-spf-records-merge

# Multiple SPF Records? How to Merge Them Into One (and Fix SPF PermError)

October 9, 2026•4 min read
You set up business email on your own domain, added the SPF record from the setup guide, and now some messages bounce or land in spam. A common cause: your domain now has **two SPF records**. One came with your website or an older email setup, and you added the new one next to it instead of merging them.
This guide shows how to spot the problem, merge everything into a single record, and stay under the 10-lookup limit.

## Why two SPF records break email

SPF is a TXT record that starts with `v=spf1` and lists the servers allowed to send mail for your domain. The SPF standard allows **exactly one** such record per domain. When a receiving server finds two, it does not pick one or combine them. It returns **PermError** (a permanent error), which counts as an SPF failure.
The result depends on the receiver and on your DMARC policy: messages can go to spam, get rejected, or fail DMARC alignment checks. It often looks random, because some receivers are stricter than others.

## Step 1: Check how many SPF records you have

Open your domain's DNS zone and look at every **TXT** record on the root of the domain (Name/Host `@` or blank). Count how many start with `v=spf1`. You can also check it from outside with the free [SPF Lookup tool](https://msg25.com/spf-lookup), which shows the SPF record your domain publishes and its DNS lookup count ([how to use it](https://mailbux.com/blog/email-guides/spf-lookup-tool-guide)).
Typical result when something is wrong:

```
TXT  @  "v=spf1 include:msg25.com ~all"
TXT  @  "v=spf1 a mx include:site.example ~all"
```

Other TXT records on `@` (site verification codes, for example) are fine. Only the ones starting with `v=spf1` count.

## Step 2: List every service that sends mail as your domain

Before deleting anything, write down who needs to send mail from addresses at your domain:

- **Your mailboxes** — for Mailbux this is `include:msg25.com`.
- **Your website** — contact forms and shop order emails, if they send from your domain directly.
- **Newsletter or marketing tools** — each one documents its own `include:` value.
- **Billing, CRM or helpdesk tools** that send as your domain.

Anything that is no longer used should be dropped, not copied over. Old entries waste lookups and authorize servers you don't control anymore.

## Step 3: Merge them into one record

Build one record with these rules:

1. Start with `v=spf1` exactly once.
2. Add every mechanism you still need (`include:`, `ip4:`, `ip6:`, `a`, `mx`), each once.
3. End with exactly one `all` term. Use `~all` (soft fail) while you test; move to `-all` only when you are sure every sender is listed.

The two records above become:

```
TXT  @  "v=spf1 include:msg25.com a mx include:site.example ~all"
```

Then **delete the second record** and edit the first one to the merged value. Don't leave the old one in place "just in case" — that recreates the error.
Tip: if your website host sends through its own server, an `a` or `ip4:` entry may be what it needs instead of an `include:`. Use the value from that host's documentation.

## Step 4: Stay under the 10 DNS lookup limit

Receivers stop after **10 DNS lookups** while evaluating SPF. Going over also returns PermError, even with a single record. These terms cost a lookup each: `include`, `a`, `mx`, `exists`, `redirect` and `ptr` — and the lookups inside each included record count too. `ip4`, `ip6` and `all` are free.
If you are over the limit:

- Remove services you no longer use.
- Drop `a` or `mx` if those servers never send mail for you.
- Replace an include with the fixed `ip4:` range it stands for, only if the provider publishes stable addresses.
- Send marketing mail from a subdomain (for example `news.yourdomain.com`), which gets its own SPF record and its own 10 lookups.

Avoid `ptr` completely: it is slow and discouraged by the standard.

## Step 5: Verify

1. Wait for DNS to update (usually minutes, up to the record's TTL).
2. Run the [SPF Lookup tool](https://msg25.com/spf-lookup) again: you should see one record and a lookup count of 10 or less.
3. Send a test message to an external mailbox and open the full headers. Look for `spf=pass` in the Authentication-Results line.

For a full check of MX, SPF, DKIM and DMARC together, see [How to Verify Your Email DNS Records Are Correct](https://mailbux.com/blog/email-guides/verify-email-dns-records-correct).

## Other SPF mistakes that look similar

- **SPF split across two TXT records** — a long record can be split into several quoted strings _inside one_ TXT record. Two separate TXT records are still two records.
- **An old SPF-type DNS record** — the separate "SPF" record type is obsolete. Use TXT only and remove the old one.
- **Typos** — `v=spf1` must be lowercase with the digit 1, and mechanisms are separated by single spaces.
- **Two `all` terms** — anything after the first `all` is ignored, so a merged record that kept both endings silently drops senders.

## Where SPF fits with DKIM and DMARC

SPF is one of three records that decide whether your mail is trusted. DKIM signs each message, and DMARC tells receivers what to do when checks fail. If you are setting up a domain from scratch, follow [DNS Records for Business Email: MX, SPF, DKIM, and DMARC](https://mailbux.com/blog/email-security/dns-records-business-email-mx-spf-dkim-dmarc) — the exact values for your domain are always shown in your Mailbux dashboard under **Domains → Open DNS setup**.
New to Mailbux? You get unlimited business mailboxes on your own domain (each mailbox uses at least 1 GB of your plan's storage), on servers in the EU (Finland) and Canada; a United States location is coming soon. [Start free](https://dash.mailbux.com/register).
Free business email
Want a professional address on your own domain, free to start? [Read the free business email guide](https://mailbux.com/blog/business-email/free-business-email-account) or [see how free business email works with Mailbux](https://mailbux.com/free-business-email).

## Put this guide to work

Business email on your own domain, free to start — unlimited business mailboxes on paid plans, no per-mailbox pricing.
[See pricing](https://mailbux.com/pricing)

## Related guides

[4 min read ### DNS Records for Business Email: MX, SPF, DKIM, and DMARC Setup Guide DNS records make or break your email setup. This guide walks you through MX, SPF, DKIM, and DMARC configuration.](https://mailbux.com/blog/email-security/dns-records-business-email-mx-spf-dkim-dmarc)

[7 min read ### DKIM Fail: What Each Error Means and How to Fix It Seeing dkim=fail in your headers or DMARC reports? Learn what body hash did not verify, signature verification failed and no key mean, and fix each one.](https://mailbux.com/blog/email-security/dkim-fail-causes-fixes)

[4 min read ### Best Email Hosting for Multiple Domains in 2026 Find the best email hosting for managing multiple domains in 2025. Compare providers on pricing, domain limits, and features for multi-domain email management.](https://mailbux.com/blog/email-comparisons/best-email-hosting-multiple-domains-2026)

[1 min read ### How to Use the SPF Lookup Tool to Verify Your SPF Record Verify your SPF record includes msg25.com to ensure emails from Mailbux are authenticated and not marked as spam.](https://mailbux.com/blog/email-guides/spf-lookup-tool-guide)

[1 min read ### SPF, DKIM, and DMARC Explained: Email Authentication for Businesses SPF, DKIM, and DMARC stop attackers from spoofing your domain. Learn how each works and how to set them up correctly.](https://mailbux.com/blog/email-security/spf-dkim-dmarc-email-authentication-explained)

[7 min read ### Free Business Email for Multiple Users: Set Up a Small Team Up to 7 people can each get their own address on one free plan. Plan the addresses, publish MX and SPF, create one mailbox per person and set a few house rules.](https://mailbux.com/blog/business-email/free-email-multiple-users)

---

More for agents: [llms.txt](https://mailbux.com/llms.txt) · [Sitemap](https://mailbux.com/sitemap.xml)
