SPF, DKIM and DMARC for small businesses, in plain language

If your shop sends email from its own domain, like you@yourshop.com, three short DNS records help other mail systems trust that the message really came from you. They are SPF, DKIM and DMARC. Without them, your invoices and booking confirmations are more likely to land in spam, and it is easier for someone to fake mail in your name.

Why it matters now. Since February 2024, Gmail and Yahoo require anyone sending in bulk to Gmail addresses (about 5,000 messages a day) to have SPF, DKIM and DMARC. Even small senders need SPF or DKIM. Google's own sender guidelines set this out at https://support.google.com/a/answer/81126.

SPF: who may send. SPF is one TXT record on your domain that lists the services allowed to send mail for it, such as your mailbox provider, your booking tool and your newsletter service. A domain should have only one SPF record, and SPF can follow at most 10 DNS lookups, so adding every tool you have ever tried can break it.

DKIM: a signature on each message. Your sending service signs every message, and you publish the matching public key in DNS under a name the service gives you, usually something like selector._domainkey. Each service that sends for you has its own DKIM setup.

DMARC: what to do when the checks fail. DMARC is a TXT record at _dmarc.yourdomain. It tells receiving systems what to do with mail that fails SPF and DKIM for your domain: p=none (only report), p=quarantine (treat as suspicious) or p=reject (refuse). It can also ask for daily reports, so you can see who is sending as you.

Setup order

  1. List every service that sends mail as your domain: mailbox, website forms, booking, invoicing, newsletter.
  2. Publish one SPF record that includes only those services.
  3. Turn on DKIM in each of those services and add the records they give you.
  4. Add DMARC at p=none with a report address, and read the reports for a few weeks.
  5. When only real services show up, move to p=quarantine, then p=reject if it suits you.

What these records do not do. They do not stop all spam or phishing that reaches your own inbox, and they do not guarantee your mail lands in the inbox. They make mail that really comes from you easier to trust and fakes easier to catch.

Our own domain as an example. implara.com publishes SPF as v=spf1 include:icloud.com ~all, because our mail runs through iCloud, and DMARC at p=quarantine with reports turned on.

If you would rather not touch DNS, IMPLARA LLC sets up SPF, DKIM and DMARC for shops in Venice and Sarasota. See Email and domain records, or write ask@implara.com.