ReplyDak

How to set up SPF, DKIM and DMARC for Amazon SES

Updated 10 November 2026 · 6 min read

Short answer

On Amazon SES, turn on Easy DKIM for the domain identity (2048-bit by default) and publish the three CNAME records SES shows, set a custom MAIL FROM subdomain such as bounce.yourdomain.com with one MX record 10 feedback-smtp.<region>.amazonses.com and a TXT record v=spf1 include:amazonses.com ~all, then publish DMARC at _dmarc.yourdomain.com. Without the custom MAIL FROM, SPF passes for amazonses.com but does not align with your domain, so DMARC relies on DKIM alone.

Records for an SES domain identity

PurposeTypeNameValue
Easy DKIM (x3)CNAME<token>._domainkey.yourdomain.com<token>.dkim.amazonses.com
Custom MAIL FROMMXbounce.yourdomain.com10 feedback-smtp.us-east-1.amazonses.com (your region)
Custom MAIL FROM SPFTXTbounce.yourdomain.com"v=spf1 include:amazonses.com ~all"
DMARCTXT_dmarc.yourdomain.comv=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

Why SES needs a custom MAIL FROM for SPF alignment

By default SES sends with a MAIL FROM (Return-Path) on a subdomain of amazonses.com. SPF passes, but for amazonses.com, so it does not align with your From domain and DMARC cannot use it. AWS's documentation says the custom MAIL FROM lets you meet DMARC through SPF, DKIM or both. The MAIL FROM must be a subdomain of the verified domain, used for nothing else: not for sending From addresses and not for receiving mail.

Step by step

  1. 1

    Turn on Easy DKIM

    SES console → Configuration → Identities → your domain → Authentication → DKIM → Edit. Choose Easy DKIM, key length RSA_2048_BIT (or 1024 only if your DNS host cannot take 2048), keep signatures enabled, save.

  2. 2

    Publish the three CNAMEs

    Copy them from the identity page (or Download .csv record set). If Route 53 hosts the zone in the same account, SES can publish them for you.

  3. 3

    Set the custom MAIL FROM

    In the identity's Custom MAIL FROM domain pane choose Edit, enter bounce.yourdomain.com, and pick the behaviour on MX failure: fall back to the amazonses.com default, or reject the message with MailFromDomainNotVerified.

  4. 4

    Publish exactly one MX and the SPF TXT

    AWS warns that the MAIL FROM subdomain must have exactly one MX record or setup fails. Some DNS hosts want the SPF value in quotes; Route 53 does.

  5. 5

    Add DMARC

    Publish DMARC on the organisational domain. SES sends you an email when the MAIL FROM is detected; AWS allows up to 72 hours.

Changing key length later

AWS limits how often you can flip between 1024 and 2048 bits: not to the same length, and not more than once in 24 hours (except a first downgrade). Mail in transit is verified against the published key, so switching too quickly would break signatures.

Check the result

Check both the main domain and the MAIL FROM subdomain: the subdomain should show one MX and an SPF record that includes amazonses.com. Run the domain through the free ReplyDak deliverability check: it reads MX, SPF, DKIM and DMARC live from public DNS, counts SPF lookups and checks the main blocklists, with no sign-up. If your DKIM selector is not a common one, type it into the optional selector box.

More setups and errors: SPF, DKIM and DMARC by provider, DNS host and error.

FAQ

Do I need an SPF record for Amazon SES?

Not on your root domain for SES alone. You need v=spf1 include:amazonses.com ~all on the custom MAIL FROM subdomain, which is what makes SPF align for DMARC.

How many DKIM records does SES Easy DKIM use?

Three CNAME records of the form <token>._domainkey pointing to <token>.dkim.amazonses.com.

What does MailFromDomainNotVerified mean?

You chose Reject message on MX failure and SES cannot find exactly one valid MX record on the MAIL FROM subdomain, so it refuses to send.

Can the MAIL FROM subdomain be the one I send from?

No. AWS says it should not be a subdomain you send From addresses on or receive mail at.

Sources

Related

Microsoft 365 mailboxes are coming soon. Until then, new orders use Google Workspace mailboxes.