A DKIM record is a public DNS entry holding the key mail servers use to verify an email’s signature. Publishing one stops spoofers from forging your domain.
Many WordPress owners paste a record and stop checking. Emails still drift into Gmail spam when shared signing domains, stray spaces in 2048-bit keys, or clashing From headers break trust.
Real sender authentication shows up in delivered headers, so check them after every DNS change.
What is a DKIM record and how does email signing work?
A DKIM record is a DNS entry under _domainkey that shares your domain’s public cryptographic key under RFC 6376. Receiving mail servers use that key to verify each message’s digital signature, proving your domain sent the email and nobody altered it in transit.
How asymmetric keys and the DKIM-Signature header interact
Asymmetric cryptography pairs 2 linked keys, usually 1024-bit or 2048-bit RSA. Your server guards the private key. DNS shares the public key.
Picture a wax seal. Your stamp stays locked on your desk, while every post office keeps the pattern.
Before sending, your sender adds DKIM-Signature with 4 tags:
-
d=(domain): names the signing domain. -
s=(selector): identifies the key under_domainkey. -
bh=(body hash): digests the body to catch edits. -
b=(signature): holds the encrypted signature.
On arrival, Gmail looks up the key at selector._domainkey.domain, taken from s= and d=. If the public key decrypts b=, DKIM passes.
Where DKIM sits in your domain’s email DNS stack
DKIM works alongside 4 other DNS records covered in our email deliverability guide.
| Purpose | DNS type | Hostname | Role |
|---|---|---|---|
| Routing | MX | yourdomain.com | Routes inbox mail |
| Server list | TXT | yourdomain.com | Lists sending IPs (SPF) |
| Signature key | TXT or CNAME | selector._domainkey.yourdomain.com | Publishes public key (DKIM) |
| Policy | TXT | _dmarc.yourdomain.com | Enforces alignment (DMARC) |
| Brand logo | TXT | default._bimi.yourdomain.com | Shows logo (BIMI) |
What does DKIM record syntax look like?
A standard DKIM DNS record lives at selector._domainkey.yourdomain.com and holds semicolon-separated tag=value pairs inside a TXT record. Every valid record requires a p= public key tag, typically opens with v=DKIM1, and uses selectors so separate tools never overwrite each other.
Selector hostname format (selector._domainkey.domain)
Most sites send through multiple tools like Google Workspace and an SMTP host. Selectors isolate each sender before _domainkey, so receivers fetch the exact key via s= and d=.
Required and optional DKIM tags (including empty p= revocation)
RFC 6376 defines 1 required tag (p=) and 6 optional tags.
| Tag | Status | Purpose |
|---|---|---|
p= | Required | Base64 key; v=DKIM1; p= revokes selector |
v= | Recommended | Version; must come first as DKIM1 |
k= | Optional | Key type (rsa default; ed25519 per RFC 8463) |
h= | Optional | Allowed hashes like sha256 |
s= | Optional | Service scope (* or email) |
t= | Optional | Flags (y test or s strict match) |
n= | Optional | Notes ignored by verifiers |
Use an empty p= tag to retire old keys; v=DKIM1; p= tells verifiers the key is revoked, so signatures from that selector fail.
1024-bit vs. 2048-bit keys and 255-character DNS string limits
Personal Gmail accepts 1024-bit RSA as its minimum, while Gmail and RFC 8301 recommend 2048-bit RSA keys. Because DNS TXT strings cap at 255 characters, 2048-bit keys split across quoted chunks.
RFC 6376 Appendix C shows this syntax (brisbane._domainkey.example.org.):
brisbane._domainkey.example.org. IN TXT (
"v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQ"
"KBgQDwIRP/UC3SBsEmGqZ9ZJW3/DkMoGeLnQg1fWn7/zYt"
"IxN2SnFCjxOCKG9v3b4jYfcTNh5ijSsq631uBItLa7od+v"
"/RtdC2UzJ1lWT947qR+Rcac2gbto/NMqJ0fzfVjH4OuKhi"
"tdY9tf6mcwGjaNBcWToIMmPSPDdQPNUYckcQ2QIDAQAB"
)
Never paste that sample into live DNS. Generate real keys in your sender with zero spaces between chunks.
Should you publish a TXT record or a CNAME record for DKIM?
Every DKIM public key lives inside a TXT record, even when your provider supplies a CNAME record. A CNAME stores no key tags at all; it is a DNS alias pointing your selector subdomain to a TXT record hosted on your provider’s servers.
Direct TXT records for manual or self-hosted signing
Self-hosted servers, Google Workspace, and manual SMTP hosts issue raw v=DKIM1; k=rsa; p=... strings. You skip extra DNS hops, though you handle 255-character splits and manual rotation yourself.
CNAME delegation for hosted email services
Hosted senders such as Amazon SES and SendGrid issue 2 or 3 CNAME records under RFC 1034. Pick CNAME delegation when offered. Your provider rotates 2048-bit keys automatically if DNS keeps CNAMEs unproxied.
| Factor | Direct TXT record | CNAME delegation |
|---|---|---|
| Key host | Your zone | Provider zone |
| Rotation | Manual edit | Automatic |
| 255-char splits | Manual chunking | Provider managed |
How do DKIM, SPF, and DMARC work together (and what breaks on WordPress)?
SPF checks the sending server IP, DKIM verifies message integrity across forwards, and DMARC requires an authenticated domain to match your visible From address. On WordPress sites, competing plugin From headers often break DMARC alignment even when DKIM technically passes.

