Skip to main content
Enter TitanOS

What is DKIM

What Is a DKIM Record? A Plain Guide for Small Business Owners

By , Brisbane. Published 29 November 2026. Last reviewed 29 November 2026. How we write and check. About 9 minute read. General information, not legal advice.

A DKIM record is a small piece of public information in your domain's DNS. It holds a public key that lets anyone who receives your email check a digital signature your mail system adds to each message. If the signature checks out, the receiver knows the message was signed by a system that holds your private key, and that the signed parts were not changed on the way. DKIM stands for DomainKeys Identified Mail.

You do not need to understand cryptography to use it. You do need to know what the record is for, where it lives, what it looks like when it is healthy, and why a missing or broken one quietly weakens your email. This guide covers each of those, with a worked example, setup steps for the common mail platforms and the mistakes that cause most failures.

How DKIM works, in plain language

DKIM is defined in RFC 6376. The idea is a wax seal on a letter, with the twist that anyone can check the seal but only you can make it.

  1. Your mail system holds a private key. Nobody else has it, and it never appears in DNS.
  2. When you send a message, your system takes selected headers and a fingerprint (hash) of the body, and signs them with the private key. The result is added as a DKIM-Signature header on the message.
  3. You publish the matching public key in DNS, at a name made from a selector and your domain.
  4. The receiving server reads the DKIM-Signature header, sees which domain and selector it names, fetches the public key from DNS and checks the signature.
  5. If it matches, the message passes DKIM. If someone altered the signed content in transit, or the signature was made with a different key, it fails.

Two things DKIM does not do are worth stating plainly. It does not encrypt the message, so it is not a privacy tool. And a pass does not say the message is wanted or safe, only that it was signed by a holder of the key for the named domain. A scammer with their own domain can sign their own mail correctly. What matters for you is that nobody can sign as your domain without your private key.

What a DKIM record looks like

A DKIM record sits at a name with the pattern selector._domainkey.yourdomain. The selector is a label your mail provider chooses, such as selector1, google or s1. It exists so you can have more than one key at a time, which makes key rotation possible.

Some providers, including Microsoft 365, ask you to publish a CNAME record instead of the key itself. A CNAME points your selector name at a record the provider controls. The advantage is that the provider can rotate keys without asking you to change DNS.

The signature header on a real message looks like this in outline: DKIM-Signature: v=1; a=rsa-sha256; d=yourbusiness.com.au; s=google; h=from:to:subject:date; bh=...; b=... The d= tag is the signing domain and s= is the selector. Together they tell the receiver exactly where to look: s._domainkey.d.

Why a small business should care

There are three practical reasons.

  • It is half of what DMARC needs. DMARC passes when SPF or DKIM passes and aligns with your From address. DKIM is the more reliable of the two, because SPF often breaks when mail is forwarded, and a DKIM signature usually survives forwarding if the message is not modified.
  • It helps your mail get delivered. Google's sender guidelines expect authentication, and its rules for large senders require SPF, DKIM and DMARC. Even for a small sender, unsigned mail is easier for filters to distrust.
  • It makes forged invoices harder. With DKIM and a DMARC policy of quarantine or reject, a forged message claiming your domain fails and is junked or refused. That matters if customers pay invoices by bank transfer. See invoice fraud email scams.

How to set up DKIM on common platforms

The steps differ by platform, but the shape is always the same: generate or find the key in your mail provider's admin screen, publish it in DNS, then switch signing on.

Microsoft 365

Microsoft 365 uses two CNAME records, selector1._domainkey and selector2._domainkey, which point to values the Defender portal shows you. You publish both, then enable signing for the domain in the portal. Microsoft signs automatically from your onmicrosoft.com address, but does not sign custom-domain mail until you do this. The full steps are in our DMARC for Microsoft 365 guide.

Google Workspace

In the Google Admin console, Gmail settings include an Authenticate email section. You generate a new record for your domain, copy the host name and the long TXT value to your DNS host, then press Start authentication. Google's default selector is google. If your DNS host limits the length of a text value, the key may need to be split into more than one quoted string, which most hosts handle for you.

Other senders on your behalf

Accounting packages, newsletter tools, job management apps and online booking systems often send email with your address in the From line. Each has its own domain authentication page. Complete it for your domain, otherwise the service signs with its own domain. The mail then passes DKIM for the vendor, not for you, and does not help your DMARC result.

Website hosts and cPanel

Many shared hosts include DKIM generation in the control panel under an email authentication or deliverability section. If your business email is hosted with your website, check there first.

Key size, rotation and revocation

A DKIM key is an RSA key, and the size matters. RFC 8301 sets 1024 bits as the minimum acceptable, and many providers now default to or recommend 2048 bits. A 2048-bit public key is too long for a single text string in DNS, which limits each string to 255 characters, so it is published as two or more quoted strings that receivers join together. Good DNS hosts do this for you. If you paste a long key and it gets cut off, the record will fail.

Rotation means replacing the key from time to time. If a private key were ever exposed, anyone who held it could sign mail as you until it was replaced. Having two selectors makes rotation safe: publish the new key under a new selector, switch signing to it, wait until old mail has been delivered, then remove or revoke the old one. Microsoft 365 handles this with its two selectors. For other platforms, a yearly review is a sensible habit, though your provider's guidance comes first.

