DKIM signing in Office 365

By · · 2 mins read · Tech

This week I came across a post from Terry Zink ( on how to activate DKIM signing for outbound email messages in Office 365.

I’ve been waiting for this feature for quite some time and was keen to get it going for both my personal email (on and my business email (on

To get started the first thing I needed to do was create two CNAMEs in the DNS zone for This provides two DKIM key selectors - which allows for automatic key rotations.

The records that I needed to create were: CNAME CNAME

The “shaun-net” is the domain GUID and can be retrieved from the MX record for your domain. Mine for example looks like:

I use AWS Route53 to host my DNS, so adding the records was as follows:

The second step was to enable DKIM signing on my domain. This isn’t yet available in the Office365 console but can be done using Powershell with Exchange Online.

The command I executed was:

New-DkimSigningConfig DomainName Enabled $true

The output was as follows:

Domain    Enabled
------    ------- True

Once this was done I went to the Exchange Admin Center under Protection → DKIM. Here you can see that it has been enabled successfully.

With this in place I sent a message to my Gmail account and checked the headers for successful DKIM validation. Here it is!

       spf=pass ( domain of [email protected] designates as permitted sender) [email protected];
       dkim=pass [email protected]
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shaun.example;
 s=selector1; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version;

DKIM Outbound is still showing as rolling out on the Office 365 Roadmap so if this doesn’t work for you, your account may not have been activated to use this feature yet. Nonetheless it’s a very welcome feature and I’m pleased to see it was relatively easy to setup.