HomeGuidesAboutToolsBuy DomainsSEOContact
Email and Authentication6 min read875 words

SPF Record Explained for Beginners

Learn what an SPF record does, why it matters for business email, and how it helps receiving servers check sending permissions.

Quick scan

Primary keyword
SPF record explained for beginners
Guide cluster
Email and Authentication

An SPF record is a DNS TXT record that tells receiving mail servers which servers are allowed to send email on behalf of your domain. SPF stands for Sender Policy Framework.

Use These Tools With This Guide

Move from explanation to action with the matching DomainCheck.co.uk tools for this topic.

Use with this guide

Domain Checker

Confirm the domain is resolving cleanly before troubleshooting email delivery.

Open tool
Use with this guide

Domain Extractor

Useful when auditing email-related domains across many records or assets.

Open tool
Use with this guide

Contact DomainCheck

Escalate when email setup touches DNS, registrar access, and live business mail.

Open tool

Why This Guide Exists

SPF is one part of email authentication, but it solves a specific problem: deciding which mail servers are allowed to send mail for your domain. That is different from MX routing and different from general DNS propagation. A separate article keeps the explanation focused and avoids mixing email security concepts together.

Guide

Overview

An SPF record is a DNS TXT record that tells receiving mail servers which servers are allowed to send email on behalf of your domain. SPF stands for Sender Policy Framework.

In plain English, it is a permission list. If a message claims to come from your domain, the receiving server can check whether the sending server is on that list.

Why SPF exists

SPF was created to reduce email spoofing. Spoofing is when a sender pretends to use your domain name in the envelope sender or related mail checks, even though they are not authorised to do so.

For a business, this matters because customers and suppliers may receive fake emails that appear to come from your brand. SPF helps receivers make a basic trust decision.

What SPF does and does not do

SPF can help verify whether a sending server is allowed to send for your domain, but it does not by itself make email secure.

SPF does not:

  • encrypt email
  • guarantee inbox placement
  • stop every kind of phishing
  • prove the visible “From” name is genuine in every situation

It is one control in a larger email authentication setup. In practice, it usually works alongside DKIM and DMARC.

SPF in business terms

If you send invoices

SPF helps inbox providers see that your invoicing platform is allowed to send mail for your domain.

If you use marketing tools

Your newsletter platform or CRM needs to be listed in SPF if it sends mail as your domain.

If you changed DNS recently

SPF can fail simply because the new DNS zone is missing the record or the TXT value was copied badly.

If spam complaints increased

SPF will not solve reputation issues on its own, but it is one of the checks worth confirming first.

What an SPF record looks like

SPF is published in DNS, usually as a TXT record. The content names one or more allowed senders using SPF mechanisms and qualifiers.

The exact syntax can look technical, but the idea is simple:

  • identify who may send mail for the domain
  • publish that information in DNS
  • let receiving servers compare the sender against the policy

Because the syntax can become complex, it is best to build SPF from the services you actually use rather than copying a random example.

PartWhat it usually meansWhy it matters
v=spf1The record is an SPF policySignals that the TXT value is meant to be processed as SPF
ip4 / ip6Specific sending IP rangesUseful for fixed mail servers or dedicated infrastructure
includePull in another provider's policyCommon with hosted email and marketing services
~all / -allHow strict the policy is at the endControls what happens to senders not listed earlier

Common sending services

A domain’s SPF record often needs to include providers such as:

  • Microsoft 365
  • Google Workspace
  • a website platform that sends contact form mail
  • a CRM or newsletter platform
  • a transactional email service

If you send mail from multiple services, your SPF record must account for all of them. That is where many setups go wrong.

The “one SPF record” rule in practice

For a single hostname, you normally want one SPF policy published as one TXT record. If you accidentally create multiple SPF records for the same name, some receivers may treat the result as invalid or unpredictable.

That is why SPF should be managed carefully. People often add a new service, create another TXT record, and assume everything will merge automatically. It usually will not.

Common SPF mistakes

The usual problems are:

  • forgetting to include a service that sends mail for the domain
  • publishing more than one SPF policy at the same hostname
  • using outdated mail provider instructions
  • copying SPF from another domain without checking the sending services
  • making the record too broad or too complicated

There is also a practical limit to how much SPF can do. The more services you add, the more careful you need to be with DNS lookups and maintenance. Some providers simplify this by using include mechanisms, but the exact behaviour depends on how the record is built.

Important limitation

SPF can become fragile when too many vendors are added to the same domain. If the record grows into a long chain of includes and lookups, maintenance gets harder and the risk of breakage goes up.

SPF and DNS changes

SPF is stored in DNS, so any update is subject to the same caching behaviour as other records. That means a corrected SPF record may not be visible everywhere at once.

If email starts failing after a DNS change, it is worth checking whether:

  • the SPF record is present on the correct hostname
  • the TXT value is complete and unbroken
  • the mail service is actually sending from an authorised source
  • the domain’s nameservers are pointing at the zone that contains the record

Sometimes the SPF value is right, but the new zone was not copied correctly after a nameserver move.

SPF versus MX

MX records and SPF records are often confused because they both live in DNS and both affect email. They do different jobs.

MX tells the world where to deliver mail for the domain.

SPF tells the world which senders are allowed to send mail using the domain.

You usually need both, but neither replaces the other.

How to approach SPF safely

If you need to edit SPF, use this order:

  • List every service that sends mail for the domain.
  • Check the provider guidance for each service.
  • Build one combined SPF policy for the correct hostname.
  • Publish it as a TXT record.
  • Test with a real message and a DNS lookup.

This is safer than editing the record from memory or using old snippets.

When SPF problems show up

SPF issues often appear after:

  • a mailbox migration
  • a marketing platform integration
  • a website contact form change
  • a nameserver move

That is because one overlooked sender can cause legitimate mail to fail authentication even though the mailbox itself still exists.

What beginners should remember

The simplest way to remember SPF is this: it is a public allow-list for sending mail. If your business sends from more than one system, that allow-list needs to match reality.

If the record and the actual sending systems drift apart, mail authentication can start failing without any obvious visible DNS error.

Simple rule

If a service sends mail on behalf of your domain, it should be in SPF. If it does not send mail, it should not be there.

FAQ

No. SPF checks authorised sending servers. DKIM checks a cryptographic signature on the message. They solve related but different problems.

Next Actions

Check your SPF record before sending from a new mail service.
Review MX, SPF, and DKIM together when you set up business email.
Use DomainCheck.co.uk to confirm your DNS records are published as expected.
Try Domain Checker