SPF, DKIM and DMARC explained for small businesses

Last updated: 27 November 2026

If your business emails land in spam, or someone sends fake emails in your name, these three DNS records are the fix. What each one does, how to check them and the order to set them up.

The problem these records solve

Email was designed decades ago without any proof of who sent a message. Anyone can type your business address into the "From" line, which is how fake invoice and payment-change emails are sent. Mail providers such as Gmail, Outlook and Yahoo now check three records published in your domain's DNS to decide whether a message really came from you. Since 2024, Gmail and Yahoo require them from senders of large volumes, and missing records make even ordinary business mail more likely to land in spam.

SPF: who may send for you

SPF (Sender Policy Framework) is a TXT record that lists the servers allowed to send email for your domain - for example Google Workspace, Microsoft 365, or the service that sends your newsletters. It looks like v=spf1 include:_spf.google.com ~all. The ending says what to do with other senders: ~all marks them as suspicious, -all asks receivers to reject them.

Common mistakes: having two separate SPF records (only one is allowed - merge them), and adding so many services that the record needs more than 10 DNS lookups, after which it stops working.

DKIM: a signature on every message

DKIM (DomainKeys Identified Mail) adds a digital signature to each email. Your email provider signs the message with a private key, and publishes the matching public key in your DNS under a name called a selector, such as google._domainkey.yourdomain.com. Receivers use it to confirm the message was not changed and really came through your provider. You turn DKIM on in your email provider's admin panel, which gives you the record to add.

DMARC: the policy that ties them together

DMARC is a TXT record at _dmarc.yourdomain.com that tells receivers what to do when a message fails SPF and DKIM checks, and where to send reports. It starts gently and is tightened over time:

  • p=none - only monitor and collect reports; nothing is blocked. Start here.
  • p=quarantine - failing mail goes to spam. Move here once reports show all your genuine mail passes.
  • p=reject - failing mail is refused. The strongest protection against people faking your address.

Setting them up in the right order

  • List every service that sends email as your domain: your mailbox provider, website contact forms, billing software, newsletter tools.
  • Publish one SPF record that includes all of them.
  • Turn on DKIM in each service that supports it and add its record.
  • Add DMARC with p=none and a reporting address, then read the reports for a few weeks.
  • Move to quarantine and finally reject when nothing genuine is failing.
  • Check the records with a DNS checker after every change - DNS updates can take from minutes to a day to appear.

Convert a PDF to Excel now →