Why DKIM survives forwarding and why shared ESP d= fails DMARC
Forwarding breaks SPF because the forwarding server uses its own IP. Because DKIM-Signature travels inside the email, DKIM survives forwarding unless content changes.
Bulk senders sending 5,000+ emails daily to Gmail must pass SPF, DKIM, and DMARC. Microsoft enforces the same rule on Outlook, Hotmail, and Live.
Shared signing domains still break alignment. Mail signed with your provider’s shared d= domain passes DKIM but fails DMARC, so enable custom DKIM and use a custom-domain business email address, never @gmail.com.
WordPress sending paths, From conflicts, and Icegram Mailer vs. Express
Default WordPress sends via PHP wp_mail(), often from shared hosting IPs with no DKIM signature. At Icegram, campaign management stays separate from delivery. Icegram Express runs lists, while Icegram Mailer or an SMTP/API tool delivers mail.
Icegram Express Free ($0) and Max ($99/year): Free supports WP Mail and Pepipost only. Max (1 site) adds Amazon SES, Gmail API, and custom SMTP (Mailgun, SendGrid, Postmark).
Amazon SES on Express Max: Express connects via the SES API and reads bounces; domain verification and DKIM setup live in AWS (configuring Amazon SES in Icegram Express).
Icegram Mailer: Mailer sends over HTTPS port 443 without SMTP setup and includes 200 free emails/month with a small footer. Paid plans start at $10/month for 5,000 emails and fit up to roughly 500,000/month. Mailer routes via @igeml.com without DNS edits (configuring Icegram Mailer; setting up Icegram Mailer).
Express, WooCommerce, and SMTP plugins can each set From. Icegram Mailer overrides Express and WooCommerce From settings with your verified sender while keeping Reply-To.
In support, sites pass DNS tests yet fail DMARC when one plugin sends off-domain. Keep every plugin on 1 verified domain (Gmail sender requirements in Icegram Express).
Adding a starter DMARC record without breaking contact forms
Once DKIM and SPF pass, add _dmarc.yourdomain.com:
v=DMARC1; p=none;
Setting p=none enables monitoring without blocking mail. Add rua=mailto:dmarc@yourdomain.com before tightening to p=quarantine or p=reject.
Audit every sender before p=reject. Forms putting the visitor’s email in From fail under p=reject. Send from your domain and put visitors in Reply-To after checking WooCommerce, helpdesks, invoicing, and CRMs.
How do you check and verify a DKIM record?
Checking a DKIM record takes 2 steps: query DNS for a valid public key, then inspect raw headers in a delivered test email for dkim=pass and an aligned d= domain. DNS lookups alone prove syntax exists, never live server signing.
Looking up DNS with web checkers and dig
Test DNS with MXToolbox, DNSChecker, or mail-tester. On macOS or Linux, run dig:
dig TXT selector._domainkey.yourdomain.com
Confirm 1 ANSWER SECTION record returns with zero spaces in p=. Remember a 10 out of 10 score on mail-tester tests SpamAssassin, blocklists, and syntax, not Gmail’s private signals.
Inspecting Gmail Show original headers
Run Express’s spam check for a quick first read, then confirm the result on a real message.
Verify live signing in Gmail:
-
Send a test email to a personal
@gmail.cominbox. -
Open it, click the three-dot menu beside Reply, and pick Show original.
-
Check the DKIM row for
PASSwith your domain. -
Confirm
d=matches your visibleFromdomain.
That 30-second “Show original” check shows exactly which domain signed and whether it aligns.

