How does DKIM work?
DKIM works by having the sending service sign each outgoing email with a private key, which the receiving server checks against the public key published in DNS.
The process involves five steps:
-
The sending service creates a pair of keys: one private and one public
-
Your domain publishes the public key at a hostname such as selector._domainkey.yourdomain.com
-
The sending service uses the private key to add a DKIM-Signature header to each outgoing email
-
The receiving server reads the selector, retrieves the public key from DNS, and recalculates the email’s fingerprint (hash) to check the signature
-
A matching signature returns dkim=pass, while a mismatch returns dkim=fail
DKIM doesn’t prove that the visible From address is legitimate; DMARC checks whether the From domain aligns with the DKIM signing domain.
What does a DKIM record look like?
A DKIM record includes its name, type, and value. Here’s an example:
- Name: selector._domainkey.yourdomain.com
- Type: TXT
- Value: v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFA… (truncated)
The value contains three main tags:
| Tag | What it means |
|---|---|
| v= | DKIM record version (DKIM1) |
| k= | Type of cryptographic key |
| p= | Public key used to verify the DKIM signature |
What is a DKIM selector?
A DKIM selector is the label that tells a receiving server which public key to fetch. Selectors exist because one domain can carry several keys at once. Several keys let you send emails through more than one service, or rotate a key without downtime.
The selector appears in two places: after s= in the email’s DKIM-Signature header and before ._domainkey in the DNS record name.
Why some providers give you a CNAME instead of a TXT record
Some email service providers give you CNAME records instead of TXT records for DKIM. These records point to public keys hosted by the provider rather than storing the keys in your DNS. Omnisend doesn’t use CNAME records for DKIM. It gives you a DKIM key and selector for each sender domain, and you publish them at your DNS host as a TXT record. Omnisend doesn’t rotate the key on your domain. It rotates only its own DKIM key, which it uses to add a second signature to every email sent from the platform.
Why does DKIM matter for online stores?
DKIM matters because Gmail and Yahoo require email authentication from senders. Both introduced stricter sender rules in February 2024.
Google requires all senders to use Sender Policy Framework (SPF) or DKIM. Senders who send 5,000 or more messages daily to Gmail accounts must use SPF, DKIM, and DMARC together, as explained in its Gmail sender guidelines. Yahoo requires all senders to implement SPF or DKIM, while bulk senders must use SPF, DKIM, and DMARC, according to its sender requirements. Google and Yahoo also require DKIM keys of at least 1024 bits. Microsoft requires SPF, DKIM, and DMARC from domains that send more than 5,000 emails a day to Outlook.com, Hotmail, and Live addresses, as its high-volume sender requirements explain. Learn more through our guide to Gmail and Yahoo sender requirements.
Without DKIM, your store’s emails are more likely to land in spam. If your email service provider (ESP) signs emails with its shared domain, subscribers may see the provider’s domain in the sending details. This can cause DKIM alignment to fail because the signing domain differs from your visible “From” domain.
For example, a store sends from shop.com, but its ESP signs with esp.example. DKIM passes but doesn’t align with shop.com, so DMARC passes only if SPF passes and aligns.
DKIM also has an advantage over SPF when emails are forwarded. Forwarding can cause SPF to fail because the sending server changes. But the DKIM signature usually stays with the email. This helps protect your sender reputation.
Oftentimes DKIM gets skipped because it sounds like a job for a developer, while in reality it's a copy and paste into your DNS, and it takes about 3 minutes.

DKIM vs SPF vs DMARC: What’s the difference?
DKIM checks an email’s digital signature and signed content. SPF checks whether a server can send emails for your domain, and DMARC checks whether SPF or DKIM passes and matches your visible “From” domain. Here’s the difference:
| Protocol | What it checks | Where it lives | What it can’t do |
|---|---|---|---|
| DKIM | Whether the email has a valid signature | DNS (public key) and the sending service (private key) | Verify the visible From address |
| SPF | Whether the sending server has permission to send emails for your domain | A TXT record in your DNS settings | Verify the visible From address |
| DMARC | Whether SPF or DKIM passes and aligns with the From domain | A TXT record in your DNS settings | Authenticate emails without SPF or DKIM passing and aligning |
For more details, read our guide that teaches store owners how to set up DMARC.
How do you set up DKIM?
DKIM setup connects your sending platform to your store’s domain through DNS records. Follow these four steps to get it working:
- Get the DKIM records from your sending platform
- Add each record at your DNS host
- Wait for DNS changes to propagate
- Send a test email, then check the header for dkim=pass
Follow our guide to learn how to set up SPF, DKIM, and DMARC in Omnisend for your store.
Common DKIM mistakes
Small DKIM setup errors can stop email authentication from working. Watch out for these common mistakes:
- DKIM record at the wrong hostname: Receiving servers can’t find the public key, so DKIM fails. Check the hostname against your provider’s instructions.
- DKIM key pasted with breaks/stray characters: Missing characters or extra spaces can cause DKIM to fail. Copy the full key exactly as provided.
- Using the ESP’s default DKIM signature: DKIM may pass, but DMARC alignment can fail. Configure DKIM so its signing domain aligns with your visible From domain.
- Not retiring old selectors after switching platforms: Old selectors can leave unused DKIM records in your DNS. Remove records your previous provider no longer needs.
How Omnisend handles DKIM
DKIM is part of Omnisend’s domain authentication process. Users can find this under Store settings → Domains. The default DKIM key is 1024 bits, and a 2048-bit key is available on request. Until you authenticate your own domain, Omnisend signs your emails with its shared domain, and subscribers may see “via soundest.email” next to your sender name. Omnisend states that domain authentication is included on every plan. For setup instructions, see Omnisend’s email authentication guide.
FAQ
Can a domain have more than one DKIM record?
Yes. A domain can have multiple DKIM records, each linked to a different selector. This lets several email services sign messages using the same domain.
Can DMARC pass if DKIM fails?
Yes. DMARC can still pass if SPF passes and aligns with the visible “From” domain.
Why is my message blocked due to DKIM failure?
The receiving server can reject or quarantine a message if it can’t verify its DKIM signature. This can happen when the public key is missing, incorrect, or doesn’t match the signature.
How do I check my DKIM record?
Check the email header for dkim=pass or dkim=fail, or use a DKIM checker to look up your DNS record.
OFFER
