// how to fix
Several SPF records on one domain
A domain must have only one SPF record. With two or more, SPF breaks for every email. Merge them into a single line.
What it means
SPF is a TXT record in your DNS that starts with v=spf1. The rules say a domain can have only one such record. If a receiving server finds two, it cannot know which one to trust, so it gives up and returns a "permerror" (permanent error).
This usually happens when you add a new service and follow its setup guide literally: "add this TXT record". You end up with one record for your mailbox provider and another one for your newsletter tool.
Why it matters
With two SPF records, SPF fails for all your emails, not only for the new service. Your messages lose an important proof of identity, DMARC can fail, and delivery to Gmail and Outlook suffers.
How to check
Delivmail checks this for you in two ways:
- Send a test email: on the home page, copy your unique test address, send it a normal email from the mailbox you want to check, then open the report. SPF shows "permerror" when several records are found.
- Use the Domain scanner: type your domain at
/domain-scannerto read your DNS records without sending anything.
The Domain scanner shows every SPF record it finds, so you can see them side by side.
How to fix it
- Open your DNS provider and list all TXT records on the domain itself (host
@or empty). - Find every record that starts with
v=spf1. Other TXT records (Google site verification, etc.) are fine and must stay. - Merge them into one line. Keep a single
v=spf1at the start, put all theinclude:,ip4:and other parts in the middle, and a single~allor-allat the end. - Save the merged record and delete the others.
Example
Before, two records:
v=spf1 include:_spf.google.com ~all v=spf1 include:servers.mcsv.net ~all
After, one record:
v=spf1 include:_spf.google.com include:servers.mcsv.net ~all
Tips
- If the two records end differently (
~alland-all), keep~alluntil you are sure all your senders are listed. - Old "SPF" type records (not TXT) are obsolete. If your DNS provider still shows one, delete it and keep only the TXT record.
- Merging many services can push you over the limit of 10 DNS lookups. The Domain scanner shows the count: stay at 10 or below.
- Subdomains are separate:
yourdomain.comandnews.yourdomain.comcan each have their own single SPF record.
Check that it is fixed
DNS changes are not instant. Most are visible within a few minutes, but some providers take up to 24 to 48 hours.
Run the Domain scanner again: only one SPF record should appear, marked as valid. Then send a test email from the home page. SPF should now pass.
Check that it is fixed
DNS changes can take from a few minutes to a few hours. Then send a new test email or scan your domain again.
Related guides
- No SPF record on your domainYour domain does not say which servers may send email for it. Add one TXT record and receivers can tell your real emails from fakes.
- SPF error: too many DNS lookups (permerror)SPF allows at most 10 DNS lookups. Above that, the whole record breaks and receivers treat it as invalid. Here is how to slim it down.
- SPF fails: the sending server is not authorizedYour domain has an SPF record, but the server that sent your email is not in it. Find which service sent the email and add it.
- No DKIM signature on your emailsDKIM adds a digital signature that proves an email really comes from your domain. Turn it on in your email provider and publish its key in DNS.
- DKIM signature fails (invalid signature or body hash)Your email is signed, but the signature does not check out. Usually the DNS key is wrong, or something changed the email after it was signed.