SPF, DKIM and DMARC: a plain-English setup guide

Three DNS records decide whether Gmail, Outlook and Yahoo trust your emails. Here is what each one does and exactly how to add them.

SPF — who may send for your domain

SPF is a TXT record listing the servers allowed to send email for a domain. Receivers compare the sending server's IP with that list.

mail.yourbrand.com.  TXT  "v=spf1 a mx include:spf.novamail.nexaclouds.online ~all"

Rules: only one SPF record per name, and no more than 10 DNS lookups in total. Use a sending subdomain (like mail.) so your main domain's SPF stays untouched.

DKIM — a signature on every email

DKIM adds a cryptographic signature to each message. The public key lives in DNS under a selector; receivers use it to prove the email was not altered and really came from your domain. Use 2048-bit keys.

nm-AbC123._domainkey.mail.yourbrand.com.  TXT  "v=DKIM1; t=s; h=sha256; p=MIIBIjANBgkq..."

DMARC — the policy that ties them together

DMARC tells receivers what to do when SPF or DKIM fail and don't align with the visible From domain, and where to send reports.

_dmarc.mail.yourbrand.com.  TXT  "v=DMARC1; p=none; adkim=r; aspf=r;"

Start with p=none to monitor, then move to p=quarantine and eventually p=reject once all your legitimate senders pass.

How to check

Run dig TXT mail.yourbrand.com and dig TXT _dmarc.mail.yourbrand.com, or open your domain in the NovaMail dashboard and click Verify DNS — each record shows OK, Missing or Invalid.

Common mistakes

Frequently asked questions

Do I need all three?

Yes. Since 2024 Gmail and Yahoo require SPF and DKIM for everyone and DMARC for anyone sending more than 5,000 messages a day to their users.

How long does DNS take?

Usually a few minutes; up to the record's TTL (often 5 minutes to 1 hour).