Mail services such as Gmail and Outlook decide in a fraction of a second whether a message can be trusted. One of the first things they check is whether the sending domain has published three records in its DNS: SPF, DKIM and DMARC. Without them, even ordinary invoices and replies can be filtered as spam, and anyone can send email that pretends to come from your domain.

What each record does

  • SPF lists the servers that are allowed to send mail for your domain. A message sent from anywhere else fails the check.
  • DKIM adds a cryptographic signature to every message. The receiving server checks it against a public key in your DNS and knows the content was not altered on the way.
  • DMARC tells receiving servers what to do when SPF or DKIM fails, and where to send reports about it.

How to check your domain

Send a message from your business mailbox to a personal Gmail address, open it and choose “Show original”. You will see a pass or fail for each of the three checks. Free DNS lookup tools show the same records directly.

The order that avoids surprises

  1. List every service that sends mail as your domain. Your mailbox provider, but also the website form, the online shop, invoicing software, newsletters and help desk tools. Forgotten senders are the most common reason legitimate mail starts failing.
  2. Publish one SPF record that includes all of them. A domain may have only one SPF record; a second one breaks the check.
  3. Turn on DKIM for each sending service. Most services generate the record for you to copy into DNS.
  4. Start DMARC in monitoring mode (p=none) and read the reports for a few weeks.
  5. Tighten the policy step by step, first to quarantine and then to reject, once the reports show that all legitimate mail passes.

Do not stop at the records

A new domain also needs a short warm-up: send normal volumes to real contacts first, not a bulk campaign on day one. Keep transactional mail, such as receipts and password resets, on a separate sending service or subdomain from marketing, so that a newsletter complaint never blocks an invoice.

Setting up the domain, mailboxes, DNS and sending services in the right order is part of our launch infrastructure service. For who should own these accounts in the first place, see whose name your business accounts are in.