In this article
SPF is your domain’s list of “trusted postmen”. It says which servers are allowed to send email on behalf of info@your-domain. The recipient’s mail service (Gmail, Outlook, Yandex) checks against this list. If a message comes from a server that isn’t listed, it looks suspicious and is more likely to land in spam.
What it is
SPF is an ordinary TXT record in the domain’s DNS that starts with v=spf1. An example for a site that sends mail from its hosting and through Google Workspace:
v=spf1 a mx include:_spf.google.com ~allaandmx— allow the website server and the domain’s mail servers;include:...— allow the servers of an external service (email, newsletters, CRM);~all— don’t trust anyone else (soft),-all— strictly forbid.
SPF works together with DKIM (the message signature) and DMARC (what to do with forgeries). Together they are your email’s “passport”.
How the monitor checks
Impact on the site and business
- Emails to customers go to spam: order confirmations, invoices, replies to enquiries.
- Leads from the site get lost: the form email is sent to you — and your own mailbox puts it in spam.
- Scammers use your domain: without SPF (or with +all) anyone can send emails “from you”.
- Big providers require SPF: since 2024 Gmail and Yahoo, and since 2025 Outlook, reject or throttle bulk mail without authentication.
Why it matters
A typical situation: the company connected a newsletter service or a new CRM, and nobody updated SPF. Emails from the CRM quietly start landing in spam. Nobody complains — customers simply don’t receive invoices and think you have vanished.
Norms
| Rating | What is in DNS | Comment |
|---|---|---|
| Good | One record, all services listed, ~all or -all, up to 10 lookups | Mail passes the check |
| Could be better | A record with ?all | “Neutral” — almost no protection |
| Bad | No record, two records, +all or more than 10 lookups | The check fails or the domain is unprotected |
How to fix it
- List everything that sends email from your domain: the website (forms, shop), the mail service, newsletters, CRM, online tills.
- For each service, find the SPF line in its help pages (usually
include:...). - Combine them into one record. If there are two records now, merge them and delete the extra one.
- Edit the record where the domain’s DNS is managed: at the registrar, in the hosting panel or in Cloudflare.
- Wait from 15 minutes to a few hours and check the result in the monitor.
Hosting and control panel
In the hosting panel open “DNS” or “Zone editor”, find the TXT record with v=spf1 and edit it. Many hosts create SPF automatically — check that there is only one and that it includes your external services.
For Google Workspace add include:_spf.google.com.
Yandex
For Yandex 360 add include:_spf.yandex.net.
Cloudflare
If DNS is in Cloudflare, edit the record there: DNS → Records → TXT. Records at the registrar have no effect in that case.
General recommendations
- Connected a new service that sends email? Update SPF straight away.
- Stopped using a service? Remove it from the record.
- Set up DKIM and DMARC too: SPF alone is not enough.
FAQ
~all or -all — which should I choose?
Start with ~all: if you forgot something, emails get flagged but not rejected. Once you are sure everything works, you can move to -all.
Why can’t I have two SPF records?
The standard requires it: with two records the check counts as an error and emails fail it entirely. You need one record with all services inside.
Our domain has no email. Do we need SPF?
Yes, as a ban: v=spf1 -all. It tells everyone that your domain never sends email and gets in scammers’ way.