Why your emails go to spam: SPF, DKIM and DMARC explained
Gmail and Yahoo now require email authentication. What SPF, DKIM and DMARC are, and how to set them up for your domain in 15 minutes.
Since 2024, Gmail and Yahoo require every sender to authenticate their mail with SPF or DKIM, and bulk senders (around 5,000+ messages a day to Gmail) need SPF, DKIM and DMARC. Without them, invoices, password resets and newsletters end up in spam or get rejected.
The three records
- SPF (a TXT record on your domain) lists which services may send email for you, e.g.
v=spf1 include:_spf.google.com ~all. Only one SPF record per domain: combine providers into one. - DKIM adds a cryptographic signature. You turn it on in your email provider (Google Workspace, Microsoft 365, Brevo, Mailchimp…) and it gives you a DNS record to add.
- DMARC (a TXT record at
_dmarc.yourdomain) tells receivers what to do when SPF/DKIM fail and sends you reports. Start withv=DMARC1; p=none; rua=mailto:dmarc@yourdomain, then move top=quarantineonce reports look clean.
Quick steps
- List every service that sends email as your domain (mailbox, newsletter, shop, website forms).
- Build your SPF and DMARC records with our free SPF & DMARC generator.
- Turn on DKIM in each provider.
- Wait for DNS to update, then re-check.
KeyMoat checks SPF, DMARC and DKIM on common selectors for your domain. Run a free scan.
Sources: Google email sender guidelines, Yahoo sender best practices.
Run a free, read-only scan of your live app
Paste your URL. Checks leaked keys, exposed files, security headers and anonymous Supabase access. Only scan sites you own.
Scan my site free →