Part of Datorkirurgen AB – IT experts across Sweden

DKIM signing adds a digital signature to every email your domain sends. The receiver then uses it to check that the message really comes from you and that nobody changed it on the way. Business IT Support enables and maintains DKIM in Microsoft 365, Google Workspace and other mail services.

What DKIM signing is and why you need it

In short, DKIM stands for DomainKeys Identified Mail. First of all, the sending server signs selected headers and the body of each message with a private key. The receiving server then fetches the public key from DNS and checks the signature. If the content changed, or if someone else sent the message, the check fails.

Unlike SPF, DKIM usually survives forwarding, because the signature travels with the message. Therefore, DKIM forms the most reliable base for DMARC. In addition, Google and Microsoft now require DKIM from companies that send larger volumes of email.

Email security with DKIM signing, SPF and DMARC
Email security with DMARC, SPF, DKIM and BIMI. This is how Business IT Support protects company domains against forged email.

Selectors, keys and DNS records for DKIM signing

In practice, each DKIM key has a name, the selector, which appears in the signature and in DNS. For example, Microsoft 365 uses two CNAME records called selector1._domainkey and selector2._domainkey that point to keys Microsoft manages. Google Workspace instead gives you a TXT record with the public key, usually under the selector google.

Generally, we recommend 2048-bit keys wherever the service supports them. Moreover, every service that sends email for your domain, such as a newsletter tool, should sign with its own selector. As a result, each sender has its own key, and you can remove one without affecting the others.

Check of SPF, DKIM and DMARC results per domain
Check of DMARC, SPF and DKIM results per domain. We compare the results for each domain before and after the change.

Common DKIM mistakes we correct

In our experience, the most common mistake is that DKIM signing was never switched on. In Microsoft 365, for instance, a custom domain needs both the CNAME records and the activation in Defender. Another frequent problem is a key that someone pasted into DNS with line breaks or missing characters.

Furthermore, services that sign with their own domain instead of yours do not help DMARC alignment. We therefore configure custom DKIM in newsletter and CRM tools. Finally, we check that old selectors from former providers disappear from DNS.

Connection to Exchange Online with PowerShell to check DKIM signing
Connection to Exchange Online with PowerShell. For example, here we check the DKIM settings of the domains.

Key rotation and ongoing maintenance

Similarly, keys should change regularly, just like passwords. Microsoft 365 makes this simple, because it alternates between two selectors, and we start the rotation with one command. In Google Workspace, we generate a new key, publish it and then activate it.

We also follow the DMARC reports after every change. Consequently, we see at once if a sender stops signing correctly. In this way, DKIM keeps working when you add new systems or change providers.

Installation of the Exchange Online module for DKIM signing administration
Installation of the Exchange Online module in PowerShell. Correct handling of DKIM signing protects your domain and your reputation.
PowerShell execution policy for Exchange Online administration
Execution policy for PowerShell during Exchange Online administration. We prepare PowerShell before we change the mail settings.

Contact Datorkirurgen AB about DKIM signing

Business IT Support is part of Datorkirurgen AB, which has more than 30 years of experience in IT for businesses. We enable and maintain DKIM signing for companies remotely anywhere, and on site in Stockholm and across Sweden.

In addition, our prices start at €250 per hour excluding VAT, or as agreed, and we guarantee to solve the problem. Microsoft describes the setup in its DKIM documentation. Contact us, and we will check the signing for all your domains.

Frequently asked questions about DKIM signing

Questions about DKIM signing

DKIM signing in Microsoft 365 and Google Workspace

More about protection and delivery

Website developed by Datorkirurgen AB · Privacy policy