Blog / How the internet works /
SPF, DKIM and DMARC for small businesses
Your invoices land in spam. A scammer sends email pretending to be you. Your email provider’s help page says “set up SPF, DKIM and DMARC” as though everyone knows what that means.
This post is the practical walk-through for a small business. For the theory behind it, read how email actually gets delivered: SPF, DKIM and DMARC in plain words first. Here, we do the setup.
The three in one paragraph each
SPF is a list, published in DNS, of the servers allowed to send email for your domain.
DKIM adds a digital signature to every message. Receivers check it against a public key you publish in DNS. It proves the message wasn’t changed and really came from an authorised sender.
DMARC ties the two together. It tells receivers what to do if a message fails (nothing, quarantine, or reject) and sends you reports about who’s sending mail as your domain.
Before you touch DNS: make a sender list
List everything that sends email using your domain:
- Your main mailbox provider (Google Workspace, Microsoft 365, another host).
- Your website’s contact form and order emails.
- A newsletter tool.
- Your shop, booking system or invoicing software.
- A helpdesk or CRM.
- Any app that sends “from” your address.
Missing a sender is the number one cause of setup trouble. Ask around your team. This is also a good moment to read shared inboxes for small teams, because shared addresses are often the ones forgotten.
Step 1: SPF
SPF is a single DNS TXT record on your domain. It looks like this:
v=spf1 include:_spf.google.com include:sendprovider.example ~all
Read it as: “this is SPF; these services may send for me; treat everything else as suspicious (~all, soft fail).”
Rules to remember:
- Only one SPF record per domain. Two records break it. Merge them into one.
- Add
include:entries for each service, using the exact text their documentation gives you. - Watch the lookup limit. SPF allows only ten DNS lookups; too many
include:entries cause a permanent error. If you hit that, remove services you no longer use. - Start with
~all, move to-all(hard fail) once you’re confident.
Step 2: DKIM
DKIM is set up per sending service, not once for the whole domain.
- In each service’s settings (your mailbox provider, newsletter tool, shop), find “domain authentication” or “DKIM”.
- It will give you one or more DNS records, usually CNAME or TXT records with a “selector” name.
- Add them to your domain’s DNS exactly as shown.
- Go back to the service and press “verify”.
Each service signs its own mail with its own key, so you may end up with several DKIM records. That’s normal.
Step 3: DMARC, starting gently
DMARC is a TXT record at _dmarc.yourdomain.com. A safe starting record:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
p=nonemeans “monitor only; don’t act on failures”. It’s the right first step.rua=is where daily summary reports go. They’re XML files and hard to read by eye, so many people use a free or low-cost report reader.
Leave it at p=none for a few weeks. Read the reports. They show you every server sending as your domain and whether SPF and DKIM pass. You’ll almost always find a forgotten sender.
Step 4: tighten up, slowly
When the reports show only legitimate senders passing, you can move the policy:
p=quarantine: failing mail goes to spam. Start with a percentage if you like:pct=25.- Later,
p=reject: failing mail is refused outright.
Rushing to reject is how businesses accidentally block their own invoices. Moving up in stages is boring, and it works.
Step 5: test
- Send an email from each system (mailbox, form, shop, newsletter) to a Gmail account.
- Open the message and choose “Show original”. Look for SPF, DKIM and DMARC all showing “pass”.
- Use a free online record checker to catch syntax mistakes.
If your own site mail doesn’t arrive at all, contact form emails that don’t arrive: fixing deliverability is the next read.
Mistakes that break email
- Two SPF records. Merge them.
- Typos or missing quotes when pasting into a DNS panel. Some DNS hosts add quotes automatically; adding your own can double them.
- Forgetting a sender, then going to
reject. - Adding records to the wrong domain. If you send from
mail.yourdomain.com, check which domain the checks apply to. - Using a
+allSPF ending, which allows anyone to send as you. - Leaving old services in SPF, wasting lookups and widening your risk.
- Never reading DMARC reports.
Why it matters beyond spam
Major mailbox providers expect bulk senders to authenticate, and they’ve tightened enforcement since early 2024. Authentication also protects your brand: with a DMARC policy at quarantine or reject, it’s much harder for scammers to send believable email from your domain, which ties in with domain scams: fake renewal letters and emails.
If you want to understand how the receiving side thinks, how spam filters work fills in the picture.
A short checklist
- List every service that sends as your domain.
- One merged SPF record with the right includes.
- DKIM enabled and verified for each service.
- DMARC at
p=nonewith a reporting address. - Reports reviewed for a few weeks.
- Policy tightened in stages.
- A test from every system.
Key takeaways
- SPF lists allowed senders, DKIM signs messages, DMARC sets the policy and sends reports.
- Inventory first, then SPF, DKIM, DMARC (monitor), then tighten.
- One SPF record only, and mind the ten-lookup limit.
- Never jump straight to
reject.
Related reading
Which service sends email as your domain that you’d forget to list? It’s usually the one your website uses to send order or form notifications.