Home › Blog › How to Set Up SPF, DKIM and DMARC for Your Domain
Email

How to Set Up SPF, DKIM and DMARC for Your Domain

By Joshua Wood · Updated 07/06/2026 · 3 min read · 257 words

How to Set Up SPF, DKIM and DMARC for Your Domain

If your emails land in spam, or scammers are spoofing your domain: the fix is three DNS records: , and .

These three records tell the world which servers are allowed to send email for your domain, and what to do with anything that fails the check. Together they protect your deliverability and your brand.

SPF, who can send for you

SPF (Sender Policy Framework) is a TXT record listing the servers allowed to send email from your domain. Example: v=spf1 include:spf.protection.outlook.com -all. The -all means "reject anything not listed". Keep it to one SPF record with all your senders included.

DKIM: a tamper-proof signature

DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each message so the receiver can verify it really came from you and wasn't altered. Your mail provider gives you DKIM CNAME/TXT records to publish, for example, Microsoft 365 and Google Workspace both generate these in their admin console.

DMARC: the policy that ties it together

DMARC tells receivers what to do when SPF or DKIM fails, and where to send reports. Start in monitor mode: v=DMARC1; p=none; rua=mailto:[email protected]. Once reports show your legitimate mail passes, tighten to p=quarantine then p=reject.

The order to set them up

  1. Publish SPF with every sending service included.
  2. Enable DKIM in each mail provider and publish their records.
  3. Add DMARC at p=none and read the reports for a couple of weeks.
  4. Move DMARC to quarantine, then reject.

Common mistakes

Key takeaways

Email that reaches the inbox

We set up Microsoft 365 and email authentication so your messages land where they should.

Explore Microsoft 365

Frequently asked questions

Why are my emails going to spam?

Missing or misconfigured SPF/DKIM is the most common cause. Receivers distrust mail that can't be authenticated.

Do I need all three records?

Yes for best results. SPF and DKIM prove authenticity; DMARC enforces a policy and gives you visibility through reports.

Can Gander Web set these up for me?

Yes. We configure SPF, DKIM and DMARC as part of email and Microsoft 365 setup.