Email was designed decades ago without a built-in way to prove who sent a message. Anyone can type your business name and email address into the From line of an email. SPF and DMARC are two small records you add to your domain's DNS settings that let receiving mail servers, like Gmail and Outlook, check whether a message claiming to be from you really is. They cost nothing to set up, and every business that uses its own email domain should have them.
SPF: who is allowed to send as you
SPF (Sender Policy Framework) is a TXT record that lists the servers allowed to send email for your domain. A typical one looks like this:
v=spf1 include:_spf.google.com ~all
In plain English: "Google's mail servers may send email for this domain. Treat mail from anywhere else as suspicious." The ending matters:
~allmeans "probably not legitimate" (a soft fail). It's a common, safe choice.-allmeans "not legitimate" (a hard fail). It's stricter and best once you're sure every sender is listed.+allor a bareallmeans "anyone may send as this domain," which defeats the purpose.
Two common mistakes: having more than one SPF record (you should have exactly one, and mail servers treat two as an error), and adding so many services that the record needs more than 10 DNS lookups, the limit set by the SPF standard. Either one can quietly break SPF.
DKIM: a quick note
DKIM adds a digital signature to each message your email provider sends, so the receiver can tell the message really came from your domain and wasn't changed on the way. You usually turn it on inside your email provider's admin settings, and the provider gives you the DNS record to add.
DMARC: what to do when checks fail
SPF and DKIM on their own don't tell a receiving server what to do when a message fails, and they don't always check the From address people actually see. DMARC fills both gaps. It's a TXT record at _dmarc.yourbusiness.com, for example:
v=DMARC1; p=none
The p= part is your policy, as defined in the DMARC specification:
p=none: monitor only. Mail is delivered as usual, and if you add a reporting address (theruatag), receivers send you reports about who is sending as your domain.p=quarantine: send failing messages to spam.p=reject: refuse failing messages outright.
Why your business needs them
- It protects your name. Customers, clients and vendors trust email from your domain. DMARC set to quarantine or reject makes it much harder for a scammer to send a fake "new bank details" message from your exact address. (For the other habits that stop those scams, see the small business cybersecurity checklist.)
- It helps your real email arrive. Google Workspace SPF setup help and Gmail sender rules require everyone sending to Gmail accounts to set up SPF or DKIM, and anyone sending more than 5,000 messages a day to set up SPF, DKIM and DMARC.
- It shows you what's going on. DMARC reports reveal services sending as your domain that you may have forgotten about.
How to set them up without breaking your email
- List every service that sends email as your domain: your email provider, booking or customer management software, invoicing or accounting tools, newsletter service and your website's contact form.
- Create or fix a single SPF record that includes each of those services, ending in
~all. Each service's help pages list the exact "include" to use. - Turn on DKIM in each service that supports it.
- Add DMARC with
p=noneand a reporting address, then watch the reports for a few weeks. - Tighten to
p=quarantine, thenp=reject, once you're confident all your real email passes.
If a domain never sends email at all, the setup is even simpler: an SPF record of v=spf1 -all and a DMARC record of v=DMARC1; p=reject tell the world that any email claiming to be from it is fake.
You add these records wherever your domain's DNS is managed, usually the company you bought the domain from or your website host. Make one change at a time and send yourself a test message after each.
Check your domain for free
My free checkup looks up your domain's SPF and DMARC records and tells you in plain English whether anything needs attention. It can't see DKIM, because DKIM records sit under names that only your email provider knows, so check that one in your provider's settings.
Want to check your own setup?
My free cybersecurity checkup looks at your domain's SPF, DMARC, HTTPS and security headers in about 30 seconds, using only public information. If you'd like this done for you every month, with plain-English fixes, see my plans, starting at $149 a month.
