Facebook tracking pixel

MailGenius

How to Check DKIM by Reading Your Record and Your Signature

DKIM is two objects that have to agree. One lives in DNS, published by you. One rides in the header of every message you send, added by your sending platform. Almost every DKIM problem we see is a disagreement between those two, so the fastest way to check DKIM is to learn to read both of them. Take them apart once and the results page stops being a verdict and starts being a diagnosis.

Anatomy of a DKIM record

The selector and the host it lives on

A DKIM record is not published at your domain root. It sits on a subdomain built from a selector, a fixed label, and your domain, in that order. The selector is a short name chosen by whichever platform signs your email, which is what lets one domain carry many DKIM keys at once. Each platform gets its own selector and its own record, and they do not collide. That is the answer to a question we get constantly, and we cover it in more depth in how many DKIM records can I have.

Get the selector wrong and the lookup returns nothing, which receivers read as a missing key rather than a bad one.

The tags inside the TXT record

The record itself is a TXT record made of short tags separated by semicolons.

v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ...

The version tag comes first. The k tag names the key type, normally RSA, with ed25519 defined as an alternative. The p tag carries the public key itself in base64. An empty p tag is meaningful rather than broken, because it is how a key is formally revoked.

Two optional tags matter in practice. The t tag with a value of y marks the domain as being in testing mode, which tells receivers not to treat a failure as significant. Leaving that flag in place after go-live quietly discards the value of signing at all. The h tag restricts which hash algorithms are acceptable.

One publishing detail causes more silent failures than anything else here. A DNS TXT string is limited to 255 characters, so a 2048-bit key has to be split across multiple quoted strings that the resolver joins back together. Some DNS interfaces do that automatically and some do not, and a key that got truncated or double-quoted incorrectly will look present and validate as nothing.

Anatomy of the DKIM-Signature header

The tags that decide whether verification passes

The signature added to your outbound message carries its own tag set. Four of them decide the outcome.

The d tag names the signing domain. The s tag names the selector, which tells the receiver exactly where in DNS to fetch the key. The h tag lists which headers were included in the signature. The bh tag holds a hash of the message body, and the b tag holds the signature itself.

Verification means fetching the key from the location that d and s point at, recomputing the body hash, and confirming the signature over the listed headers. If any part of the signed content changed in transit, the recomputed hash will not match and the check fails even though your DNS record is flawless.

That is why the d tag deserves a second look. Plenty of platforms sign with their own domain by default rather than yours. The signature is valid, DKIM passes, and it still does nothing for you, because the signing domain does not align with the domain in your From field. Alignment is what turns a technical pass into a trust signal, and the relationship between the three records is laid out in our overview of SPF, DKIM, and DMARC.

How to check DKIM on email you actually send

A DNS lookup proves a key exists. It does not prove your email is being signed with it, which selector your platform chose today, or whether the signature survives your own footer injection. The only reliable check runs against a real message.

That is how our tool works. You send one email from the platform you want to verify to the address shown on the page, then check your DKIM record and read the result for that specific message. It reports whether a signature was present, which domain and selector it named, and whether verification succeeded end to end.

Run it once per sending platform. A domain that passes on its marketing tool and fails on its transactional one is the normal state of affairs, not an edge case, and a single check hides it.

Where the per-provider setup differs

The mechanics are identical across providers, but the console you use to enable signing is not, and the selector naming differs. On the Google side we keep separate walkthroughs for DKIM for Gmail and for DKIM in Google Workspace, since the admin path differs between a personal setup and a managed domain.

Microsoft is worth calling out on its own because it publishes CNAME records that point at rotating keys rather than a static TXT record, so the value you see in your own DNS is not the key itself. Follow how to set up DKIM for Office 365 rather than assuming the TXT pattern applies.

Why a DKIM check fails after it used to pass

Four causes account for most regressions.

Key rotation happened without the record following. The platform generated a new key pair and the DNS side was never updated, or was updated on one selector while email went out signed by another.

The message was altered after signing. Mailing lists that append footers, subject line tagging by a gateway, and some security appliances all rewrite content in transit. The body hash no longer matches and the signature fails, even though nothing on your side is misconfigured. This is the failure mode DMARC alignment was designed to tolerate, since SPF may still pass on a path where DKIM cannot.

The record was published in the wrong place. A trailing domain appended by the DNS interface is the classic version, producing a host with your domain in it twice.

The testing flag was never cleared, so receivers have been ignoring your signatures the whole time.

There is a fifth cause worth watching for if you have recently tightened your key strength. Moving from a 1024-bit key to a 2048-bit key doubles the length of the p tag, which is what pushes the record past the single-string DNS limit described earlier. Teams often make that upgrade for good security reasons and unknowingly break signing at the same moment, then spend a week looking at the sending platform rather than at the record.

The practical habit that prevents most of this is simple. Treat any change to a sending platform, a DNS provider, or a key as a trigger to re-verify, rather than waiting for a deliverability report to tell you weeks later. Verification takes a minute and a regression left in place costs a campaign.

If you are weighing how much of this is worth your attention, our take on whether DKIM matters for deliverability makes the case in plain terms. The short version is that DKIM is the only one of the three records that survives forwarding intact, which makes it the leg your DMARC alignment most often ends up resting on.

Check your DKIM record now

Read the record, read the signature, then verify with a message rather than a lookup.

Check your DKIM record free. Send one email from each platform that sends email on your behalf, pull the score, and you will see the signing domain, the selector, and the verification result for the email your recipients are actually receiving.

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today

Run a Free Email Deliverability Test - Send an Email to the Address Below, then Click “See Your Score”:

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today