1. Home
  2. Guides
  3. Email, WhatsApp and Retention
  4. SPF, DKIM and DMARC: Email Authentication Set-Up Guide
Email, WhatsApp and Retention

SPF, DKIM and DMARC: Email Authentication Set-Up Guide

By Marketing Ruler Editorial TeamChhaviReviewed by ChhaviUpdated 3 min read
Quick answer

SPF, DKIM and DMARC are DNS records that prove your emails really come from your domain. SPF lists the servers allowed to send for you. DKIM adds a cryptographic signature to each message. DMARC tells inbox providers what to do when a message fails those checks and sends you reports about it.

Key takeaways

  • All three records are now expected for any brand sending marketing email at volume.
  • Alignment matters: the domain in your From address must match the domain that passes SPF or DKIM.
  • Start DMARC at p=none, read the reports, then move to quarantine and reject.
  • Most deliverability problems after set-up come from a forgotten sending tool, not the records themselves.

What does each record actually do?

SPF (Sender Policy Framework) is a TXT record on your domain that names the mail servers and services allowed to send email using that domain. When Gmail receives a message, it checks whether the sending server is on that list.

DKIM (DomainKeys Identified Mail) works differently. Your email platform signs each message with a private key, and you publish the matching public key in DNS. The receiver checks the signature, which proves the message was not altered and was authorised by the domain owner.

DMARC (Domain-based Message Authentication, Reporting and Conformance) sits on top of both. It checks that the visible From domain aligns with the domain that passed SPF or DKIM, sets a policy for failures and asks providers to send you aggregate reports.

How do you set them up, step by step?

Begin with an inventory. List every tool that sends email as your domain: Google Workspace or Microsoft 365, your email marketing platform, your ecommerce platform, CRM, helpdesk and invoicing software. Missing one tool is the most common reason legitimate mail later fails.

Then publish the records in your DNS panel at the registrar or DNS host. Each email tool gives you its exact values in its domain authentication settings. Copy them carefully and allow time for DNS propagation before testing.

  • SPF: publish one TXT record only, combining all senders with include: statements and ending in ~all or -all.
  • DKIM: add the CNAME or TXT records each platform provides, usually one per sending service.
  • DMARC: add a TXT record at _dmarc.yourdomain.com starting with v=DMARC1; p=none; rua=mailto:reports@yourdomain.com.
  • Test by sending to a Gmail address and opening 'Show original' to confirm SPF, DKIM and DMARC all show PASS.
FormulaExample DMARC record: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com; adkim=r; aspf=r

Which mistakes break authentication most often?

Two SPF records on the same domain is a classic error. Receivers treat that as a permanent failure. Merge them into one record. SPF also has a limit of ten DNS lookups, so a long chain of include: statements can quietly break it. Remove tools you no longer use.

Another frequent issue is sending from your root domain through a platform that only authenticates its own shared domain. The email may pass SPF for the platform but fail DMARC alignment for you. Always complete the platform's custom domain authentication step.

When should you tighten your DMARC policy?

Leave p=none in place for a few weeks and read the aggregate reports. Free and paid DMARC report tools turn the raw XML into readable lists of sources. Look for legitimate senders that are failing and fix them first.

Once all known sources pass, move to p=quarantine, which sends failures to spam, and later to p=reject, which blocks them. A strict policy protects your customers from spoofed emails pretending to be your brand, which matters for any business that sends invoices or payment links.

Worked exampleIllustrative: a D2C brand finds in DMARC reports that its courier tracking tool sends 'Your order has shipped' emails as the brand domain but fails DKIM. It adds the tool's DKIM record, waits a week, confirms the source now passes, and only then moves to p=quarantine.

Should marketing email use a subdomain?

Many brands send campaigns from a subdomain such as mail.yourbrand.in or news.yourbrand.in while keeping one-to-one business email on the root domain. This separates reputation, so a poor campaign does not drag down invoice or sales email delivery.

Each subdomain needs its own SPF and DKIM set-up. DMARC on the root domain applies to subdomains unless you publish a separate policy with the sp= tag or a record on the subdomain itself.

Frequently asked questions

Do small businesses really need DMARC?

Yes, if you send marketing or transactional email to Gmail, Yahoo or Outlook users. Major providers expect authentication from bulk senders, and DMARC also stops fraudsters spoofing your domain. A p=none record takes minutes to add and gives you visibility at no cost, so there is little reason to skip it.

Will DMARC improve my open rates?

Not directly. Authentication helps your mail get accepted and reach the inbox rather than spam, which can improve every downstream metric. But content, list quality and complaint rates still decide long-term placement. Treat authentication as the entry ticket, not the whole performance.

How long does DNS propagation take for these records?

It often takes minutes to a few hours, though some DNS providers can take up to a day or two depending on TTL settings. If a test fails right after publishing, wait and retest before changing the record. Use an online DNS lookup tool to confirm what the world currently sees.

Related guides

From other topics