Amazon SES DKIM Setup: Easy DKIM and BYODKIM

Set up DKIM in Amazon SES step by step: Easy DKIM CNAME records, console steps, BYODKIM keys, how to verify it, and fixes for pending or failed status.

By the Volanea team7 min read

DKIM signs each message so receiving servers can check that your domain authorised it and that it was not changed on the way. Amazon SES can create and manage the keys for you (Easy DKIM) or use a key you supply (BYODKIM). The steps below follow the AWS DKIM documentation as of November 30, 2026.

Before you start

  • Verify your domain as an identity in SES, in the Region you send from. DKIM is set up per Region.
  • Have access to the domain's DNS.
  • Only the domain in your From address needs DKIM, not the Return-Path or Reply-To domain.

Set up Easy DKIM

  1. Open the SES console and, under Configuration, choose Identities.
  2. Choose your identity of type Domain.
  3. On the Authentication tab, under DomainKeys Identified Mail (DKIM), choose Edit.
  4. Under Advanced DKIM settings, choose Easy DKIM.
  5. For the signing key length, choose RSA_2048_BIT (the default) or RSA_1024_BIT.
  6. Check Enabled under DKIM signatures and choose Save changes.

SES then adds a DKIM signature to every message sent from that identity (Easy DKIM).

Publish the three CNAME records

SES gives you three CNAME records. Their shape is:

TOKEN1._domainkey.example.com  CNAME  TOKEN1.SIGNING-HOSTED-ZONE
TOKEN2._domainkey.example.com  CNAME  TOKEN2.SIGNING-HOSTED-ZONE
TOKEN3._domainkey.example.com  CNAME  TOKEN3.SIGNING-HOSTED-ZONE

The hosted zone looks like dkim.us-west-2.amazonses.com, but it varies by Region and identity, so copy the names and values exactly as SES shows them. You can read them with the CLI:

aws sesv2 get-email-identity --email-identity "example.com"

The response's DkimAttributes contains Tokens and SigningHostedZone. If your DNS is in Route 53 and you let SES publish the records when creating the identity, SES adds them for you.

Verify that DKIM works

DNS changes can take up to 72 hours to be seen. Check a record yourself:

dig +short CNAME TOKEN1._domainkey.example.com

Then send a message to a mailbox you control and look for dkim=pass with your own domain in the headers. You may also see a second signature with d=amazonses.com; SES adds it, and AWS says you can ignore it.

Bring your own DKIM key (BYODKIM)

Choose BYODKIM if you need to control the key. It uses one TXT record instead of three CNAMEs. The key must be RSA, 1024 to 2048 bits, in PKCS #1 or PKCS #8 format.

openssl genrsa -f4 -out private.key 2048
openssl rsa -in private.key -outform PEM -pubout -out public.key

Publish the public key as a TXT record named selector._domainkey.example.com with the value p= followed by the key, without the BEGIN and END lines or line breaks. In the console, choose Provide DKIM authentication token (BYODKIM), paste the private key, enter the selector name, enable signatures and save. The selector must be 1 to 63 letters and digits, with no periods or symbols.

Keep a secure copy of the private key outside your SES account, so you can still use it if you ever move.

Fix common DKIM problems

SymptomLikely cause and fix
Status stays "pending verification"Wait up to 72 hours. Check the record name: some DNS providers append the domain twice, giving ...example.com.example.com
Messages are not signedDKIM is not enabled on the identity, or you verified a single address without configuring DKIM for it
Works in one Region onlySet DKIM up in each Region
Status "revoked"Restart the DKIM setup from the beginning
BYODKIM verification failsCheck key format and length, and remove header, footer and line breaks from the public key
CNAMEs resolve but verification failsYour DNS provider may not redirect CNAME records correctly; AWS suggests Route 53 as a fallback

If you remove the DNS records later, SES disables DKIM signing and emails you (troubleshooting). DKIM is one part of authentication: add SPF through a custom MAIL FROM domain and publish DMARC too, as covered in the deliverability guide.

FAQ

How many DNS records does Amazon SES DKIM need?

Easy DKIM needs three CNAME records. BYODKIM needs one TXT record.

What DKIM key length does Amazon SES use?

Easy DKIM defaults to 2048-bit keys. BYODKIM accepts 1024 to 2048 bits.

How long does SES DKIM verification take?

It can take up to 72 hours for the DNS records to become visible.