Day 4: Domains, DNS and why email lands in Junk
Read a real domain's MX, SPF, DKIM and DMARC records with a free checker.
Every company wants email from its own domain, not @yourtenant.onmicrosoft.com. Adding that domain, and getting its DNS records right, decides whether mail arrives, lands in Junk, or can be faked by someone else.
The lesson
When you add a domain under Settings > Domains, Microsoft 365 asks you to prove you own it (a TXT record), then shows the records to create at your DNS host. The four that matter for email:
- MX: where mail for the domain is delivered. Point it at Microsoft 365 and mail flows into Exchange Online.
- SPF (a TXT record starting
v=spf1): which servers may send mail for the domain. For Microsoft 365 it includesspf.protection.outlook.com. - DKIM: a signature on every outgoing message, published as two CNAME records and switched on in the Microsoft Defender portal.
- DMARC (a TXT record at
_dmarc.): what receivers should do with mail that fails SPF and DKIM, and where to send reports. You start withp=none, read the reports, then move towardsp=reject.
Get these wrong and your mail goes to Junk, or worse, anyone can send mail that looks like it came from your boss. Our full walkthrough: SPF, DKIM and DMARC for Microsoft 365.
Today's task (15 to 20 minutes)
You can do this one with or without a tenant.
- Open the free EpiFive email domain checker and check a domain you know: your company's, your college's, or a big brand's.
- Write down in your log: where does its MX point? Does it have SPF, and does it end in
-allor~all? Is there a DMARC record, and what is itsp=value? - Now draft a DMARC record for a domain you might manage, using the DMARC record generator. Start with
p=noneand a reporting address. - With a tenant: open Settings > Domains in the Microsoft 365 admin center, select your
onmicrosoft.comdomain and look at its DNS records tab. Note which records Microsoft manages for you.
Read next on EpiFive
- Someone is sending email from your domain: stop it with DMARC.
- Fix DKIM CnameMissing in Microsoft 365.
- Microsoft 365 email going to Junk: how to read the headers.
Tomorrow
Day 5: the security basics every new tenant needs, in the order you should switch them on. Read day 5 on the site.