Step 2

Turn on DKIM and DMARC

DKIM signs every email the school sends, so receivers can tell it really came from you. DMARC tells them what to do with mail that fails the checks.

15 minutes, then a waitNeeds Security Administrator or Global Administrator

Get the DKIM values

Wheresecurity.microsoft.com›Email & collaboration›Policies & rules›Threat policies›Email authentication settings›DKIM

Select contoso.com. If it offers Create DKIM keys, select it. The panel then shows two CNAME records.

Add the two CNAMEs

NameValue (copy yours from the panel)
selector1._domainkeyselector1-contoso-com._domainkey.contoso.n-v1.dkim.mail.microsoft
selector2._domainkeyselector2-contoso-com._domainkey.contoso.n-v1.dkim.mail.microsoft
Azure CLI
az network dns record-set cname set-record -g $rg -z $z -n "selector1._domainkey" -c "PASTE-SELECTOR1-VALUE"
az network dns record-set cname set-record -g $rg -z $z -n "selector2._domainkey" -c "PASTE-SELECTOR2-VALUE"
Resolve-DnsName selector1._domainkey.contoso.com -Type CNAME -Server 8.8.8.8

Switch signing on

Back in the DKIM panel, set Sign messages for this domain with DKIM signatures to Enabled. The status should change to "Signing DKIM signatures for this domain".

"CNAME record does not exist"

Microsoft remembers that the records were missing when you first opened the panel. If Google's DNS already returns them, wait an hour and try again. This can take a few hours.

Publish DMARC

Start in monitoring mode. Add a report address once a mailbox exists to receive the reports.

TypeNameValue
TXT_dmarcv=DMARC1; p=none; rua=mailto:dmarc@contoso.com

After two clean weeks of reports, change p=none to p=quarantine, then to p=reject. UK schools can use the NCSC's free Mail Check service to read the reports.

Done when

Check

The DKIM panel shows signing enabled, and Resolve-DnsName _dmarc.contoso.com -Type TXT returns your policy.

Your progress is kept in this browser only.