Writing
SPF, DKIM and DMARC: stop people sending email as your business
How SPF, DKIM and DMARC stop scammers sending email as your business, and a safe order to set them up without losing your own mail.
11 November 2026

TL;DR
- Your email can arrive while nothing proves it came from you. Without the right DNS records, a fake “please pay this invoice” email with your domain in the From line looks like the real thing.
- SPF lists the servers allowed to send for your domain. DKIM signs each message so the receiver can check it. DMARC ties both to the address people actually see, tells receivers what to do when a message fails, and sends you reports.
- Roll out in order: list every service that sends as you, publish one SPF record that covers all of them, turn on DKIM in each one, start DMARC at
p=nonewith reports, read them, then move toquarantineand finallyreject. - The common mistakes are two SPF records,
+all, forgetting the website contact form or the newsletter tool, and jumping straight toreject. - Gmail and Yahoo have required SPF, DKIM and DMARC from bulk senders since February 2024, and Outlook.com began routing non-compliant high-volume mail to Junk after 5 May 2025. Small senders benefit too.
- Never take payments to a free personal email address. Use an address on your own domain, so a customer can tell your messages from a scammer’s.
Most small businesses set up email once, see that it works, and never look at it again. What usually is not in place is proof. On many small-business domains, nothing tells a receiving server which messages really came from you, so it guesses: sometimes it lets a scammer’s message through, sometimes it puts your real invoice in spam.
This guide explains the three records that fix that and a safe order to set them up. Facts come from the standards and the providers’ own documentation, checked November 2026. Providers change their rules, so check the linked pages before you act.
What goes wrong without them
The From address on a message is just text, and the sending server can write whatever it likes there. Three DNS records let a receiver check it against what the domain owner has published.
The usual picture on a small-business domain: an SPF record was added when the business signed up for Google Workspace or Microsoft 365, so it covers that provider and nothing else. The website contact form sends notifications through a different service. The newsletter tool sends from yet another one. DKIM was never switched on for the custom domain. There is no DMARC record at all.
That gives two problems at once. Your real mail from the form and the newsletter fails the checks and is more likely to land in spam. And with no DMARC policy, receivers have no instruction from you to block a forged message, which is the opening for a “pay this fee” or “our bank details have changed” email that looks like yours.
The three records, plainly
SPF: which servers may send for you
SPF, defined in RFC 7208, is one TXT record on your domain that lists the servers allowed to send mail for it. A typical record starts with v=spf1, lists your senders with include: entries and IP ranges, and ends with ~all (soft fail anything else) or -all (fail anything else).
SPF has two limits. It checks the hidden envelope sender, not the From address people see, so on its own it does not stop a forged From line. And evaluating a record may trigger at most 10 DNS lookups: include, a, mx, ptr, exists and redirect each count, while ip4, ip6 and all do not. Go over 10 and the result is a permanent error, which counts as a failure (RFC 7208, section 4.6.4).
DKIM: a signature on every message
DKIM, defined in RFC 6376, has the sending service sign each message with a private key. You publish the matching public key in DNS, and the receiver uses it to check the message came through that service unchanged. Unlike SPF, a DKIM signature usually survives forwarding.
Each service that sends as you needs its own DKIM key on your domain. Google Workspace asks you to generate a key in the Admin console, add it as a TXT record, then click “Start authentication”, and recommends a 2048-bit key where your DNS provider supports it (Google Workspace: set up DKIM). Microsoft 365 signs mail from your onmicrosoft.com address automatically, but for your own domain you create two CNAME records and enable DKIM signing for that domain (Microsoft: DKIM for custom domains). Newsletter and form services each have their own domain authentication page.
DMARC: the rule that ties it together
DMARC is a TXT record at _dmarc.yourdomain.ca that does three things. It requires that SPF or DKIM not only pass, but pass for the same domain as the visible From address (this is called alignment). It tells receivers what to do with mail that fails: p=none (monitor only), p=quarantine (treat as suspicious, usually spam) or p=reject (refuse it). And with an rua= address it asks receivers to send you daily aggregate reports of who is sending mail as your domain.
DMARC was first published as RFC 7489, an informational document. In May 2026 it was replaced by a standards-track version, RFC 9989, with aggregate reporting moved to RFC 9990. The basics above are unchanged for a small business.
How they fit together
| Record | What it checks | What it cannot do alone |
|---|---|---|
| SPF | The sending server is on your list | Protect the visible From address; it also breaks on forwarding |
| DKIM | The message was signed by a key on your domain and not changed | Say what to do when a signature is missing |
| DMARC | SPF or DKIM passed for the From domain, and what to do if not | Anything, without SPF or DKIM underneath it |
A message passes DMARC when at least one of SPF or DKIM passes and aligns with the From domain. That is why DKIM matters so much: if every service signs with your domain, your mail passes DMARC even when forwarding breaks SPF.
A safe rollout
The Canadian Centre for Cyber Security’s implementation guidance on email domain protection sets out the same shape we follow: assess, deploy, enforce, maintain.
- List every service that sends as you. Your mailbox provider, the website contact form, the newsletter tool, invoicing software, booking systems, the online shop, a CRM, and anything a past contractor set up.
- Publish one SPF record that covers all of them. Add each provider’s
include:from its own setup page, then count the lookups. If you are near 10, remove services you no longer use. - Turn on DKIM everywhere. Your mailbox provider first, then each other sending service, each with its own key on your domain.
- Publish DMARC at
p=nonewith reports. For examplev=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.ca. The Cyber Centre notes that a monitor-only record does not affect delivery. - Read the reports for a few weeks. They are XML, so most people use a report reader. Fix any legitimate service that fails.
- Move to
p=quarantine, thenp=reject. Once your real mail passes consistently, tighten the policy and keep watching the reports. - Keep it up. Add every new sending tool to SPF and DKIM before you switch it on. The Cyber Centre also recommends rotating DKIM keys yearly.
Domains that never send mail, such as a spare .com that redirects to your .ca, need protecting too: the Cyber Centre recommends v=spf1 -all and DMARC at p=reject on them.
Common mistakes
- Two SPF records. A second
v=spf1record, added when you sign up for a new tool, is the most common error. A domain must have only one, and two cause a permanent error (RFC 7208, section 3.2). Merge them into one. +allat the end. It means “any server in the world may send for this domain”, which defeats the purpose. Use~allor-all.- Forgetting the website form. Form notifications often send “from” your domain through the web host or a transactional email service. If that service is missing from SPF and DKIM, your enquiries are the first mail to go missing when you enforce.
- Going straight to
reject. Without a few weeks of reports, you cannot know what you are about to block, often the invoicing tool nobody remembered.
What the big mailbox providers require
Since February 2024, Google requires everyone sending to Gmail accounts to set up SPF or DKIM, and bulk senders (more than 5,000 messages a day to Gmail) to set up SPF, DKIM and DMARC, with the From domain aligned with SPF or DKIM. For bulk senders the DMARC policy can be none, and marketing mail must support one-click unsubscribe (Google email sender guidelines). Yahoo set similar rules from February 2024: SPF or DKIM for everyone, and both plus DMARC at p=none or stronger for bulk senders (Yahoo sender best practices).
Microsoft announced that domains sending more than 5,000 emails a day to Outlook.com consumer addresses need SPF, DKIM and DMARC at p=none or stronger, and that from 5 May 2025 non-compliant mail from those domains goes to Junk (Microsoft Defender for Office 365 blog).
Most small businesses send far fewer, but these rules show where the providers are heading.
Optional extras, once the basics work
- MTA-STS (RFC 8461) tells other servers to deliver mail to you only over verified TLS.
- TLS-RPT (RFC 8460) asks senders to report TLS delivery problems to you.
- BIMI shows your logo beside your messages in supporting inboxes. Gmail requires DMARC at
quarantineorreject, and a Verified Mark Certificate (VMC) or Common Mark Certificate (CMC) bought from a certificate authority (Google Workspace: set up BIMI). It only makes sense after enforcement.
For deeper reading, the industry group M3AAWG publishes email authentication best practices.
Related DNS hygiene
- Auto-renew and a current card at the registrar. A lapsed domain takes email and website down together.
- Registrar lock and two-factor sign-in. The lock stops an unapproved transfer; two-factor protects the account that controls everything else.
- DNSSEC, where your registrar and DNS host support it, signs your DNS answers so they are harder to forge.
- CAA records (RFC 8659) name the certificate authorities allowed to issue certificates for your domain.
Where your DNS lives often depends on where the site is hosted, which we cover in where your website is hosted and why it matters.
Payments belong on your own domain
Make sure every payment instruction comes from an address on your own domain, and say so on your website and invoices. Anyone can create a free address like yourbusiness.payments@gmail.com in minutes, and once customers are used to paying one, a scammer only needs another that looks close. With DMARC enforced on your domain, a forged message from your real address is far more likely to be rejected, and you can tell customers plainly: we only ask for payment from this domain.
Sources, all linked above and checked November 2026 (provider rules can change): the IETF RFCs for SPF, DKIM, DMARC, MTA-STS, TLS-RPT and CAA, the Canadian Centre for Cyber Security (ITSP.40.065), and the sender documentation from Google, Microsoft and Yahoo, plus M3AAWG.
Want us to set it up?
When we build a website, we set up SPF, DKIM and DMARC for the domain as part of launch, covering the contact form and any tools that send as you, on accounts in your name. If your site is already live, we can fix the records as a small one-off job, quoted in writing before we start, in CAD before GST where it applies. Our website launch checklist covers the rest of launch day.
Not sure where your site stands? The free website check looks at speed, accessibility, search basics and phones, and emails you the top fixes.

The monthly AWS note
One AWS cost or reliability fix a month.
For small SaaS teams running AWS without a DevOps hire. One short email a month:
- One concrete fix for cost or reliability, with the console steps or CLI command
- A common AWS mistake small teams make, and how to avoid it
- New RavGB guides and free tools, before anyone else
From RavGB Technologies Inc., Saddlemont NE, Calgary, AB, Canada (hello@ravgb.com). By subscribing you agree to receive this monthly email. No spam, we never share your address, and you can unsubscribe in one click, any time.