Get in touch with us!

Enable DKIM for a custom domain in Office 365 in five simple steps

DKIM | Enable DKIM for a custom domain in Office 365 in five simple steps

1. Log in to Exchange Online using PowerShell for Exchange Online

2. List all domains and see id DKIM is enabled or not:


3. Get the cname for DNS for a specific domain

Get-DkimSigningConfig -Identity | fl *cname*

4. Create cname records in DNS for the domain you just listed, in this specific case I use Azure DNS.

Your records should be created according to this table:

Host name:            selector1._domainkey.<domain>

Value:  selector1-<domainGUID>._domainkey.<initialDomain>

TTL:                     3600


Host name:            selector2._domainkey.<domain>

Value:  selector2-<domainGUID>._domainkey.<initialDomain>

TTL:                     3600

In my case:

Host name:  


TTL:                     3600


Host name:  

Points to address or value:

TTL:                     3600


5. Wait until your DNS records are public or you get this error message when you run:

Set-DkimSigningConfig -Identity -Enabled $true

6. DONE!


  1. Thomas

    Tar gärna en lätt manuall också för att importera dessa commandon som inte känns igen på min maskin.

    • Magnus.Bjork, Black Belt | Office 365 | Cloud Security

      Ladda ner PowerShell for Exchange Online, du hittar den i Exchange Online portalen, längst ner under fliken Hybrid.


Submit a Comment

Your email address will not be published. Required fields are marked *