Guides

Amazon SES: Easy DKIM and custom MAIL FROM

16 November 2026

Amazon SES mail passes DMARC in one of two ways. Easy DKIM signs every message with a 2048-bit key on your domain, which aligns with your From address. A custom MAIL FROM domain moves the envelope sender from amazonses.com to a subdomain of yours, so SPF aligns too. Set up Easy DKIM first. Add custom MAIL FROM as well if you want both checks aligned, which helps when one of them breaks.

These notes follow the SES developer guide, checked in November 2026. After you publish the records, a $129 Snapshot reads your domain’s SPF, DKIM, and DMARC from public DNS and tells you what is left to fix.

Why SES needs both settings

DMARC passes when SPF or DKIM passes on a domain that matches your From address. AWS’s DMARC page for SES says the same: for DKIM, the domain in the signature must align with the From domain, and for SPF, the From domain must match the MAIL FROM domain or be its parent.

Out of the box, SES uses a subdomain of amazonses.com as the MAIL FROM domain, according to AWS’s custom MAIL FROM page. SPF then passes for Amazon’s domain, not yours. Without Easy DKIM, nothing aligns, and DMARC fails. Gmail reports that as 4.7.32, a From header that is not aligned.

Easy DKIM

AWS’s Easy DKIM page says that when you set it up for a domain identity, SES adds a 2048-bit DKIM signature to every email you send from that identity.

Key length

The default is 2048 bits (RSA_2048_BIT in the console). You can choose 1024 bits (RSA_1024_BIT) instead, which AWS says may be needed if your DNS provider only supports 1024-bit DKIM. AWS also says you cannot switch to a different key length more than once in 24 hours, except for a first downgrade to 1024 in that period.

The DNS records

Easy DKIM requires DNS changes at your domain. AWS says that if you use Route 53, SES can create the records for you. With any other host, copy the records SES shows for the identity and add them exactly. Watch the Name field: many hosts add your domain to the end automatically, so enter only the part before it. Our guide to adding a DKIM record covers GoDaddy and Cloudflare. On Cloudflare, set any CNAMEs to DNS only.

Bring your own key

SES also supports signing with your own key, which AWS calls BYODKIM. AWS warns that SES will not sign with BYODKIM while Easy DKIM is being set up and its status is pending. If you are moving from one to the other, AWS suggests doing it through a subdomain or during downtime, so mail is not sent unsigned. The DMARC page also says SES does not validate DKIM signatures you build yourself, and highly recommends Easy DKIM.

Custom MAIL FROM

A custom MAIL FROM domain is the address receivers see as the envelope sender, and the domain SPF checks. AWS’s MAIL FROM page sets these rules for it:

The two records

SES generates them in the console. For mail.example.com in us-east-1, AWS’s example is:

mail.example.com.  IN  MX   10 feedback-smtp.us-east-1.amazonses.com.
    mail.example.com.  IN  TXT  "v=spf1 include:amazonses.com ~all"

AWS says detection can take up to 72 hours, depending on your DNS provider.

What happens if the MX record fails

You choose when you set it up:

AWS says mail uses the fallback setting while the MAIL FROM status is Pending, TemporaryFailure, or Failed, and uses your custom domain only once the status is Success. For most small senders, falling back is the safer choice, as long as Easy DKIM is working, since DKIM still aligns.

Your root SPF record

Because SPF for SES is checked on the MAIL FROM subdomain, you usually do not need include:amazonses.com in your root domain’s SPF record. Adding it there only uses up one of the ten DNS lookups SPF allows. See too many DNS lookups.

Your DMARC record

SES does not publish DMARC for you. AWS’s DMARC page gives this example, which you publish yourself:

_dmarc.example.com  TXT  "v=DMARC1;p=quarantine;rua=mailto:my_dmarc_report@example.com"

If you are starting out, use p=none first. AWS recommends moving through none, then quarantine, then reject, and warns that using the wrong policy at the wrong time can stop mail being delivered.

AWS also says to check your record for strict alignment, aspf=s or adkim=s. A custom MAIL FROM subdomain such as mail.example.com only aligns with example.com under relaxed alignment, which is the default. See DMARC record tags.

Check it worked

  1. In the SES console, the identity’s DKIM status should be successful, and the MAIL FROM status should be Success.
  2. Send a message to a Gmail address and open Show original.
  3. You want dkim=pass with your domain, spf=pass with smtp.mailfrom on your MAIL FROM subdomain, and dmarc=pass.

Our guide to reading email headers explains each line. If DKIM fails, see DKIM fail.

Forwarding

AWS’s DMARC page notes that forwarding breaks SPF but not necessarily DKIM, which survives as long as the message content is not changed. That is the reason to get Easy DKIM working even if custom MAIL FROM already makes SPF align.

Sources