How to set up an SPF record
Create or correct your domain’s SPF record: the syntax, examples for Traxio and external services, the one-record rule and the 10-lookup limit.
On this page
An SPF record lists the servers allowed to send email for your domain. Receiving servers check it and treat mail from anywhere else with suspicion.
Your SPF record on Traxio
With Traxio nameservers, DirectAdmin creates an SPF record automatically. Check it in Account Manager › DNS Management: look for a TXT record on the domain beginning v=spf1.
A typical record for mail sent only through Traxio:
v=spf1 a mx ~allReading SPF
| Part | Meaning |
|---|---|
v=spf1 | This is an SPF record |
a | The server in the domain’s A record may send |
mx | The domain’s MX servers may send |
ip4:203.0.113.10 | This specific address may send |
include:_spf.example.com | Whatever that provider’s SPF allows may send |
~all | Anything else: soft fail (accept but mark) |
-all | Anything else: fail |
Adding other senders
If you also send through a newsletter service, Google Workspace or a CRM, add their include: to the same record:
v=spf1 a mx include:_spf.google.com include:servers.mcsv.net ~allUse the include value each service documents.
The rules that break SPF
- Only one SPF record. Two TXT records starting
v=spf1make SPF fail entirely. Merge them. - At most 10 DNS lookups. Each
include,a,mxandredirectcosts lookups, and includes can contain more. Exceed 10 and SPF fails with a “permerror”. Remove services you no longer use. ~allor-all, never+all.+allallows anyone to send as you.
Editing it
- Open Account Manager › DNS Management.
- Edit the existing
v=spf1TXT record — don’t add a second. - Save, then check:
dig yourdomain.co.uk TXT +shortPrefer to follow along?
- Set up SPF, DKIM and DMARC
Intermediate · 30 min - Switch your domain’s email to Google Workspace or Microsoft 365
Intermediate · 40 min
If it doesn’t work
These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.
- Understanding email bounce messagesRead an email bounce (non-delivery report): the common 4xx and 5xx codes, what ‘mailbox full’, ‘relay denied’ and ‘rejected by policy’ mean, and what to do.
- Why are my emails going to spam?The real reasons email lands in junk folders — authentication, content, reputation and recipient behaviour — and a checklist to fix each one.
- Can’t send email: how to fix outgoing mailFix email that won’t send from your app or phone: SMTP authentication, port and encryption mismatches, blocked networks and sending limits.
Common questions
What is an SPF record?
An SPF record is a line in your DNS listing which servers are allowed to send email using your domain. Receiving mail servers check it, and a message from a server not on the list looks like forgery.
This is a general web-hosting explanation, not specific to Traxio.
You should have exactly one SPF record. Two SPF records on the same domain is an error that makes authentication fail altogether — if you add a sender, edit the existing record rather than creating another.
Spotted something out of date or unclear? Tell us and we’ll fix it.