Forum
Please I need help I want to set my dkim record on office 360 but is saying no dkim record found zizy119@gmail.com
Sometimes a newly added domain in Microsoft Office365 will not let you enable DKIM from the web user interface.
You can Enable Dkim Keys, by manually creating it.
On Your Windows PC, Open Powershell as administrator
Then run the following commands one by one:
Command 1:
$UserCredential = Get-Credential
Enter your outlook account credentials
Command 2:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Command 3:
Import-PSSession $Session -DisableNameChecking
Wait for the process to finish, then run the following:
New-DkimSigningConfig -DomainName “mydomain.tld” -Enabled $true
*Replace mydomain.tld with your domain
This command will succeed in generating the DKIM keys
Last Command:
Remove-PSSession $Session
Now go to your office365 admin center, and check dkim settings.
Don’t forget to copy DNS records as explained in the video tutorial.
please i got this error message while running command 2
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed