Chat +1-888-563-5277 [email protected]

Microsoft 365 No DKIM keys saved for this domain: fix with Windows PowerShell

Sometimes a newly added domain in Microsoft EOP will not let you enable DKIM from the web user interface. If you are facing issues when attempting to enable DKIM for a domain in Microsoft 365 Exchange Admin Portal by not having the option to enable DKIM, but the “No DKIM keys saved for this domain” message, as seen in the screenshot below, you are able to fix this with Windows PowerShell. So what can we do in this case? 

Follow the steps:

Microsoft365-DKIM-Issues-No-key-saved-for-this-domain

Here are the steps:

  1. Run Windows Powershell as administrator

Microsoft365-DKIM-Issues-No-key-saved-for-this-domain-PowerShell

2. Command 1

$UserCredential = Get-Credential

Microsoft365-DKIM-Issues-No-key-saved-for-this-domain-How to-fix-with- Windows- PowerShell

Type in your Office365 admin login and password

3. Command 2:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

4. Command 3:

Import-PSSession $Session -DisableNameChecking


5. Command 4:

New-DkimSigningConfig -DomainName “mycompanydomain.com” -Enabled $true

Microsoft365-DKIM-Issues-No-key-saved-for-this-domain-PowerShell

6. Go back to your Exchange Admin portal and make sure your DKIM Status is visible:

Microsoft365-DKIM-Issues-No-key-saved-for-this-domain

Notes:
– DKIM Status is still Disabled. Check our guide on how to implement and enable DKIM on Microsoft 365.

7. Last Command:

Remove-PSSession $Session

Also, check our ultimate guide about DKIM  or find more in RFC 6376

That’s it! We hope this article was helpful and informative. 

Business email compromise (BEC) - 2021 Cybersecurity Problem

Security analysis and predictions for 2021 show that there will be dramatic increases in the number of phishing attacks against cloud-based email. Risk management and security leaders must ensure their solutions stay up-to-date for this changing landscape to protect against cyber attacks. EasyDMARC stays...

Read More

How to explain DKIM in plain English?

DKIM allows the recipient server to make sure (or to verify) that the received message was sent by the genuine sender of the associated domain and that content of the original message was not altered on its way. So let's figure out how to...

Read More

No SPF Record Found: how to fix SPF record issues?

What is an SPF Record? This is a special DNS TXT Record. It lists the IP addresses from which you can send emails on behalf of the domain. How to set up an SPF Record and what happens if there is “No SPF Record...

Read More