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
- List every system that sends email as your domain, including invoicing, CRM and marketing tools.
- Look up the SPF include each provider documents and merge them into one record.
- Count the lookups. If the total is above ten, remove unused services or ask providers about flattening.
- 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
Related terms
- DKIMDKIM (DomainKeys Identified Mail) adds a digital signature to every outgoing email.
- DMARCDMARC (Domain-based Message Authentication, Reporting and Conformance) is a DNS record that tells receiving mail servers what to do with email that claims to come from your domain but fails authentication.
- Email spoofingEmail spoofing is sending a message with a forged From address so that it appears to come from someone else, such as your business, your bank or your supplier.
- DMARC policy (none, quarantine, reject)A DMARC policy is the p= value in your DMARC record.
Tools, guides and articles
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 checkThis page is general information for Australian small businesses, not legal, tax or financial advice. Check the linked primary source and ask a qualified adviser about your own situation.
Source
See this term in the full glossary (35 terms).
