Menu

Your app's emails go to spam (SPF, DKIM and DMARC)
📰

Your app's emails go to spam (SPF, DKIM and DMARC)

DEV Community: database·Axonscape·3 days ago
#rUBt7RR6
#devtodatabase#devto#dev#domain#record
Reading 0:00
15s threshold

Sign-in links and receipts landing in spam usually mean the sending domain isn't set up: no SPF, no DKIM signature, no DMARC record. Gmail and Yahoo now expect all three.

What you see

Magic links, password resets or receipts arrive in spam, or never arrive.

Why it happens

Mail providers check that a domain says which servers may send for it (SPF), that mail is signed (DKIM), and what to do with mail that fails (DMARC). Without them, your app's mail looks like spoofing.

How to fix it

Add your domain in your email provider (Resend → Domains) and create the DNS records it lists: SPF and DKIM.

Add a DMARC record: a TXT record at _dmarc.yourdomain.com , e.g.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.