Why do DKIM records fail and how do you fix them?
Most DKIM failures come from 4 DNS errors: spaces inside split 2048-bit strings, duplicate TXT records on 1 selector, cached TTL delays, or swapping a private key before publishing the new public key. When DKIM passes and mail hits spam, check reputation next.
Syntax splits, duplicate selectors, TTL delays, and safe key rotation
Match each issue to its fix, or read WordPress email delivery mistakes for wider checks:
-
Broken 2048-bit splits: spaces between quoted chunks corrupt keys; join chunks cleanly or use CNAME delegation.
-
Duplicate selectors: RFC 6376 leaves lookups undefined with 2 TXT records; keep 1 record per
selector._domainkeyhost. -
DNS TTL delays: cached keys persist up to 24-48 hours; lower TTL first and wait.
-
Unsafe rotation: publish
s2besides1, switch signing tos2, wait, then revokes1withv=DKIM1; p=.
Why emails still land in spam when DKIM passes
Authentication clears the first gate, not spam filters. In support, verified mail hits spam from blocklisted shared IPs, cold bulk domains, host PHP fallbacks, or image-heavy copy.
DNS lookups alone prove syntax exists, never live server signing.
What else do people ask about DKIM records?
First-time setups raise 4 common questions about email security, Gmail’s 5,000-email bulk sender rule, retiring old keys, and starter DMARC setup. The short answers below draw on RFC 6376 and Google’s published sender rules, so you can check each one yourself.
What is DKIM in email security?
DKIM (DomainKeys Identified Mail) is an email authentication standard that attaches a cryptographic signature to outgoing headers. Receiving servers verify that signature against a public DNS key, proving your domain sent the message and nobody altered its body or headers in transit.
Does Gmail use SPF, DKIM, and DMARC?
Yes. Personal Gmail checks SPF and DKIM on incoming messages to verify sender identity. Google also requires bulk senders delivering 5,000 or more emails a day to Gmail to pass SPF, DKIM, and DMARC together with aligned sending domains every time.
How do you retire an old DKIM key safely?
Retiring a DKIM key safely means overlapping two selectors. Publish the new public key under a second selector such as s2, switch your sender to sign with s2, and wait out the DNS TTL. Then change the old selector’s value to v=DKIM1; p= so verifiers treat that key as revoked.
How do I create a starter DMARC record after DKIM?
Open your domain’s DNS panel and publish 1 TXT record at _dmarc.yourdomain.com with the value v=DMARC1; p=none;. Keep monitoring mode active while you audit contact forms, WooCommerce, and connected sending tools before enforcing p=quarantine or p=reject rules across your domain.
Where should you start?
Confirm every WordPress plugin sends from your own domain, publish your active sender’s CNAME or 2048-bit TXT DKIM record, and verify dkim=pass in Gmail Show original before adding DMARC monitoring. Delivered mail headers catch alignment errors that plugin scores miss.
-
Set Express, WooCommerce, and contact forms to send from your domain (putting visitor emails in
Reply-To). -
Publish your sender’s CNAME or 2048-bit TXT record and confirm
dkim=passwith matchingd=in Gmail Show original. -
Publish
_dmarc.yourdomain.comTXTv=DMARC1; p=none;and audit every sender before enforcing.
If you’d rather send WordPress and WooCommerce email without maintaining DNS DKIM records or SMTP ports, start with Icegram Mailer for free on up to 200 emails a month.