To retire a key, delete the record, or publish it with an empty p= value, which tells receivers the key has been revoked.

How to check a DKIM record

There are two kinds of check, and you want both.

  1. Check the record exists. Our email spoofing check and the free security scan look up your public DNS. A DKIM record can only be fetched if you know the selector, which is why tools check common selectors, and why a tool reporting not found does not always mean not set up. Confirm the selector in a real message header.
  2. Check a real message. Send an email from your account to a free webmail address. Open the original message or full headers and look for Authentication-Results. You want dkim=pass with header.d= showing your own domain. If you see dkim=pass for another domain, such as a vendor's, the message was signed by the vendor, not for you.

A pass on the first check with a fail on the second is a useful clue. It usually means the record is fine and the platform is not signing yet, or a different system is sending the message. Work through the table in the next section before you change a working record, because republishing a good key by hand can introduce the very error you were chasing.

If you prefer the command line, a TXT lookup for selector._domainkey.yourdomain returns the key. On Windows, nslookup -type=TXT selector._domainkey.yourdomain works. On macOS and Linux, dig TXT selector._domainkey.yourdomain does the same.

The mistakes behind most DKIM failures

Common DKIM problems
ProblemWhat it looks likeFix
Signing never switched onRecord published but mail shows no DKIM-SignatureEnable signing in the mail platform's admin screen
Wrong hostnameRecord not found. Often the domain is doubled, such as selector1._domainkey.yourbusiness.com.au.yourbusiness.com.auEnter only the part before the domain if your DNS host adds it for you
Key cut offVerification fails with a key syntax errorRepublish the full key, split into strings if the host requires it
Third-party sender signs as itselfdkim=pass but for the vendor's domain, so DMARC fails alignmentSet up domain authentication at that service
Message altered after signingdkim=fail on some messages onlyMailing lists and some filters add footers. Rely on SPF or an approved forwarder.
Old key left in placeFormer provider's selector still publishedRemove selectors you no longer use after confirming nothing signs with them

Once DKIM is passing and aligned for each sender, you are ready to move DMARC from monitoring to enforcement. The DMARC and SPF setup guide shows the safe order, and how to stop email spoofing of your domain explains what to expect at each step.

DKIM compared with SPF and DMARC

The three records side by side
SPFDKIMDMARC
What it checksThe sending server's addressA signature over the messageThat SPF or DKIM passed and matches the From domain
Where it is publishedTXT on the domainTXT or CNAME at selector._domainkeyTXT at _dmarc
Survives forwardingOften notUsually, if the message is unchangedPasses if either underlying check does
Tells receivers what to do on failureOnly looselyNoYes: none, quarantine or reject
SpecificationRFC 7208RFC 6376RFC 7489

If you want more on the first of these, read what an SPF record is.

Questions people ask

What is a DKIM record in simple terms?

It is a public key published in your DNS that lets receiving mail servers check the digital signature on your outgoing email. A valid signature shows the message came from a system holding your private key and was not altered in transit.

What is a DKIM selector?

A selector is a label that identifies which key to use. It forms part of the DNS name where the key is published, in the pattern selector._domainkey.yourdomain. Having selectors lets a domain hold several keys at once, for different services or for rotation.

How do I find my DKIM selector?

Send an email to yourself at another provider and view the original message. In the DKIM-Signature header, the s= value is the selector and d= is the signing domain. Your mail provider's admin screen also shows the selector it uses.

Is DKIM required?

No law requires it, but it is part of a working email authentication setup. DMARC needs SPF or DKIM to pass with alignment, and Google's sender guidelines ask for authentication. For a business that sends invoices by email, it is worth doing.

Does DKIM stop spoofing on its own?

No. DKIM proves signed mail is genuine, but nothing in DKIM tells a receiver to reject unsigned mail claiming your domain. You need a DMARC policy of quarantine or reject for that.

Is a 1024-bit DKIM key still acceptable?

RFC 8301 sets 1024 bits as the minimum, so shorter keys are not valid. Many providers recommend 2048 bits, so choose that where your DNS host can publish it.

Why does my DKIM check say not found when email works?

DKIM records live at a selector name, and a tool has to know or guess the selector. If your provider uses an unusual selector, a scan may not find it. Look at a real message header to confirm the selector, then look it up directly.

Go deeper

More guides

Look up what your domain publishes for SPF, DKIM and DMARC. The check reads public DNS only, touches nothing of yours and explains each result plainly.

Check your records

Related reading

Sources

  1. RFC 6376: DomainKeys Identified Mail (DKIM) Signatures. The DKIM specification, including selectors and the DKIM-Signature header
  2. RFC 8301: Cryptographic Algorithm and Key Usage Update to DKIM. Key size minimum of 1024 bits
  3. RFC 7489: DMARC. How DMARC uses DKIM alignment
  4. RFC 7208: SPF. The companion record
  5. Microsoft Learn: How to use DKIM for email in your custom domain. selector1 and selector2 CNAME records and enabling signing
  6. Google: Email sender guidelines. Authentication expectations for senders
Book a free call