Where the records go
Microsoft states that there is no portal in Microsoft 365 for DMARC on your own domain. SPF and DMARC go where your domain’s DNS is hosted, for example at Loopia, One.com or your web agency. Only DKIM is turned on in the Microsoft portal.
1. SPF
Add a TXT record on the domain itself:
v=spf1 include:spf.protection.outlook.com -all
If other services send email in your name, combine them in the same record, for example v=spf1 include:spf.protection.outlook.com include:_spf.google.com -all. There can only be one SPF record.
2. DKIM in Microsoft Defender
- Go to the Microsoft Defender portal, E-post och samarbete (Email & collaboration), Principer och regler (Policies & rules), Hotprinciper (Threat policies), Inställningar för e-postautentisering (Email authentication settings). The address is security.microsoft.com/authentication. Then choose the DKIM tab.
- Select your domain and turn on the switch. The portal then shows two CNAME records that are missing.
- Add them at your DNS host: the names
selector1._domainkeyandselector2._domainkey, with the targets the portal shows. The targets are different for each domain, so copy them exactly. - Come back after a while and turn on signing for the domain. When it works, the portal says the domain is signed with DKIM.
In the English interface the menus are called Email & collaboration, Policies & rules, Threat policies and Email authentication settings.
3. DMARC: reports only at first
Add a TXT record with the name _dmarc (change it to your own address):
v=DMARC1; p=none; rua=mailto:dmarc@ert-foretag.se
Microsoft recommends the same order we do. Start with p=none and read the reports. Then move to p=quarantine, and finally to p=reject.
4. Don’t forget onmicrosoft.com
Every Microsoft 365 account also has a domain that ends in .onmicrosoft.com. If you do not use it for email, you can give it v=DMARC1; p=reject in the admin centre: Inställningar (Settings), Domäner (Domains), select the domain, the DNS-poster (DNS records) tab, Lägg till post (Add record), type TXT with the name _dmarc.
Check that it works
Send an email to an address outside your business and look in the headers for dkim=pass and dmarc=pass. Then run the DMARC test.
Rather have us do it?
We set up SPF, DKIM and DMARC at a fixed price, 2 900 SEK excl. VAT, and check that your own email still gets through. Order Email Protection on site.
Sources: Microsoft Learn, Set up DMARC to validate email in Microsoft 365 and How to use DKIM for email in your custom domain, read on 19 November 2026.