DKIM Signing Keys: Setup, Selectors and Rotation.
Good DKIM signing keys let a receiving server prove that a message came from your domain and stayed fully unchanged. The sender signs each message with a private key, and the public key sits in DNS for everyone to read. In this guide you first create the pair, choose a DKIM selector, publish the record and plan a calm schedule. Each step is explained in plain words, so a busy founder can follow it without any network or DNS background. Remember that DKIM works well together with SPF and with DMARC, and the three checks support each other in use.
8 min read
Key takeaway
Create a key pair, publish the public key under a clear selector in DNS, and sign every message. Rotate keys on a schedule, and test after each change.
What does a DKIM signature prove about the mail you send?
Indeed, domainKeys Identified Mail, or DKIM, adds a signature to the header of each message. The signature covers chosen headers and the body. A receiving server checks it against a public key that is published in DNS.
In fact, if the check passes, the receiver knows two facts. The message was signed by a holder of the private key, and it was not changed after signing. Therefore DKIM supports trust in the domain that appears in the signature.
Notably, for cold email, working DKIM signing keys are a basic sign of care. Also, mailbox providers publish sender requirements, and authentication is part of them. In fact, a missing signature makes every message look less trustworthy.
Specifically, working DKIM signing keys also help DMARC, which can use either SPF or DKIM. Notably, a DKIM signature that aligns with the From domain counts for DMARC. Therefore DKIM keys that are published well keep the policy useful.
How do you create a key pair for outreach mail?
Indeed, a key pair has a private part and a public part. Specifically, the private key stays on the sending system and must never be shared. Notably, the public key is placed in DNS so any receiver can fetch it.
In fact, most sending platforms and mailbox providers create DKIM signing keys for you. Indeed, you copy the public part from their settings into your DNS. Therefore the first step is often to find the DKIM page in the settings of your provider.
Choose a key length that your provider recommends, and write it down. In fact, longer keys are harder to break, but some old DNS panels cut long values. Specifically, a short test after publishing shows whether the record survived intact. Strong DKIM signing keys need that test.
Keep the DKIM private key out of email, chat and shared folders. Notably, the DKIM public key is safe to share, and the private half is not. Also, the signing keys for email are a pair, and each half has its own job.
What is a DKIM selector, and how should you name it?
A DKIM selector is a short label that points to one key in DNS. Specifically, the record lives under the selector name, then a fixed DKIM label, then your domain. Indeed, because of the selector, a domain can hold many keys at once.
Name each selector so that a person can read it. Indeed, a label that shows the sending system and a number works well. Therefore a teammate can tell at a glance which tool owns which DKIM selector.
Why should each tool get a selector of its own?
One selector for each tool keeps changes safe. In fact, when you retire a tool, you remove its selector, and the others keep working. A shared DKIM selector would tie every tool to a single key. Separate DKIM signing keys for each tool avoid that.
The selector also helps during rotation. Notably, a new key goes under a new selector, and the old one stays until the switch ends. As a result, no message fails during the change. Key rotation of DKIM signing keys stays calm.
Which signing domain should sign the mail that you send?
The signing domain is the domain named in the d tag of the signature. Specifically, it tells the receiver where to look for the public key. Notably, for outreach, sign with a domain that you own and control.
DMARC adds a rule for this choice. The signing domain must align with the visible From domain, or the signature will not count for DMARC. Therefore sign with your own outreach domain, not with the domain of a vendor.
Some platforms sign with their own domain by default.
Switch to your own signing domain in the settings, and publish the record they give you. A signature in your own name builds a reputation that belongs to you. Specifically, dKIM signing keys then serve your own brand.
How do you publish the DKIM record in DNS without errors?
DKIM record publishing means adding a TXT record at the selector name. The value starts with a version tag, then the key type, then the public key. Copy the value exactly, with no spaces added by the panel, for sound DKIM record publishing.
- Add the TXT record at the exact name that your provider shows.
- Paste the full value, and check that no part was cut.
- Wait for DNS to update before you test the signature.
- Send a message to a mailbox you own and read the headers.
Some providers ask for a CNAME record instead of a TXT record. The CNAME points to a key that the provider keeps current. Both forms of DKIM record publishing work, so follow the instructions of your provider.
Publishing the DKIM record is a small task with a strict format.
Adding the DKIM record in the wrong place is the usual error. Therefore read the name and the value twice before you save. DKIM record publishing is quick when you are careful. Good DKIM signing keys are only useful when the DKIM record publishing step is right.
How do you test that DKIM signing keys work after launch?
Send a test message to a mailbox that you own, and open the full headers. Look for the result of the DKIM check, which should read pass. A fail result usually means a wrong selector, a cut value or a record that has not spread yet.
DaletReach runs live DNS probes for SPF, DKIM and DMARC alignment before a campaign, with a selector that you configure. A gap is found before the volume grows. A person then fixes the record and tests again.
Test again after each change to the mail system. A new platform or a new domain can break a signature that worked yesterday. Therefore DKIM signing keys deserve a check at each change. A signing domain check belongs to that routine.
How often should key rotation happen, and how is it done?
Key rotation means replacing a key with a new one on a schedule. A key that lives for years has extra time to leak. Regular key rotation limits the harm if a private key is ever exposed. Key rotation for DKIM signing keys is a basic habit.
Publish the new key first.
Add a new selector with the new public key.
Switch the signer over next.
Set the sending system to sign with the new selector.
Wait for a while and then watch.
Keep the old key in DNS while old messages are still in transit.
Retire the old key last.
Remove the old selector once the switch is complete.
Write the date in a shared calendar. Many teams rotate each year or after a staff change. The right pace for key rotation depends on your provider and your risk.
Name one person who owns the rotation schedule. Then retiring old keys becomes routine, and DKIM signing keys never grow stale.
Which common mistakes break a DKIM setup for a sender?
The most common mistake is a record that was cut or changed by the DNS panel. The second is a signature made with a vendor domain that does not align. The third is a key that was never rotated.
Fix one mistake at a time, and test after each change.
Then read the email deliverability guide for the wider picture. Also see the SPF record setup guide, which covers the first of the three checks.
Finish with a DMARC policy once SPF and DKIM pass. Read the guide to DMARC policy rollout for that step. A signed message proves that your domain sent it. Sound DKIM signing keys, a clear signing domain and a tested selector make a good base.
Frequently Asked Questions on DKIM Keys and Your Own Domain
Is DKIM enough for cold email on its own?
No. DKIM is one check among several. Mailbox providers also look at SPF, DMARC and sender reputation.
Set up all three together, then warm the sender slowly.
What is a DKIM selector used for?
It points to one key in DNS, so a domain can hold many keys at once. Each tool can have its own selector.
It also makes key rotation safe.
How often should key rotation happen?
Many teams rotate each year or after a staff change. The right pace depends on your provider and your risk.
Write the date in a shared calendar.
Why did the DKIM check fail after publishing?
Common causes are a wrong selector, a value cut by the DNS panel or a record that has not spread yet.
Wait, then test again with a message to your own mailbox.
