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
| Record | Question it answers | Where it lives |
|---|---|---|
| SPF | Which servers may send email for this domain? | A TXT record on the domain |
| DKIM | Was this message signed by the real domain? | A TXT or CNAME record under a selector |
| DMARC | What 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
- SPF. Add the include value from your email provider to your domain's TXT record.
- DKIM. Add the selector records your provider gives you. This is usually the most important record for inbox delivery.
- DMARC. Start with
p=noneso 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.