Emails going to spam? Start with SPF, DKIM and DMARC

Since 2024, Gmail and Yahoo have required senders to prove who they are. Mail that can't is far more likely to land in spam or be rejected. Three DNS records do the proving.

By the DataCenter.lk team. Published .

Photo: Glenn Carstens-Peters / Unsplash

SPF: who may send for you

SPF is a TXT record listing the servers allowed to send mail for your domain. Every service that sends as you (your mail server, your website, a newsletter tool) must be in it, and the record must not need more than 10 DNS lookups.

Example: v=spf1 mx include:_spf.google.com -all

DKIM: a signature on every message

DKIM adds a cryptographic signature to each message. The receiving server checks it against a public key published in your DNS. If anything changed the message on the way, the signature fails.

DMARC: what to do when checks fail

DMARC tells receivers what to do with mail that fails SPF and DKIM: nothing (p=none), spam folder (p=quarantine) or reject. It also sends you reports. Start with p=none, read the reports for a few weeks, then tighten.

Still in spam? Check these next

  • Your mail server's IP isn't on a blacklist
  • Reverse DNS (PTR) matches your mail server's name
  • Messages aren't mostly images or links
  • You aren't sending to old or bought lists

Questions people ask

Can you set these up for me?

Yes. They're included with our business email, and we fix them for any mail system as part of our email deliverability service.

Not sure which plan fits?

Tell us what you're building. We'll recommend the smallest plan that works.

කතා කරන්න, අපි උදව් කරන්නම්