Amazon SES: SPF, DKIM and DMARC alignment
Your app sends through Amazon SES, and a receiver reports an SPF, DKIM or DMARC failure. SES needs two pieces of DNS: Easy DKIM, which signs mail as your domain, and a custom MAIL FROM domain, which makes SPF match your domain.
The DNS records SES asks for
Create a domain identity in the SES console, then copy the records from the identity page. The values below show the shape only. example.com is your domain.
- CNAME
Name
<token>._domainkey.Valueexample.com <token>.<SES signing zone>Easy DKIM. SES shows three of these, one per token. Copy each value exactly as shown. - MX
Name
<mail-from>.example.comValue10 feedback-smtp.<region>.amazonses.comCustom MAIL FROM. Receives bounces and complaints. The subdomain is one you choose. - TXT
Name
<mail-from>.example.comValue"v=spf1 include:amazonses.com ~all"SPF for the MAIL FROM subdomain only. It does not go into the SPF record at example.com. - TXT
Name
_dmarc.example.comValuev=DMARC1; p=none; rua=mailto:[email protected]Your DMARC record, if you don't have one yet. Start withp=none.
Which check aligns with DMARC
- No: SPF does not align by default. Without a custom MAIL FROM, SES uses a subdomain of
amazonses.comas the Return-Path. SPF passes, but for amazonses.com, not for your domain. - Yes: SPF aligns with a custom MAIL FROM on a subdomain of your domain, as long as your DMARC record does not set
aspf=s. - Yes: DKIM aligns once Easy DKIM is verified for the domain in your From address. If you send from a subdomain of the verified domain, DMARC needs relaxed DKIM alignment (no
adkim=s).
DKIM alignment alone is enough for DMARC to pass. Set up the custom MAIL FROM as well, so that SPF aligns too.
Common mistakes
- The DNS host adds your domain twice. Some hosts append
example.comto the name you type. Enter only the part before your domain, or end the full name with a period. - An extra underscore. The name is
<token>._domainkey, not_<token>._domainkey. - The MAIL FROM MX record is not set up correctly. If Behavior on MX failure is set to Use default MAIL FROM domain, SES then uses a subdomain of amazonses.com and SPF stops aligning. DKIM still carries DMARC.
- More than one MX record on the MAIL FROM subdomain makes the setup fail. Don't use that subdomain to send or receive other mail.
- A second AWS Region. Each Region needs its own verified identity and its own records.
- Cloudflare proxy. Keep the DKIM CNAMEs DNS only (grey cloud). Cloudflare recommends DNS only for email and domain verification records.
Check your setup
- Check your domain with MailDoctor (form below) for SPF, DMARC and the rest.
- Check each DKIM key with the DKIM key checker. The selector is the token: the part of the CNAME name before
._domainkey. - Check the MAIL FROM subdomain's SPF record with the SPF lookup counter.
- Send yourself a message through SES and paste its headers into the email header analyzer. It shows the Return-Path, the DKIM domain, and which of them aligns.
Marketing mail: SES subscription management adds the List-Unsubscribe and List-Unsubscribe-Post headers for one-click unsubscribe. See Using subscription management.
Sources, checked 27 November 2026: Easy DKIM in Amazon SES · Creating and verifying identities · Using a custom MAIL FROM domain · Complying with DMARC in Amazon SES · Cloudflare proxy status
Check the domain you send from. Grade, problems and the exact records to fix them.