Introduction
To make Amazon Simple Email Service (SES) mail pass DMARC, verify the sending domain as an identity with Easy DKIM, publish the three DKIM CNAME records, and add a DMARC record. DKIM then aligns with your From domain. For SPF alignment as well, configure a custom MAIL FROM subdomain with its own MX and SPF records.
SES is a developer-facing sending service, so the DNS work often lands with the MSP while an application team owns the AWS account. This guide covers both sides. For the underlying concepts, see the DMARC guide and DMARC alignment explained.
Key takeaways
- Easy DKIM gives you three CNAME records and signs with your domain, which aligns with the From address and satisfies DMARC on its own.
- Without a custom MAIL FROM domain, SES uses a subdomain of
amazonses.comas the envelope sender, so SPF passes but does not align. - A custom MAIL FROM domain needs exactly one MX record pointing to
feedback-smtp.<region>.amazonses.comand an SPF record withinclude:amazonses.com. - SES settings, sandbox status and DKIM setup are per AWS Region. Repeat the work in every Region the application sends from.
- Gmail and Yahoo require bulk senders to have SPF, DKIM, a DMARC record and an aligned From domain.
How do I verify a domain identity in Amazon SES?
Create a domain identity in the SES console, choose Easy DKIM, and publish the three CNAME records it shows. SES marks the identity verified once it detects all three records, which AWS says can take up to 72 hours. The steps are in AWS's Creating and verifying identities guide.
- In the SES console, go to Configuration > Identities and choose Create identity.
- Select Domain and enter the domain or subdomain used in the From address.
- Under DKIM, choose Easy DKIM and a DKIM signing key length: RSA_2048_BIT (the SES default) or RSA_1024_BIT.
- Optionally tick Use a custom MAIL FROM domain (covered below).
- Copy the three CNAME records from Publish DNS records, or download the .csv record set, and add them at the DNS host.
Verify the domain that appears in the From header. AWS notes you only need DKIM for the From domain, not for Return-Path or Reply-To domains.
What DNS records does Easy DKIM create?
Easy DKIM creates three CNAME records. Each name is a token under _domainkey on your domain, and each value points to an AWS-hosted key, so you never paste a public key into DNS yourself. If the domain is hosted in Route 53, AWS says SES can create the records for you.
abc123._domainkey.example.com CNAME abc123.dkim.amazonses.com
def456._domainkey.example.com CNAME def456.dkim.amazonses.com
ghi789._domainkey.example.com CNAME ghi789.dkim.amazonses.com
Copy the exact values from the console. AWS says the hosted zone part varies by Region and identity, for example token.dkim.us-west-2.amazonses.com. A common mistake is a leading underscore: abc123._domainkey is correct, _abc123._domainkey is not. Some DNS hosts also append the domain automatically, producing abc123._domainkey.example.com.example.com. The tokens act as selectors; see DKIM selector explained.
When should I use BYODKIM instead of Easy DKIM?
Use Bring Your Own DKIM (BYODKIM) when you must control the key pair, for example to reuse one selector across platforms or meet an internal key policy. You generate the keys, give SES the private key, and publish the public key yourself as a TXT record. Easy DKIM is simpler and suits most clients.
AWS's DKIM overview says BYODKIM keys must be at least 1024 and no more than 2048 bits. For the TXT value, strip the BEGIN and END PUBLIC KEY lines and line breaks, and keep the p= prefix:
selector1._domainkey.example.com TXT "p=MIIBIjANBgkqh...IDAQAB"
With BYODKIM, key rotation becomes your job. Plan it with how to rotate DKIM keys safely.
Why does SPF not align with the default MAIL FROM domain?
Because SES puts its own domain in the envelope sender. AWS states that messages "automatically use a subdomain of amazonses.com as the default MAIL FROM domain". SPF passes for that domain, but DMARC needs the SPF domain to match the From domain, and amazonses.com never matches example.com.
The message still passes DMARC if Easy DKIM signs with your domain. This is the same pattern as many email service providers, explained in why DMARC fails when SPF passes. It also means adding include:amazonses.com to your root domain's SPF record does nothing for DMARC when the default MAIL FROM is in use: SPF is checked against the amazonses.com subdomain, not your root.
How do I set up a custom MAIL FROM domain for SPF alignment?
Choose a dedicated subdomain such as bounce.example.com, set it as the MAIL FROM domain on the identity, and publish one MX record and one SPF record on that subdomain. The envelope sender then sits under your domain, and SPF aligns in relaxed mode. AWS documents this in Using a custom MAIL FROM domain.
bounce.example.com MX 10 feedback-smtp.eu-west-2.amazonses.com
bounce.example.com TXT "v=spf1 include:amazonses.com ~all"
Replace eu-west-2 with the Region the identity lives in. AWS's rules for the subdomain are strict:
- It must be a subdomain of the verified identity's domain.
- It must not be used to send or receive other mail, or for anything else.
- It must have exactly one MX record; multiple MX records make the setup fail.
- SES checks for the MX record for up to 72 hours before marking the setup failed.
Set Behavior on MX failure deliberately. Use default MAIL FROM domain keeps mail flowing but silently loses SPF alignment. Reject message stops sending with a MailFromDomainNotVerified error. For DKIM-signed mail the first option is usually safer, provided someone monitors the identity status.
AWS also notes that SPF alignment through SES requires relaxed SPF alignment, so do not set aspf=s in the DMARC record.
How do SPF and DKIM align with each SES setup?
DMARC passes when at least one of SPF or DKIM passes and aligns with the From domain. With SES, DKIM is the dependable path, and a custom MAIL FROM domain adds SPF as a second one. The table shows the outcome for a From address on example.com with relaxed alignment.
| SES configuration | Envelope sender (Return-Path) | SPF aligned? | DKIM d= |
DKIM aligned? | DMARC result |
|---|---|---|---|---|---|
| No domain DKIM, default MAIL FROM | amazonses.com subdomain |
No | amazonses.com |
No | Fail |
| Easy DKIM, default MAIL FROM | amazonses.com subdomain |
No | example.com |
Yes | Pass |
| Easy DKIM, custom MAIL FROM | bounce.example.com |
Yes | example.com |
Yes | Pass (both) |
| Custom MAIL FROM with MX missing, fallback on | amazonses.com subdomain |
No | example.com |
Yes | Pass (DKIM only) |
Easy DKIM, adkim=s, From on mail.example.com, identity is example.com |
amazonses.com subdomain |
No | example.com |
No (strict) | Fail |
Then publish the DMARC record itself. Start at monitoring and raise the policy as reports confirm every source:
_dmarc.example.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
Under RFC 9989, there is no pct percentage ramp. Move from p=none to p=quarantine to p=reject, optionally with t=y as a test step.
What changes between the SES sandbox and production?
New SES accounts start in the sandbox, which limits who you can send to and how much. You can only send to verified addresses or the SES mailbox simulator, with a maximum of 200 messages per 24 hours and 1 message per second, according to AWS's production access guide.
Sandbox status does not change authentication: DKIM and MAIL FROM work the same way. But sandbox testing only covers verified recipients, so you will see little in aggregate reports until production access is granted. Request it from the Account dashboard. AWS says it gives an initial response within 96 hours, so include that in client project plans.
Why does the AWS Region matter for DMARC?
SES identities, DKIM settings, custom MAIL FROM domains and sandbox status are all set per Region. An application that sends from eu-west-2 and us-east-1 needs the identity verified and DKIM configured in both. Otherwise mail from one Region goes out without your domain's signature and fails DMARC.
AWS states that you must complete DKIM setup in each Region you send from. It also offers Deterministic Easy DKIM (DEED), where replica identities in other Regions inherit the parent identity's DKIM signing. For UK and EU clients, also confirm which Region the application actually uses; data residency decisions often put sending in a European Region, but test environments sometimes default elsewhere.
What do Gmail and Yahoo require from SES senders?
Senders of more than 5,000 messages a day to Gmail must set up SPF and DKIM, publish a DMARC record (p=none is allowed), and align the From domain with SPF or DKIM. Yahoo's rules match. Both require one-click unsubscribe for marketing mail and a spam rate below 0.3%.
The sources are Google's email sender guidelines and Yahoo's sender best practices. Google adds a target below 0.10% in Postmaster Tools. Authentication is only part of it: check that the application or its SES configuration adds a working List-Unsubscribe header to marketing mail. See one-click unsubscribe requirements and Gmail 550 5.7.26 bounce codes.
What should an MSP check for each SES client?
Treat SES like any other third-party sender: find out who owns the AWS account, confirm which domains and Regions send, then verify the DNS. The application team can change SES settings without telling you, so recheck after releases.
- Identify every AWS account and Region sending for the client's domains.
- Confirm each From domain is a verified identity with DKIM status "Successful" in every Region.
- Check the three CNAMEs resolve, using the DNS lookup tool or the DKIM validator.
- Decide on a custom MAIL FROM subdomain, publish its MX and SPF records, and record the MX failure behaviour.
- Keep
include:amazonses.comoff the root SPF record unless something there needs it; see SPF too many DNS lookups. - Send a test to an external mailbox and confirm
dkim=pass header.d=example.comand, with custom MAIL FROM, an alignedsmtp.mailfrom. - Watch aggregate reports for SES IPs failing alignment before raising the policy.
- Document the Region, selectors and MAIL FROM subdomain in the client's runbook.
The same approach applies to other ESPs, as in SendGrid DMARC setup.
How do I troubleshoot DMARC failures with Amazon SES?
Look at a failing message's Authentication-Results header or the aggregate report row. Check the DKIM d= domain and the SPF domain against the From domain, then match the pattern below. Most SES failures come from unverified identities, a second Region, or a MAIL FROM fallback.
| Symptom | Likely cause | Fix |
|---|---|---|
DKIM d=amazonses.com only |
DKIM not enabled for the From domain | Enable Easy DKIM, publish CNAMEs |
| Identity stuck in pending | CNAME typo, leading underscore or doubled domain | Correct the record names |
SPF domain is amazonses.com |
Default MAIL FROM, or custom MAIL FROM fell back | Fix the MX on the MAIL FROM subdomain |
MailFromDomainNotVerified errors |
MX missing and behaviour set to reject | Publish exactly one MX record |
| Only some mail fails DMARC | Second Region without DKIM | Configure identity and DKIM in that Region |
DKIM aligned fails with adkim=s |
From uses a subdomain of the signing domain | Use relaxed alignment or verify the subdomain |
| Mail only reaches test addresses | Account still in the sandbox | Request production access |
Frequently asked questions
Do I need to add include:amazonses.com to my root SPF record?
Not for DMARC. With the default MAIL FROM, SPF is checked against an amazonses.com subdomain. With a custom MAIL FROM, SPF is checked against that subdomain's own record. The include belongs on the MAIL FROM subdomain, not the root.
Is Easy DKIM enough to pass DMARC without a custom MAIL FROM?
Yes. DMARC needs only one aligned pass, and Easy DKIM signs with your domain. A custom MAIL FROM adds SPF alignment as a backup, which helps if a DKIM signature ever breaks in transit, and it keeps bounce handling under a domain you control.
Does a subdomain inherit DKIM from a verified parent domain in SES?
Yes. AWS states that DKIM on a verified domain also applies to its subdomains, and a subdomain can disable inheritance if needed. With relaxed alignment, mail from mail.example.com signed with d=example.com aligns. With adkim=s, verify the subdomain separately.
Should I use 1024-bit or 2048-bit keys for Easy DKIM?
Use the default of 2048 bits. AWS says 2048 bits is always preferred and suggests 1024 bits only for situations such as a DNS provider that supports nothing larger. Easy DKIM publishes keys through CNAME records, so long TXT values are not your DNS host's problem.
Next steps
Start with an inventory: which applications send through SES for each client, from which Regions and with which From domains. Then enable Easy DKIM everywhere, add custom MAIL FROM where it is practical, and publish DMARC at p=none with a report address.
DMARC AI processes aggregate reports per client domain and gives AI-assisted guidance, which helps MSPs see SES sources failing alignment across many tenants. Confirm each fix in the reports before moving to p=quarantine and then p=reject.