SPF, DKIM and DMARC setup for small business, in plain English
SPF, DKIM and DMARC are three DNS records that tell other mail servers which senders are allowed to use your domain and what to do with mail that fails the check. Set up SPF and DKIM for every service that sends as your domain, publish a DMARC record at p=none to collect reports, then tighten it to p=quarantine and p=reject once legitimate mail passes. Done right, it makes it much harder for scammers to send invoices, gift card requests or "new bank details" emails from your exact address.
It also helps your own mail get delivered. Google and Yahoo have required SPF, DKIM and DMARC from bulk senders (more than 5,000 messages a day to their users) since 2024, Microsoft began enforcing similar rules for Outlook.com and Hotmail in 2025, and authenticated mail is treated better by mail filters generally.
What each record does
| Record | What it says | Analogy |
|---|---|---|
| SPF | Which mail servers may send mail for your domain | A list of approved couriers |
| DKIM | A digital signature on each message, checked against a public key in your DNS | A tamper-evident seal |
| DMARC | What receivers should do when a message fails SPF and DKIM alignment (nothing, spam folder, or reject), and where to send reports | The instructions for the front desk |
Step 1: list everything that sends as your domain
Before touching DNS, list every service that sends email using your domain: Microsoft 365 or Google Workspace, your website's contact form, your newsletter tool, invoicing and accounting software, your booking system, your CRM, and any copier that scans to email. Each one needs to be covered by SPF or DKIM, or its mail will start failing when you tighten DMARC. Your IT asset inventory is a good starting point.
Step 2: SPF
Publish one TXT record at the root of your domain. Typical examples:
- Microsoft 365:
v=spf1 include:spf.protection.outlook.com -all - Google Workspace:
v=spf1 include:_spf.google.com ~all
Add an include: for each other sender, using the value its documentation gives you. Rules that trip people up:
- Only one SPF record per domain. Two records means SPF fails. Merge them into one.
- A limit of 10 DNS lookups. Each
include:counts, and some include others. Too many and SPF fails; a free online SPF checker will count them for you. -allmeans "reject anything not listed";~allmeans "treat as suspicious". With DMARC in place, either works; DMARC is what enforces the policy.
Step 3: DKIM
- Microsoft 365: in the Microsoft Defender portal, go to the email authentication settings (Email & collaboration → Policies & rules → Threat policies → Email authentication settings → DKIM), select your domain, create DKIM keys if prompted, add the two CNAME records it shows to your DNS (copy the exact values; the format changed for new domains in 2025), then enable signing.
- Google Workspace: in the Admin console, go to Apps → Google Workspace → Gmail → Authenticate email, generate a new record (2048-bit if your DNS host supports it), add the TXT record to your DNS, and click Start authentication only once the record is live.
- Other senders (newsletter, invoicing, CRM): most give you DKIM records to add, often under "domain authentication". Do it for each one.
Menus change from time to time; if a path has moved, search the provider's help for "DKIM".
Step 4: DMARC, gradually
Publish a TXT record at _dmarc.yourdomain.com. Start in monitoring mode:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
The rua address receives daily aggregate reports from big mail providers. They're XML files, so use a dedicated mailbox and a DMARC report reader (several have free tiers) rather than your own inbox.
| Stage | Policy | How long | Move on when |
|---|---|---|---|
| 1. Monitor | p=none | 2–4 weeks | Reports show every legitimate sender passing SPF or DKIM |
| 2. Quarantine | p=quarantine; pct=25, then 100 | 2–4 weeks | No complaints about missing legitimate mail |
| 3. Reject | p=reject | Ongoing | Review reports monthly and when you add a new email tool |
p=none on its own satisfies the bulk sender rules but doesn't stop spoofing. The protection comes from quarantine and reject.
Common mistakes
- Jumping straight to
p=rejectand blocking your own invoices or newsletters. - Forgetting a sender, often the website contact form or the accounting software.
- Adding a second SPF record instead of editing the first.
- Ignoring domains you own but don't send from. Protect them with
v=spf1 -allandv=DMARC1; p=rejectso they can't be spoofed either.
What DMARC doesn't stop
DMARC stops mail that pretends to be from your exact domain. It doesn't stop lookalike domains (yourcompany-invoices.com), free webmail accounts using your name, or mail from a genuinely hacked account. Those need staff training, verification habits for payment changes (see bank detail changes and direct deposit changes), and MFA on email (MFA rollout plan).
Cyber insurers increasingly ask about email authentication; see the insurance questionnaire guide. Check your other basics with the free 5-minute security self-assessment.
Cyber Insurance Readiness Pack $29
Includes a cyber insurance questionnaire worksheet, an MFA rollout plan, a backup test log and a phishing handout for staff.
Get the templatesFrequently asked questions
What is the difference between SPF, DKIM and DMARC?
SPF lists which servers may send email for your domain, DKIM adds a signature to each message that receivers check against your DNS, and DMARC tells receivers what to do with mail that fails those checks and sends you reports.
Should I start DMARC with p=reject?
No. Start with p=none to collect reports, make sure every legitimate sender passes, then move to p=quarantine and finally p=reject over several weeks.
Does DMARC stop all email impersonation?
No. It stops mail using your exact domain. Lookalike domains, free webmail accounts using your name, and hacked accounts need staff training, payment verification and MFA.