Insights / Email security

SPF, DKIM and DMARC Explained: Stop Others Sending Email as Your Company

Three DNS records decide whether criminals can send invoices in your company's name. What they do, example records and a safe way to roll them out.

By Devinsidercode CORP · · 3 min read

Email was designed without any way to prove who sent a message. That is why fake invoices and "urgent payment" requests that appear to come from your own domain are still one of the most common ways companies lose money. Three DNS records — SPF, DKIM and DMARC — close that gap. They cost nothing but time, and since 2024 large mailbox providers such as Gmail and Yahoo have required them from bulk senders.

SPF: who is allowed to send

SPF (Sender Policy Framework) is a TXT record that lists the servers allowed to send email for your domain. A receiving server checks whether the message came from one of them. A Google Workspace domain might publish:

v=spf1 include:_spf.google.com ~all

Every service that sends mail as you — your mailbox provider, CRM, marketing platform, billing system or website forms — must be included. A domain can have only one SPF record, and SPF allows at most 10 DNS lookups; going over that limit makes the whole record fail.

DKIM: proof the message wasn't changed

DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each outgoing message. The public key is published in DNS under a selector, for example google._domainkey.example.com. The receiver verifies the signature and knows the message was sent by an authorized system and not altered on the way. Enable DKIM separately in every service that sends mail for you, and use 2048-bit keys where the service supports them.

DMARC: what to do when checks fail

SPF and DKIM on their own do not protect the address people actually see — the From line. DMARC ties them to it (this is called alignment) and tells receivers what to do with messages that fail: deliver them (p=none), send them to spam (p=quarantine) or reject them (p=reject). It also asks receivers to send you reports, so you can see who is sending mail in your name.

v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

The record lives at _dmarc.example.com. Only p=quarantine and p=reject actually protect you; p=none is a monitoring mode.

A safe rollout plan

  1. List every system that sends email as your domain — including the ones marketing or finance set up without IT.
  2. Publish one SPF record that covers them all, and stay under 10 DNS lookups.
  3. Turn on DKIM signing in each sending service.
  4. Publish DMARC with p=none and a reporting address, and read the reports for two to four weeks.
  5. Fix the legitimate senders that fail, then move to p=quarantine, optionally with pct=25 and increasing.
  6. When the reports are clean, move to p=reject.

Common mistakes

  • Two SPF records on the same domain — receivers treat that as an error.
  • Too many include: entries, pushing SPF over the 10-lookup limit.
  • DKIM enabled for the main mailbox but not for the CRM or marketing platform.
  • Leaving DMARC at p=none for years, which gives reports but no protection.
  • Forgetting parked and unused domains: publish v=spf1 -all and a p=reject DMARC record for domains that never send email.

Once DMARC is enforced you can also add BIMI, which shows your logo next to your messages in supporting inboxes — a small trust signal that only works on domains that are properly protected.

Email authentication is one of the checks in our free security self-check and a standard part of every cybersecurity audit. If you would rather have it set up and monitored for you, our system administration team does exactly that.

Ready to build something great?

Tell us about your project — we'll reply with next steps and an estimate.

Prefer to check numbers first? See our pricing.