Forum Discussion
Not Able to enable DKIM in Office365 - Online Exchange server
- Aug 22, 2020
Hey Sumesh1980 ,
Okay, Just tested it, it appears you did not run the command :
New-DkimSigningConfig -DomainName <domain> -Enabled $false before updating the CNAME records.
So here are the steps that you need to complete in order to get this working:
1. New-DkimSigningConfig -DomainName <domain> -Enabled $false
2. Get-DkimSigningConfig -Identity <domain> | Format-List Selector1CNAME, Selector2CNAMEGrab the CNAMES and update them in DNS.
Then run the command:
Set-DkimSigningConfig -Identity <domain> -Enabled $true
After running the command in Step 1, it should not give you the domain not found error.
Thanks
Get-Accepteddomain is showing my domain. And also I am able to send emails that were configured on my mobile.
Hey Sumesh1980 ,
Okay, Just tested it, it appears you did not run the command :
New-DkimSigningConfig -DomainName <domain> -Enabled $false before updating the CNAME records.
So here are the steps that you need to complete in order to get this working:
1. New-DkimSigningConfig -DomainName <domain> -Enabled $false
2. Get-DkimSigningConfig -Identity <domain> | Format-List Selector1CNAME, Selector2CNAME
Grab the CNAMES and update them in DNS.
Then run the command:
Set-DkimSigningConfig -Identity <domain> -Enabled $true
After running the command in Step 1, it should not give you the domain not found error.
Thanks
- SeunGabApr 27, 2021Copper ContributorGreat. It solve my issue
- Frederik DevreeseDec 31, 2020Copper ContributorThanks! Solved my problem!
- Sumesh1980Aug 22, 2020Copper ContributorTried adding the CNAME as suggested by youSet-DkimSigningConfig -Identity <domain> | Format-List Selector1CNAME, Selector2CNAMECNAME format was same as belowHost name:selector1._domainkeyPoints to address or value: selector1-<domainGUID>._domainkey.<initialDomain>TTL:3600Host name: selector2._domainkeyPoints to address or value: selector2-<domainGUID>._domainkey.<initialDomain>TTL: 3600But I am getting error as belowCNAME record does not exist for this config. Please publish the following two CNAME records first.selector1-DOMAIN-com._domainkey.initialDomain.onmicrosoft.comselector2-DOMAIN-com._domainkey.initialDomain.onmicrosoft.com+ CategoryInfo : InvalidOperation: (:) [Set-DkimSigningConfig], Exception+ FullyQualifiedErrorId : [Server=BMXPR01MB2423,RequestId=7a956dda-cf6e-4c60-b2b3-a50ac94264f0,TimeStamp=8/22/20207:49:41 PM] [FailureCategory=Cmdlet-Exception] 3BEB77E9,Microsoft.Exchange.Management.SystemConfigurationTasks.SetDkimSigningConfig+ PSComputerName : outlook.office365.comDoes it take time to CNAME to propogate it internet ?
- harveer singhAug 22, 2020Steel Contributor
It depends on the DNS you are using and there may be a delay but most of the times it is not actually the DNS rather incorrectly updated records. The common mistake is to end up updating domain name twice like for example :
selector1._domainkey.domain.com.domain.com is updated as the CNAME instead of simply selector1._domainkey.domain.com.
Please follow instructions related to your DNS provider only to update the records. See this case in older post:
https://techcommunity.microsoft.com/t5/exchange/unable-to-activate-dkim/m-p/1540512
Thanks
- Sumesh1980Aug 23, 2020Copper Contributor