Email authentication keeps your messages out of spam and stops others sending mail in your name. Four kinds of DNS record work together. Set them up once your domain's DNS is live (see Domain & DNS).
The four records
- MX routes incoming mail to your provider (for example Google). Without it, mail sent to you never arrives.
- SPF lists which servers may send mail as your domain. Receivers use it to spot forgeries.
- DKIM adds a signature to outgoing mail so receivers can confirm it wasn't tampered with.
- DMARC tells receivers what to do with mail that fails SPF or DKIM, and sends you reports.
Step 1: MX records (incoming mail)
Your email provider shows the MX records to add in its setup screens. Remove any MX records left from a previous provider.
- Google Workspace: one record,
smtp.google.comwith priority 1. Older setups use fiveASPMX.L.GOOGLE.COMrecords. Those keep working, but don't mix the two sets. - Microsoft 365: one record ending in
mail.protection.outlook.com, shown in the admin center under Domains.
Step 2: SPF (who can send)
SPF is one TXT record at the domain root (
@) that lists every service sending mail from yourorg.org. For Google Workspace alone:v=spf1 include:_spf.google.com ~all
Only one SPF record per domain or subdomain. When a tool asks you to add SPF, merge its
include: into the record you already have.Google Workspace plus MailerLite, for example, becomes
v=spf1 include:_spf.google.com include:_spf.mlsend.com ~all. The table at the bottom lists the includes for common tools.Tools that send from their own subdomain, such as newsletters from news.yourorg.org, get their records on that subdomain. Email deliverability explains why. Add exactly what each tool's domain screen asks for, on the name it gives.
Step 3: DKIM (signing)
For Google Workspace:
- Admin Console → Apps → Google Workspace → Gmail → Authenticate email.
- Generate new record for your domain, with a 2048-bit key.
- Add the TXT record Google gives you (name like
google._domainkey, a long value startingv=DKIM1...). - Wait up to 24-48 hours, then return and click Start authentication.
Every other sending tool (MailerLite, Brevo, Mailchimp) gives you its own DKIM record, usually a CNAME, in its domain settings. To check an existing setup, set up DKIM on Microsoft 365, or replace a weak key, see How to: Verify and configure DKIM signing.
Step 4: DMARC (the policy)
Add a TXT record named
_dmarc:v=DMARC1; p=none; rua=mailto:<address from your report reader>
DMARC reports arrive as XML files nobody can read, so send them to a report reader that turns them into an overview. We use URIports, a small independent Dutch service, which gives you the address to put after
rua=.Start with p=none (monitor only). Moving to a stricter policy before every sender is set up will send your own mail to spam.
Once every tool that sends as your domain passes SPF or DKIM, move to enforcement. How to: Resolve DMARC policy issues walks you through reading the reports and moving to
p=quarantine, then p=reject.Step 5: Test
Send test mail to a Gmail, an Outlook/Hotmail, and a work address. Check it lands in the inbox and that SPF and DKIM pass (view the headers). Useful tools:
- mail-tester.com, a deliverability score out of 10.
- mxtoolbox.com, checks your DNS records.
When everything passes, move newsletters and app mail to their own subdomains with Email deliverability.
Common senders (SPF includes)
| Service | SPF include |
|---|---|
| Google Workspace | include:_spf.google.com |
| Microsoft 365 | include:spf.protection.outlook.com |
| Proton Mail | include:_spf.protonmail.ch |
| MailerLite | include:_spf.mlsend.com |
| MailerSend | include:_spf.mailersend.net |
| Brevo | include:spf.brevo.com |
| Sendgrid | include:sendgrid.net |
| Mailchimp | include:servers.mcsv.net |
Common issues
Mail goes to spam. Check SPF has no typos, DKIM is active (green in Admin Console), and DMARC exists (even p=none). Check that every sending tool shows your domain as authenticated.
DKIM not working. Propagation can take 48 hours. Check the record name matches exactly and the long value wasn't truncated.
SPF failures. Only one SPF record may exist per domain or subdomain. Merge all senders into it, and keep it under 10 includes: SPF stops checking after 10 lookups.