FM 3-2 · Fix guides

Set up SPF, DKIM and DMARC so your email stops landing in spam

2 min readUpdated By Chris Moore, USMC veteran and founder

BLUF · Bottom line up front

Three DNS records prove your email is really from you. Add SPF and DKIM through your email provider, then add a DMARC record that starts by monitoring. Twenty minutes, and your quotes stop landing in spam.

Gmail, Yahoo and Microsoft now expect business email to prove where it came from. Without proof, your invoice looks exactly like a scammer pretending to be you, and gets treated that way. Here is the chain of custody:

An email leaves your server, the receiving inbox checks SPF and DKIM, then follows your DMARC policy.You sendquote, invoice, replyInbox checksSPF + DKIMDMARC saysdeliver, spam or rejectSPF: is this server allowed? DKIM: was it signed and untouched? DMARC: what to do if not.
Three DNS records, one job: prove your email is really from you.
  • SPF is a list of servers allowed to send email for your domain. One TXT record.
  • DKIM is a digital signature your email provider adds to every message. You publish the public key in DNS.
  • DMARC tells inboxes what to do when a message fails both, and sends you reports. One TXT record at _dmarc.

Where the records go

DNS records live wherever your domain's DNS is managed: often your registrar (GoDaddy, Namecheap, Squarespace Domains), sometimes Cloudflare, sometimes your website platform. Your report's infrastructure card says who runs your DNS. Website builders matter here too:

WordPressFull fixDNS is at your registrar, host or Cloudflare. Full control.
WixFull fixDomains bought through Wix: add records in Domains, Manage DNS records.
SquarespaceFull fixSquarespace Domains: Domains, DNS settings, Add record.
ShopifyFull fixShopify-managed domains: Settings, Domains, Manage, DNS settings.
GoHighLevelFull fixDNS stays at your registrar. If GHL sends email for you, add its records there.

A DMARC record that won't hurt you

Start in monitor mode. It changes nothing about delivery and starts the reports flowing:

_dmarc.yourdomain.com   TXT   v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

After a few weeks of clean reports, move to p=quarantine, and later p=reject. That last step is what actually stops someone sending fake invoices in your name.

The orders, step by step

  1. List everything that sends email as you

    Your mailbox provider (Google Workspace or Microsoft 365), your website forms, your CRM (GoHighLevel, HubSpot), your newsletter tool, your invoicing app. Each one needs to be in SPF, and ideally sign with DKIM.

  2. Add or fix your SPF record

    One TXT record on your root domain. Google Workspace: v=spf1 include:_spf.google.com ~all. Microsoft 365: v=spf1 include:spf.protection.outlook.com ~all. Add each extra sender's include: to the same record. Your report's ready-to-paste records already do the combining for you.

  3. Turn on DKIM with your email provider

    Google Workspace: Admin console, Apps, Google Workspace, Gmail, Authenticate email, Generate new record, then add the TXT record it shows and click Start authentication. Microsoft 365: Defender portal, Email authentication settings, DKIM, then add the two CNAME records and enable signing. CRMs and newsletter tools have their own DKIM records under domain or sending settings.

  4. Add a DMARC record in monitor mode

    Add a TXT record named _dmarc with v=DMARC1; p=none; rua=mailto:you@yourdomain.com. Use a mailbox you actually read, or a free DMARC report service.

  5. Wait, check, then tighten

    DNS changes can take up to a few hours. Run a new scan or use our free email security tool to confirm all three pass. After two to four weeks with no surprises in the reports, change p=none to p=quarantine.

Questions from the field

Why is my email going to spam?

The most common reasons are missing or broken SPF, DKIM or DMARC records, a sending server on a spam blocklist, or sending from a service that isn't in your SPF record. Your report's Email health page checks all of these.

Can I have two SPF records?

No. Two SPF records make both invalid. Merge every sender into one record with multiple include: entries.

Will DMARC block my own email?

Not with p=none, which only monitors. Read the reports first, make sure every service you use passes, then tighten the policy.

Still stuck? Send us your question. A real person answers, Monday to Friday.

Keep reading