Exchange Online signing with tenant.onmicrosoft.com instead of brand domain
- Symptom:
- Gmail headers show dkim=pass header.d=company.onmicrosoft.com and dmarc=fail when SPF does not align.
- Cause:
- Microsoft 365 requires manually publishing selector1._domainkey and selector2._domainkey CNAMEs and flipping the DKIM toggle ON in Microsoft Defender.
- Fix:
- Publish both selector1 and selector2 CNAMEs in DNS, enable custom-domain DKIM in Defender, and verify aligned header.d=company.com.