Email guide

SPF, DKIM and DMARC for Microsoft 365: stop your email going to spam

If your business email lands in spam, or someone is sending mail pretending to be you, three DNS records are usually the fix. Replace yourdomain.co.za with your own domain in the examples.

7 minute readUpdated 2026-11-10By CLC Technologies

What they do

  • SPF lists the servers allowed to send mail for your domain.
  • DKIM signs your mail so receivers can tell it was not altered.
  • DMARC tells receivers what to do with mail that fails SPF and DKIM, and sends you reports.

SPF record

Add one TXT record on your domain. Only one SPF record may exist; merge entries if you also send from a mailing service.

Type: TXT   Host: @
Value: v=spf1 include:spf.protection.outlook.com -all

DKIM records

In the Microsoft 365 Defender portal, open Email and collaboration, Policies and rules, Threat policies, Email authentication settings, DKIM, choose your domain and copy the two CNAME records, then enable signing once they have propagated. They look like this:

selector1._domainkey  CNAME  selector1-yourdomain-co-za._domainkey.<tenant>.onmicrosoft.com
selector2._domainkey  CNAME  selector2-yourdomain-co-za._domainkey.<tenant>.onmicrosoft.com

DMARC record

Start in monitoring mode, read the reports, then tighten.

Type: TXT   Host: _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.co.za

Once legitimate senders all pass, move to p=quarantine and later p=reject.

Check your work

  • Send a test message to a Gmail address, open it, and look at Show original for SPF, DKIM and DMARC: PASS.
  • Allow up to a few hours for DNS changes to spread.

Let us do it

Mailboxes, users and DNS records are part of our Microsoft 365 administration.
Need help with this? Ask CLC Technologies, or see our Microsoft 365 administration service.
Powered byCloudforge