Skip to main content

Email Authentication Basics

SPF, DKIM, and DMARC are DNS records that tell mailbox providers who is allowed to send email for your domain. DNS is the system that connects your domain name to services like email and websites. These records do not send email. They prove that the email came from you.

Without them, Gmail, Outlook, and other large providers are more likely to mark your mail as spam. In many cases they reject it outright.

What each record does​

RecordQuestion it answersWhere it lives
SPFWhich servers may send email for this domain?A TXT record on the domain
DKIMWas this message signed by the real domain?A TXT or CNAME record under a selector
DMARCWhat should happen when SPF or DKIM fails?A TXT record on _dmarc

A simple way to remember them:

  • SPF checks the server that sent the message.
  • DKIM checks the signature on the message.
  • DMARC ties both to the From address and tells providers what to do when they fail.

Set them up in this order​

  1. SPF. Add the include value from your email provider to your domain's TXT record.
  2. DKIM. Add the selector records your provider gives you. This is usually the most important record for inbox delivery.
  3. DMARC. Start with p=none so you can monitor without blocking mail. Move to quarantine or reject only after the reports look clean.

Do not publish DMARC with p=reject at the start. If SPF or DKIM is broken, you will block your own password reset emails.

LetterPress does not manage DNS​

LetterPress can send through your provider, but it does not add or verify DNS records for you. Add the records at the company that manages your DNS, such as Cloudflare, Route 53, or your host.

Your email provider shows the exact values. Copy them from the provider, not from a blog post. Values change, especially DKIM selectors.

A safe way to check​

Use a DNS lookup tool, or run these commands on your computer:

dig TXT example.com
dig TXT selector._domainkey.example.com
dig TXT _dmarc.example.com

Replace example.com and selector with your values. If a command returns nothing, the record is missing or not published yet.

DNS changes can take minutes or hours to spread. Do not change a record again after five minutes. Wait, then check.

Next steps​

  • Add or fix your sender record in SPF.
  • Sign your messages with DKIM.
  • Set a policy with DMARC.