Skip to content

What is DKIM?

By Ash, Founder, HosteazePublished 1 min read

DKIM (DomainKeys Identified Mail) adds a hidden digital signature to every email you send. Your email provider signs each message with a private key, and you publish the matching public key in your domain's DNS. Receiving servers use it to confirm the email came from your domain and wasn't changed on the way.

Brass stamp pressing a red wax seal onto a document, the old-fashioned version of a DKIM signature
Credit: WolfBlur via Pixabay

DKIM works like a wax seal on a letter. Your email provider stamps every outgoing message with a signature only it can make, and anyone can check that seal against the public key in your DNS. If someone forges your address, or a message is altered on the way, the seal doesn't match.

How does DKIM work?

What does a DKIM record look like?

The record lives at a name made of a selector, _domainkey, and your domain:

google._domainkey.yourdomain.com   TXT   "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."
PartMeaning
googleThe selector. Each service picks its own (Microsoft 365 uses selector1 and selector2).
v=DKIM1Identifies the record.
k=rsaThe key type.
p=The public key itself, a long string you copy from your provider.

You never write the key yourself. Your provider generates it and shows you the exact name and value to paste. Some, including Microsoft 365, ask for a CNAME record instead of a TXT record so they can rotate the key for you.

Why does DKIM matter more than SPF?

DKIM survives forwarding, and SPF doesn't. When a client forwards your email to their accountant, the forwarding server isn't on your SPF list, but your DKIM signature still checks out. That makes DKIM the more reliable way to pass DMARC. For the steps, see how to set up SPF, DKIM and DMARC.

Frequently asked questions

What is a DKIM selector?

A label that lets one domain have several DKIM keys, one per service. It forms the first part of the record's name, for example google._domainkey.yourdomain.com.

Do I need a DKIM record for each service that sends my email?

Yes, ideally. Each service signs with its own key, so each needs its own DKIM record under a different selector. They don't conflict with each other.

Should I use a 1024-bit or 2048-bit key?

Use 2048-bit if your DNS provider accepts it. Google and Microsoft both support 2048-bit keys.

Sources

  1. RFC 6376, DomainKeys Identified Mail (DKIM) Signatures
  2. Google Workspace, Set up DKIM
  3. Microsoft, How to use DKIM for email in your custom domain
A weathered parking meter whose dial reads Time Expired, the moment a domain stops working if nobody renews it.QuestionWhat happens when a domain expires?When a domain expires, it soon stops working, so your website and email go down, although .uk domains keep running for the first 30 days. You can usually still renew it during a grace period. After that comes a redemption period, when recovery is still possible but slower, and finally the name is released for anyone to register.Email and domains · 18 November 2026Rows of identical letterboxes along a wall, each one getting its own copy of the post, the way a distribution list delivers email.QuestionShared mailbox vs distribution list, which should I use?Use a shared mailbox when a team needs to work from one inbox, such as info@ or support@, so everyone sees the same messages and replies. Use a distribution list when you just want an email copied to several people's own inboxes, such as all-staff@. Shared mailboxes suit customer enquiries. Distribution lists suit announcements.Email and domains · 16 November 2026A brick footpath through a park that splits into two routes, like the choice between Microsoft 365 and Google Workspace.ComparisonMicrosoft 365 vs Google Workspace for small businessBoth give you professional email on your own domain, cloud storage and video calls, and both cap their business plans at 300 users. Pick Microsoft 365 if your team relies on desktop Word, Excel and Outlook. Pick Google Workspace if you work mostly in a browser and collaborate on shared documents. Email quality is a tie.Email and domains · 14 November 2026A wall of numbered wooden post office boxes, where mail waits on site until its owner collects it.QuestionIMAP vs POP3, which should I use?Use IMAP. It keeps your email on the server and syncs it, so your phone, laptop and webmail all show the same inbox, folders and read messages. POP3 downloads messages to one device and usually deletes them from the server, which made sense when storage was scarce. Today it mostly causes lost emails and confusion.Email and domains · 12 November 2026Young seedlings growing in a black plastic tray, a reminder that a new domain's reputation has to be grown slowly.QuestionHow to warm up a new email domainWarming up a new email domain means building a good sending reputation before you send in bulk. Set up SPF, DKIM and DMARC first. Then start with small, steady sends to people who expect your email, increase volume gradually, and watch your spam complaint rate, keeping it well under Google's 0.3% limit.Email and domains · 10 November 2026

Want email on your own domain?

Hosteaze hosting plans let you set up mailboxes on your own domain. See what each plan includes.

See hosting plans