Skip to main content
Enter TitanOS

Glossary

What is SPF?

By Kyle Deligny, Brisbane. Last reviewed 28 November 2026. General information, not legal advice.

SPF. SPF (Sender Policy Framework) is a DNS record that lists the servers allowed to send email for your domain. When a message arrives, the receiving server looks up the SPF record for the domain in the envelope sender address and checks whether the sending server's IP address is on the list. A typical record names your email provider, for example Microsoft 365 or Google Workspace, plus any invoicing or newsletter tool that sends on your behalf. SPF has a hard limit of ten DNS lookups, and a record that goes over it fails silently, which is a common fault in small business domains that have added several tools over the years. SPF alone does not protect the From address a person actually sees, which is why it is paired with DKIM and DMARC.

How it works

SPF works on the envelope sender, the address mail servers use behind the scenes to route a message, not the From address a person reads. The receiving server looks up the SPF record for that domain, then checks whether the IP address that delivered the message is permitted. The answer is pass, fail, softfail, neutral or none, and DMARC uses it along with DKIM to reach a decision.

A record is one TXT entry that begins v=spf1, then lists permitted sources, then ends with an instruction for everything else. Mechanisms such as include: pull in a provider's list, for example the one Microsoft 365 or Google Workspace publishes. The ending -all means reject anything not listed, while ~all means treat it as suspicious but accept it. Every include, a, mx, exists and redirect counts toward the limit of ten DNS lookups defined in RFC 7208. Go over it and the result is a permanent error, which many receivers treat as a failure.

A domain may publish only one SPF record. When a second tool needs to send as you, its include is added to the existing record, not published as another record. Businesses that have added a newsletter service, a quoting app and a booking system over several years often end up past ten lookups without knowing.

What a small business record looks like

An illustrative record for a business on Microsoft 365 that also sends invoices through one other service is v=spf1 include:spf.protection.outlook.com include:_spf.invoicetool.example -all. It names two permitted senders and tells receivers to reject everyone else. The second include is a placeholder: use the exact value your invoicing provider documents.

What to do about it

  1. List every system that sends email as your domain, including invoicing, CRM and marketing tools.
  2. Look up the SPF include each provider documents and merge them into one record.
  3. Count the lookups. If the total is above ten, remove unused services or ask providers about flattening.
  4. Finish with ~all while testing and -all once DMARC reports show nothing legitimate failing.

Common mistakes

  • Publishing two SPF records for the same domain.
  • Leaving an old provider's include in place after you stopped using it.
  • Assuming SPF alone protects the From address people see. It does not.

Related terms and tools

See where your own domain stands. Titanos runs a free external check from public records only, and nothing on your systems is touched.

Run the free domain check

Source

  1. RFC 7208, SPF specification

See this term in the full glossary (35 terms).

Book a free call