Skip to content

What is an SPF record?

By Ash, Founder, HosteazePublished 1 min read

An SPF record is a TXT record on your domain that lists which mail servers are allowed to send email using your domain name. Receiving servers check it to spot forgeries. Each domain can have only one SPF record, and it must stay within 10 DNS lookups or it stops working.

Clipboard holding a printed checklist beside a laptop, like the list of approved senders an SPF record keeps
Credit: viarami via Pixabay

SPF stands for Sender Policy Framework. Think of it as the guest list for your domain's email: when a message arrives claiming to be from you, the receiving server checks whether the server that sent it is on the list. It works alongside DKIM and DMARC.

What does an SPF record look like?

v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all
PartMeaning
v=spf1Identifies the record as SPF. Must come first.
include:Adds another service's list of servers, such as Google Workspace or Microsoft 365.
ip4: / ip6:Allows a specific IP address or range, for example a server you run yourself.
a / mxAllows the servers your domain's A or MX records point to.
~allAnything not listed is a "soft fail": treat it as suspicious.
-allAnything not listed fails outright.

Real records usually only need one or two include: terms. The example above covers a business that uses both Google and Microsoft, which is rarer than you'd think.

What goes wrong with SPF?

Three mistakes cause most SPF problems:

Is SPF enough on its own?

No. SPF checks the hidden "envelope" sender, not the From address people see, and it breaks when email is forwarded. That's why it's paired with DKIM and DMARC. For the full setup in the right order, see how to set up SPF, DKIM and DMARC.

Frequently asked questions

Where do I add an SPF record?

In the DNS settings for your domain, wherever your nameservers point. It's a TXT record on the root of the domain, usually entered with the host set to @.

Can I have two SPF records?

No. Two records starting with v=spf1 make SPF fail for every email. Combine every service into one record with several include terms.

Should my SPF record end in ~all or -all?

Either works once DMARC is in place. ~all marks unlisted senders as suspicious and -all says they fail outright. Many providers suggest ~all while you are still finding every service that sends as you.

Sources

  1. RFC 7208, Sender Policy Framework (SPF)
  2. Google Workspace, Set up SPF
  3. Microsoft, Set up SPF to identify valid email sources
A weathered parking meter whose dial reads Time Expired, the moment a domain stops working if nobody renews it.QuestionWhat happens when a domain expires?When a domain expires, it soon stops working, so your website and email go down, although .uk domains keep running for the first 30 days. You can usually still renew it during a grace period. After that comes a redemption period, when recovery is still possible but slower, and finally the name is released for anyone to register.Email and domains · 18 November 2026Rows of identical letterboxes along a wall, each one getting its own copy of the post, the way a distribution list delivers email.QuestionShared mailbox vs distribution list, which should I use?Use a shared mailbox when a team needs to work from one inbox, such as info@ or support@, so everyone sees the same messages and replies. Use a distribution list when you just want an email copied to several people's own inboxes, such as all-staff@. Shared mailboxes suit customer enquiries. Distribution lists suit announcements.Email and domains · 16 November 2026A brick footpath through a park that splits into two routes, like the choice between Microsoft 365 and Google Workspace.ComparisonMicrosoft 365 vs Google Workspace for small businessBoth give you professional email on your own domain, cloud storage and video calls, and both cap their business plans at 300 users. Pick Microsoft 365 if your team relies on desktop Word, Excel and Outlook. Pick Google Workspace if you work mostly in a browser and collaborate on shared documents. Email quality is a tie.Email and domains · 14 November 2026A wall of numbered wooden post office boxes, where mail waits on site until its owner collects it.QuestionIMAP vs POP3, which should I use?Use IMAP. It keeps your email on the server and syncs it, so your phone, laptop and webmail all show the same inbox, folders and read messages. POP3 downloads messages to one device and usually deletes them from the server, which made sense when storage was scarce. Today it mostly causes lost emails and confusion.Email and domains · 12 November 2026Young seedlings growing in a black plastic tray, a reminder that a new domain's reputation has to be grown slowly.QuestionHow to warm up a new email domainWarming up a new email domain means building a good sending reputation before you send in bulk. Set up SPF, DKIM and DMARC first. Then start with small, steady sends to people who expect your email, increase volume gradually, and watch your spam complaint rate, keeping it well under Google's 0.3% limit.Email and domains · 10 November 2026

Want email on your own domain?

Hosteaze hosting plans let you set up mailboxes on your own domain. See what each plan includes.

See hosting plans