SPF, DKIM and DMARC for Small Business Email: A Plain-English Setup Guide

SPF, DKIM and DMARC are three DNS-based checks that help receiving mail systems confirm your email really came from your domain. This guide explains what each one does and the order I use to set them up for a small business.

Why this matters now

Google’s email sender guidelines for Gmail recipients took effect on February 1, 2024. Senders who send more than 5,000 messages a day to Gmail addresses must authenticate with SPF, DKIM and DMARC, and Google recommends that all senders set them up. Most small businesses are under that volume, but the same checks protect you from someone sending forged email in your name, and they help your real invoices, quotes and newsletters reach the inbox.

What each check does

SPF is a DNS record listing the servers allowed to send mail for your domain. A receiving server compares the sending server against that list.

DKIM adds a cryptographic signature to each message. Your mail provider holds a private key, you publish the matching public key in DNS, and the receiver uses it to confirm the message was not altered and was signed by your domain.

DMARC ties the two together. It tells receivers what to do when a message fails both checks (nothing, quarantine, or reject) and where to send reports about what they saw.

Step 1: List everything that sends email as you

Before touching DNS, write down every system that sends mail with your domain in the From address. Typical entries are your main mailbox provider, a newsletter tool, an invoicing or CRM system, your website’s contact form, and a helpdesk. A forgotten sender is the most common reason a record breaks real mail.

If your website sends form notifications, check how. Mail sent straight from a web server often fails authentication, and routing it through your mailbox provider’s SMTP is usually the fix. My contact form checklist covers testing the form itself.

Step 2: Publish SPF

You may have only one SPF record per domain. It starts with v=spf1, includes each sending service your providers tell you to include, and ends with ~all (soft fail) or -all (hard fail). Start with soft fail while you confirm nothing legitimate is missing. Providers publish the exact include value to use, so copy it from their help pages rather than guessing.

Step 3: Turn on DKIM

In your mailbox provider’s admin console, generate the DKIM key, publish the record it shows you in DNS, then switch signing on. Repeat for each other service that sends mail as you. Send a test message to a personal Gmail account, open the original message headers, and look for DKIM and SPF showing a pass.

Step 4: Add DMARC in monitoring mode

Publish a DMARC record at _dmarc.yourdomain.com with a policy of p=none and an address for reports. At this stage nothing is blocked; you are collecting evidence. Read the reports for a few weeks and look for legitimate senders that fail. Fix those, then move to p=quarantine, and later to p=reject if the reports stay clean.

Common mistakes

  • Publishing two SPF records instead of merging them into one.
  • Forgetting the newsletter or invoicing tool that sends on your behalf.
  • Jumping straight to p=reject and blocking your own legitimate mail.
  • Changing DNS without a saved copy of the old records. Export or screenshot them first.

DNS changes are small but they sit next to the records that keep your website and email running, so make them with a rollback plan, the same way you would for a site restore (see how to test a WordPress backup restore).

If you want help auditing who sends mail as your domain and getting the records in place, see my services or Contact Us.

Additional sources