Email

Set up SPF, DKIM and DMARC at Amazon SES

In short. At Amazon SES, you set up DKIM by creating a domain identity (SES gives you three CNAME records to publish), you set up SPF with a custom MAIL FROM domain (an MX and a TXT record on a subdomain), and DMARC is a _dmarc TXT record you publish yourself. DMARC passes if SPF or DKIM passes in alignment with the domain of the From address.

SPF lists the servers allowed to send, DKIM signs every message, and DMARC tells recipients what to do with messages that fail. With SES, DKIM and SPF are not configured in the same place: the first on the domain identity, the second on the MAIL FROM subdomain.

Last verified: November 30, 2026, against the official Amazon SES documentation.

Before you start

You need access to the DNS settings of your domain. With Route 53, SES can publish the records for you; elsewhere, you enter them by hand. According to SES, propagation can take up to 72 hours. The validation records are different for each AWS Region: to send from several Regions, create and verify one identity per Region.

1. DKIM (Easy DKIM)

In the SES console, under Configuration, open Identities, then Create identity. Choose the Domain type and enter the domain without www. (SES warns that verification fails if you include it). Under Advanced DKIM settings, Easy DKIM is the default: the key is 2048 bits by default, and you can choose RSA_1024_BIT. Leave Enabled checked in DKIM signatures, then click Create identity.

On the identity's Authentication tab, open Publish DNS records: SES shows three CNAME records (or Download .csv record set). Their shape, with <token> supplied by SES:

Name  : <token>._domainkey.example.com
Type  : CNAME
Value : <token>.dkim.<region>.amazonses.com

The part after .dkim. varies by Region and identity; the API returns it in the SigningHostedZone field. Copy the exact values from your console. As soon as SES detects the three CNAME records, the DKIM configuration shows Successful and the identity Verified.

If you are migrating from BYODKIM to Easy DKIM, SES warns that while the status is pending, messages may go out without a DKIM signature. Changing the key length is limited to once per 24 hours.

2. SPF (custom MAIL FROM domain)

By default, SES uses a subdomain of amazonses.com as the MAIL FROM domain: SPF passes, but for Amazon's domain. For SPF to align with your domain, set up a custom MAIL FROM domain. It must be a subdomain of the verified identity, and must not be used to send or receive email.

On the verified identity, in the Custom MAIL FROM domain pane, click Edit, check Use a custom MAIL FROM domain, enter the subdomain (for example mail.example.com) and choose Behavior on MX failure: Use default MAIL FROM domain (SES falls back to amazonses.com) or Reject message (SES returns the MailFromDomainNotVerified error). Save, then publish the two records shown:

Name  : mail.example.com
Type  : MX
Value : 10 feedback-smtp.<region>.amazonses.com

Name  : mail.example.com
Type  : TXT
Value : "v=spf1 include:amazonses.com ~all"

The 10 is the preference: some providers want it in a separate field. The quotation marks around the TXT value are usually required, but some providers do not need them. Publish exactly one MX record: with several MX records on this subdomain, the setup fails. SES sends an email when it detects the records; detection can take up to 72 hours.

States: Pending (SES looks for the MX for 72 hours), Success, TemporaryFailure, then Failed (SES stops; restart the setup). Outside Success, SES applies the fallback setting you chose above.

3. DMARC

SES does not publish DMARC for you. Create a TXT record at _dmarc.example.com. The documentation's example:

Name  : _dmarc.example.com
Type  : TXT
Value : "v=DMARC1;p=quarantine;rua=mailto:[email protected]"

p accepts none, quarantine (spam folder) or reject. rua receives aggregate reports, usually once a day. A message passes DMARC if SPF or DKIM passes in alignment, and fails if both fail.

  • SPF alignment: the domain in the From address must match the MAIL FROM domain (or its parent domain, in relaxed alignment): hence the custom MAIL FROM. Do not set aspf=s.
  • DKIM alignment: the domain in the signature must match the From domain; with Easy DKIM, SES signs automatically. If you send from a subdomain, use relaxed alignment.

Then tighten DMARC step by step

SES recommends a phased rollout: p=none to read the reports and align your senders, then p=quarantine, finally p=reject. SES warns that the wrong policy at the wrong time can stop your email from being delivered.

Common mistakes

  • Domain entered with www.: verification fails.
  • Hostname completed by the DNS provider: some append the domain without saying so. Remove it from the value you typed, or end it with a period.
  • Underscore refused or doubled: _domainkey is required in the name; do not add a _ before the token (abc123._domainkey, not _abc123._domainkey).
  • Several MX records on the MAIL FROM subdomain: the setup fails.
  • Wrong Region: the records differ from one Region to another.

Check that it works

Wait for propagation, then, replacing <token> with a token shown in the console:

dig CNAME <token>._domainkey.example.com
dig MX mail.example.com
dig TXT _dmarc.example.com
nslookup -type=TXT _dmarc.example.com

You should see the console values, one MX record and one line starting with v=DMARC1. In the output of dig TXT _dmarc.example.com, no aspf, or aspf=r, means relaxed alignment. Our free tools read SPF, DKIM and DMARC.

Free tool. DMARC checker · SPF checker · DKIM checker

Check your domain for free. AttackScout reads your public SPF, DKIM and DMARC records and tells you what to change. The public audit is free, no account needed; paid monitoring costs €9.99 excl. VAT per month or €99 excl. VAT per year per domain (daily audit, alerts from Medium severity). Run the free check · Pricing

Frequently asked questions

Amazon SES: how many DKIM records do I need to publish?

Three CNAME records with Easy DKIM, whose values the SES console shows for your identity and Region.

Amazon SES: why does my SPF not align for DMARC?

By default, SES uses a subdomain of amazonses.com as MAIL FROM. Set up a custom MAIL FROM domain, without aspf=s, or rely on DKIM alignment.

Amazon SES: what does the Failed MAIL FROM status mean?

SES did not detect the MX record within 72 hours. It no longer retries: fix the DNS, then restart the setup.

Amazon SES: can I start DMARC with p=reject?

The documentation advises starting with p=none, then quarantine, then reject.

Sources

Read on 11/30/2026.

Get the free alerts