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.
Get the DKIM values
Select contoso.com. If it offers Create DKIM keys, select it. The panel then shows two CNAME records.
Add the two CNAMEs
| Name | Value (copy yours from the panel) |
|---|---|
selector1._domainkey | selector1-contoso-com._domainkey.contoso.n-v1.dkim.mail.microsoft |
selector2._domainkey | selector2-contoso-com._domainkey.contoso.n-v1.dkim.mail.microsoft |
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".
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.
| Type | Name | Value |
|---|---|---|
| TXT | _dmarc | v=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
The DKIM panel shows signing enabled, and Resolve-DnsName _dmarc.contoso.com -Type TXT returns your policy.


