3. Generate the DKIM Key Pair in Your Email Platform
Next, create or retrieve the DKIM values in your sending platform. The exact screens vary, but most platforms expose
this in mail admin, security, or authentication settings.
At this stage, focus on two details: the DKIM selector and the public key or delegated host value. The selector
becomes part of the DNS hostname, often in a format like:
selector1._domainkey.example.com
That selector must match the value the platform expects during DKIM signing. If it doesn’t, the receiving system won’t
find the right key during lookup.
This is also where organizations may decide whether they need multiple DKIM records. That is valid as long as each
sender uses a different selector and the records are managed cleanly.
4. Publish the DKIM Record in DNS
Now add the DNS record at the domain’s DNS host. In many cases, this is a TXT record containing the public key. In
other cases, the platform may require a CNAME record that delegates DKIM to the provider. Follow the exact format your
platform gives you.
A valid host usually includes the selector plus ._domainkey, and the value contains the DKIM parameters and key
information. Before saving, check carefully for:
- Extra spaces
- Broken strings
- Incorrect quotation marks
- Publishing the record in the wrong DNS zone
- Using the wrong record type
Most providers let you keep the default TTL unless your organization has a specific DNS policy. Also expect some delay
while the record propagates through the domain name system.
5. Enable DKIM Signing in the Sending Platform
Publishing the DNS entry does not complete the process. You must also enable DKIM in the sending platform so it starts
signing outbound email.
Most platforms require you to return to the admin console after DNS is live and turn on signing for that domain.
Without this step, the DKIM record may exist in DNS while real messages remain unsigned.
This is also the point where routing and policy matter. If a relay, secure gateway, or transport rule changes the body
or key headers after signing, the signature may fail. That’s why it is important to align the signer with the real
final sending point.
6. Test and Verify That DKIM Is Working Correctly
After activation, verify both DNS and live message behavior. First, use a DNS lookup or
DKIM record checker
to confirm the selector resolves correctly.
Second, send a test message to an external mailbox and inspect the message headers. Look for a
DKIM-Signature in the email header and an authentication result showing DKIM pass. This distinction matters: a record existing in DNS
does not guarantee that real mail is actually passing DKIM.
7. Troubleshoot Common DKIM Setup Issues
If DKIM is not working, start by checking the most common configuration problems:
- The wrong selector
- Incomplete or malformed key
- Record published in the wrong DNS zone
- Wrong record type
- DNS propagation has not fully completed
Compare the live DNS entry against the exact values generated by the sending platform. If the DNS side is correct,
move on to mail flow. Failures at that stage are often caused by multiple outbound senders using the same domain
without coordinated selectors.
These can also be due to third-party tools sending mail without authorization, forwarding or security appliances
rewriting the message after signing, or routing changes that bypass the intended signer.
These are usually operational issues rather than simple DNS mistakes, which is why setup DKIM should be treated as
part of a broader governance and mail-flow management process.
8. Strengthen DKIM With SPF, DMARC, and Ongoing Governance
DKIM works best as one layer in a broader anti-spoofing strategy. DKIM signs the message,
SPF
validates approved sending sources, and
DMARC
applies policy and reporting when authentication fails. Together, they support stronger sender validation and better
email deliverability.
Ongoing governance matters too. Good hygiene includes:
- Monitoring authentication failures
- Reviewing unauthorized senders
- Updating documentation when senders change
- Rotating keys periodically
- Reviewing policies across multiple domains
As environments grow more complex, DKIM should be managed as an ongoing control, not a one-time task.
Correct DKIM setup supports trust and authentication
To understand how to set up DKIM, focus on the essentials: identify the right signer, gather the correct selector and
key details, publish the DNS entry accurately, enable signing in the platform, and verify that real messages pass.
Done correctly, DKIM helps protect message integrity, strengthen domain trust, and improve overall email
authentication.
For organizations that want easier validation and better visibility into
DKIM, SPF, and DMARC, Mimecast offers tools and services to simplify management.