Email errors
Amazon SES DMARC fail: why it happens and how to fix it
Amazon SES DMARC fail means no domain passed SPF or DKIM and aligned with your From domain. Set up Easy DKIM and a custom MAIL FROM to fix it.
What this means
Amazon SES DMARC fail means the receiving server found no domain that passed SPF or DKIM and also matched your visible From domain. That match is called alignment, and DMARC needs one aligned pass. By default, SES authenticates with amazonses.com, not your domain.
SES mail can pass both checks and still fail DMARC:
- SPF checks the MAIL FROM domain (the hidden envelope address), and SES uses a subdomain of
amazonses.comthere. - SES adds a DKIM signature with
d=amazonses.comto every message.
Neither aligns with example.com. Easy DKIM makes SES sign with your domain. A custom MAIL FROM domain moves the envelope address to your subdomain.
Why it happens
- No DKIM on your domain. Verifying an email address does not set up DKIM for its domain, so the mail carries only the
amazonses.comsignature. - Missing records or another Region. Easy DKIM needs three CNAME records and is set up separately in each Region and account. If the records are removed, SES disables signing there and emails you.
- An address with its own settings. An email address identity can override the domain's DKIM settings and send without its signature.
- Default MAIL FROM. With no custom domain, SPF passes only for
amazonses.com. A custom domain also falls back to your Behavior on MX failure choice whenever its state is notSuccess. - Strict alignment. AWS says SPF alignment with SES needs a DMARC record without
aspf=s. Withadkim=s, a signature forexample.comfails on mail fromnews.example.com. - Forwarding or a specific receiver. Forwarding can break SPF. AWS also reports that Microsoft Enterprise Outlook randomly validates only one of the two DKIM signatures.
How to fix it
-
Paste the full header of a failed message into the Email Header Analyzer. Compare your From domain with
smtp.mailfromand eachheader.dorheader.i. -
In the SES console, open Identities in the Region that sent the mail. Your domain should show Verified, with DKIM configuration at Successful. If it is missing, choose Create identity, then Domain, and keep the default Easy DKIM.
-
Publish the three CNAME records from the Authentication tab exactly as shown. Check that your DNS host did not add the domain a second time.
Caution: switching a BYODKIM domain (your own key) to Easy DKIM can send mail unsigned until verification finishes.
-
Confirm DKIM signatures is enabled in every Region and account that sends for the domain. If the From address is also an email address identity, check its setting too.
-
In Custom MAIL FROM domain, choose Edit, select Use a custom MAIL FROM domain and enter a subdomain used for nothing else, such as
bounce.example.com.Caution: Reject message under Behavior on MX failure makes SES refuse mail from this identity while the MX record is wrong. Keep Use default MAIL FROM domain during setup.
-
On that subdomain, publish the MX and TXT records SES shows. In
us-east-1, the MX value isfeedback-smtp.us-east-1.amazonses.com, with priority10. The TXT value, in quotation marks if your DNS host needs them:TXTv=spf1 include:amazonses.com ~all
Publish exactly one MX record there, or the setup fails. Keep one SPF record on that name and leave your root domain's SPF as it is.
-
If your DMARC record has
aspf=s, oradkim=swhile you send from a subdomain, remove that tag. Both default to relaxed.Caution: do not tighten
p=to solve this. AWS advises moving fromp=nonein phases, because the wrong policy can stop delivery.
Confirm the fix
- Wait until DKIM configuration shows Successful and the custom MAIL FROM state shows
Success. DNS changes can take up to 72 hours. - Send a new message to a mailbox you control. In
Authentication-Results, look fordmarc=pass, plusdkim=passwith your domain inheader.dorheader.i, orspf=passwith your subdomain insmtp.mailfrom. - Check your record with the DMARC Checker. In your next aggregate reports,
dkimorspfunderpolicy_evaluatedshould readpassfor SES rows.