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

Easy DKIM, a custom MAIL FROM domain for SPF alignment, and getting out of the sandbox.

Amazon SES is the cheapest way to send email at volume, but it leaves more of the setup to you than other services. To pass DMARC with your own domain you need Easy DKIM, and to make SPF line up too you need a custom MAIL FROM domain. New accounts also start in a restricted sandbox.

See what's already in place. Rigcheck shows your SPF, DKIM and DMARC records, and detects SES once its SPF record is on your sending domain.

Before you start

  • An AWS account with access to Amazon SES, and the region you'll send from chosen. SES identities are set up per region, so verify your domain in each region you send from.
  • Access to your DNS host, wherever your domain's DNS records are managed (Cloudflare, GoDaddy, Namecheap, Route 53 and so on). This isn't always where you bought the domain. Rigcheck shows your DNS host at the top of your results.

Step 1: Create a domain identity with Easy DKIM

  1. In the SES console, open Configuration → Identities and click Create identity.
  2. Choose Domain and enter your domain.
  3. Under DKIM, keep Easy DKIM with a 2048-bit key.
  4. Create the identity. SES shows three CNAME records.

Step 2: Add the DKIM records

Each of the three records looks like this, with a long random token instead of abc123:

Hostabc123._domainkey
TypeCNAME
Valueabc123.dkim.amazonses.com

Add all three, copying names and values from SES. Once SES finds them, the identity shows as verified and DKIM signing starts automatically.

Most DNS hosts add your domain automatically, so enter names in the short form your provider shows. Typing the full name can produce something like s1._domainkey.yourdomain.com.yourdomain.com, which silently fails. If you're not sure, add one record and look at how your host displays it.

If your DNS is on Cloudflare, set every CNAME record to DNS only (grey cloud), not proxied. A proxied record hides the CNAME, and verification fails.

Step 3: Set up a custom MAIL FROM domain

By default, SES uses its own amazonses.com address as the bounce address, so SPF passes for Amazon's domain, not yours. DKIM alone can carry DMARC, but adding a custom MAIL FROM domain makes SPF line up too, which gives you a second way to pass.

  1. Open your domain identity and find Custom MAIL FROM domain, then click Edit.
  2. Enter a subdomain you don't use for anything else, like mail.yourdomain.com, and save.
  3. Add the two records SES shows, on that subdomain:
Hostmail
TypeMX
Value10 feedback-smtp.us-east-1.amazonses.com (your region)
Hostmail
TypeTXT
Valuev=spf1 include:amazonses.com ~all

These go on the subdomain, so your main SPF record doesn't change, and the subdomain's own SPF record doesn't count against your main record's 10-lookup limit.

DMARC

If your domain has no DMARC record yet, add a TXT record named _dmarc:

Host_dmarc
TypeTXT
Valuev=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

If you already have one, keep it. A domain can only have one DMARC record, and it covers mail from Amazon SES too. Start with p=none, then tighten it once your reports look clean: DMARC p=none vs quarantine vs reject walks through it.

Step 4: Request production access

New SES accounts start in the sandbox: you can only send to verified addresses, with a low daily limit. To send to anyone, open Account dashboard in the SES console and request production access. Describe what you send, how people sign up, and how you handle bounces and complaints. Requests are reviewed by AWS and usually answered within a day.

Confirm it works

  1. Run your domain through Rigcheck. Rigcheck can't guess SES's random DKIM names, so DKIM may show Review even when it's working; the SES console's verified status is the one to trust. Check that DMARC is in place.
  2. Send a test message through Amazon SES to a personal Gmail address. Open it, tap the three-dot menu and choose Show original. You should see PASS next to SPF, DKIM and DMARC, with your own domain listed for each. If you skipped the custom MAIL FROM domain, SPF passes for amazonses.com instead, and DKIM carries DMARC on its own.

Other problems

  • A record won't verify. Check the record type, check the name for a doubled domain, and on Cloudflare make sure CNAMEs are DNS only. If it's still failing after a few hours, see DNS changes not showing up.

Check your Amazon SES setup. See which records pass and get the exact fix for anything missing.

Check my setup

Browse all guides