Skip to content
deliverly.ai

Email authentication

DKIM Record Generator

Generate a DKIM key pair in your browser. The private key never leaves your device.

Already published? Open the DKIM checker

1

How is your mail sent?

Most people should not generate a key here: the mail service does it.

2

Key details

Use a new selector for every rotation. Year and month make it easy to tell keys apart.

Key type

Generated in your browser. The private key never leaves this device.

Do you need to generate a key at all?

Usually not. Google Workspace, Microsoft 365 and nearly every sending platform generate the key pair themselves and give you a DNS record to publish. Generate your own key only if you run your own mail server (Postfix with OpenDKIM, rspamd, Exim and similar).

How this generator works

The key pair is created in your browser with the Web Crypto API. The private key is never sent anywhere: it exists only on this page until you download it. Publish the TXT record at the name shown, install the private key on your mail server, and configure the server to sign with the same selector.

Use a new selector each time you rotate keys, for example one that includes the year and month. Keep the old record published for a week or so after switching, so mail already in transit still verifies.

Questions

RSA 2048 or Ed25519?

RSA 2048 for compatibility. Ed25519 keys are much shorter, but some receivers can't verify them yet, so publish one alongside an RSA key rather than on its own.

Why is the record split into several strings?

A single DNS string holds at most 255 characters and a 2048-bit key is longer. DNS joins the strings back together. Most DNS panels do the splitting for you if you paste the full value.

What does t=s do?

It requires the signing domain to match the From domain exactly, with no subdomains. Leave it off unless you know you need it.