SPF, DKIM and DMARC Explained for Small Businesses

Sooner or later a website host, an IT person or an email provider will mention SPF, DKIM and DMARC. They sound like alphabet soup, and most owners nod and move on. They're worth ten minutes, because they decide whether other people's mail servers can tell your real email from a fake one that uses your name. This post explains each one in plain English. It is general guidance, not legal advice, and setting these up does not guarantee that nobody will ever send mail pretending to be you.

The big picture

Anyone can type any name into the From line of an email. Mail servers that receive your messages have no built-in way to know whether a message really came from your business. SPF, DKIM and DMARC are three public settings that give them something to check. All three live in your domain's DNS, which is the public directory that says where your website and email go. Because they are public, anyone can look them up, including you.

SPF: the list of who may send for you

SPF stands for Sender Policy Framework. You publish a list of the mail servers allowed to send email for your domain. A receiving server checks the list. If the message came from a server that is not on it, the receiver treats the message with more suspicion.

SPF is stored as a DNS TXT record that begins with v=spf1. Google's example for a business that only sends mail through Google Workspace looks like this: v=spf1 include:_spf.google.com ~all. If you also send mail through a newsletter tool or an invoicing program, those senders normally need to be on the list too. Google's own page on setting up SPF has the details. Changes can take up to 48 hours to show up.

DKIM: a signature on your mail

DKIM stands for DomainKeys Identified Mail. Your email system adds a digital signature to each outgoing message. The matching public key sits in your DNS, so a receiving server can check that the message really was signed by your domain and was not altered on the way.

You do not create the signature by hand. Your email provider generates the key, and you or your web host publishes it in DNS. One detail to know: DKIM records are found under a name called a selector, which differs by provider. That means a lookup tool needs the right selector to find your record.

DMARC: what to do when checks fail

DMARC is the instruction sheet. It builds on SPF and DKIM and tells receiving servers what to do with mail that claims to be from your domain but fails those checks. A message passes DMARC if SPF or DKIM passes and lines up with the domain in the visible From address. According to Google's guide to setting up DMARC, you pick one of three policies:

  • none: deliver the message as usual, and send reports.
  • quarantine: send it to the spam folder.
  • reject: refuse the message.

Google recommends starting with none, watching the reports, and moving toward quarantine or reject over time. The DMARC project also describes this rollout on dmarc.org. You will see the policy written as p=none, p=quarantine or p=reject inside a DNS TXT record. An address in the record, labeled rua, tells receivers where to send summary reports.

What a missing DMARC record means

If a lookup shows no DMARC record for your domain, you just haven't published any instructions. Your email hasn't necessarily been hacked, and nothing is necessarily broken today. Mail will usually still flow. Receivers just have no guidance from you, so each one decides on its own how to treat a failing message, and you get no reports about who is sending mail in your name. Adding a DMARC record with the none policy is a gentle first step, but get your SPF and DKIM working first. Google suggests letting them run for at least 48 hours before turning on DMARC.

What to ask your email provider

You do not need to touch DNS yourself. Send your provider, web host or IT person a short note like this:

  1. Is SPF set up for our domain, and does it include every service that sends email for us, such as invoicing or newsletter tools?
  2. Is DKIM turned on for our domain, and what is our selector?
  3. Do we have a DMARC record? If not, can you add one that starts with p=none and sends reports to an address we check?
  4. Who gets the DMARC reports, and who will read them?

Ask them to explain any change before they make it. A wrong SPF entry can send your own real mail to spam, so go slowly.

How to check your records yourself, free

You can look at your public records without logging in to anything. Google's Check MX tool in the Google Admin Toolbox checks the MX and SPF records for a domain, and lets you enter a DKIM selector if you know it. For DMARC, any free DNS lookup site that shows TXT records can find it. The DMARC record is published as a TXT record at _dmarc followed by your domain, for example _dmarc.yourbusiness.com. A lookup only shows what is public, and these tools can differ in what they show, so treat the results as a starting point.

How the quiz and the Scorecard fit in

Our free 3-minute security quiz does not look at DNS. It asks 10 yes/no questions about your habits, such as passwords, updates and backups, and gives an instant score. The $79 Security Scorecard adds a written report. For that, we run public DNS lookups of your business email domain only, covering SPF, DKIM at common selectors, DMARC and MX. We do not log in to your email, your website or your devices, and we never ask for passwords. Because a DKIM record can sit under an uncommon selector, a lookup may not find one even when it exists, and the report says so plainly.

Where to go next

If your email account itself needs attention, start with our guide to two-step login for business email. For a plan that covers more than email, see our small business cybersecurity checklist, and if you are in the Collar City, our Troy, NY page has local details. Questions are welcome at collarcitytechhelp@gmail.com.

See where your business stands

Take our free 3-minute security quiz: ten yes/no questions, an instant score, and three tips. No signup needed.

Take the free quiz

Want the full picture? The Security Scorecard is a personalized written report for $79, with a full refund within 7 days if you are not satisfied.