Short answer: sign in to the AWS console, open Route 53, then Hosted zones, choose your domain, and choose Create record. Pick TXT, leave the Record name empty for the root domain, and type the value from your mail service inside double quotation marks. If an SPF record already exists, edit it instead of adding a second one.
Reviewed
This page is for store owners whose domain’s DNS is managed in Amazon Route 53 (AWS’s DNS service) and who were told to “add a TXT record” for SPF, DKIM or DMARC. It follows the Route 53 Developer Guide, read on 2026-11-19 (links at the end). Screen names are as of November 2026. If AWS changes its pages, trust its pages over ours. This is an independent guide. The overview for all DNS services is on the hub page.
Symptom
You see one of these:
- Your mail service says “add this TXT record to your DNS” and you do not know where.
- The free checker or another tool says your SPF, DKIM or DMARC record is missing, or that you have two SPF records.
- The plugin’s health report says “DNS hosted at: Amazon Route 53”.
Why it happens
Receiving mail servers look up public records in your domain’s DNS (its public address book) to decide whether to trust your mail. Those records are not in WordPress. They live with whoever answers DNS for your domain.
Route 53 answers only if your domain’s name servers (the servers that say who answers for the domain) are the four listed in your hosted zone. A hosted zone is Route 53’s container for all the records of one domain. AWS’s pages say that to make Route 53 the DNS service, the registrar (where you bought the domain) must use those four name servers. If your registrar points elsewhere, a record you add in Route 53 does nothing. Look at the name servers first (see Fix, step 1).
In Route 53, the TXT value must be inside double quotation marks, and one string may hold only 255 characters. A long DKIM key therefore has to be split in pieces.
Fix
Use example values only as a pattern. Your real values come from your mail service. Copy them exactly; do not retype them.
- Confirm that Route 53 is where your DNS lives. In the Route 53 console, choose Hosted zones, select the radio button for your domain, and choose View details. Under Hosted zone details, note the four Name servers (names like
ns-123.awsdns-45.com). At your registrar, the name servers for the domain must be those four. If they are not, edit the records where the name servers point instead. - Open the zone. Sign in to the AWS Management Console, open Route 53, choose Hosted zones, then choose the name of your domain.
- Look at the records first. In the list, look for an existing TXT record whose name is your domain and whose value starts with
v=spf1. If you find one, go to “Edit the SPF record” below. Do not create a second one. A domain may have only one SPF record. - Create a TXT record. Choose Create record, then choose Simple routing if the console asks for a routing policy, and fill in:
- Record name: for the root domain (the plain
example.com), leave it empty. AWS says not to type an@or anything else when the record has the same name as the hosted zone. For a host such as DKIM or DMARC, type only the host part, for example_dmarc(underscores are allowed in names). Route 53 stores letters in names as lowercase. - Record type: TXT.
- Value: the text from your mail service, inside double quotation marks, for example
"v=DMARC1; p=none; rua=mailto:dmarc@example.com". - TTL (seconds): how long other servers may remember the answer. For something already in use, AWS suggests a short value such as 300 first and a longer one once it works.
- Record name: for the root domain (the plain
Then choose Create records. AWS says changes generally reach all Route 53 name servers within 60 seconds.
- Long values. One string holds at most 255 characters. For a longer value, split it in pieces of 255 characters or fewer, put each in double quotation marks, and list them on the same line, separated by a space:
"first piece" "second piece". AWS gives 4,000 characters as the limit for a whole TXT value. - Never put two values for one name in two separate records. AWS says that all TXT values for the same name belong in the same TXT record, with one value per row. That is why you edit the SPF record instead of adding another one.
Edit the SPF record
- In the list of records, select the row of the existing SPF record. An edit pane (Edit record) opens.
- In Value, keep the line that starts with
"v=spf1. Add your mail service’sinclude:before the~allor-allat the end. For example:
Before: "v=spf1 include:_spf.example.net ~all"
After: "v=spf1 include:_spf.example.net include:mail.example.org ~all"
Both example.net and mail.example.org are placeholders. Use what your mail service gives you.
- Leave other rows in the same record (for example a site verification value) as they are. Choose Save changes.
- For the one-record rule and the limit of 10 lookups, see How to add or fix an SPF record. AWS says not to create records of the type SPF; use a TXT record.
Add DKIM and DMARC
- DKIM: your mail service shows a host name and a value. It is usually a TXT record, but some services give a CNAME record instead. Add what your service shows. Type only the host part in Record name, for example
selector1._domainkeyforselector1._domainkey.example.com, and use the record type the service names. A CNAME cannot be at the root of the domain, and a name that has a CNAME cannot have other records. If the key is longer than 255 characters, split it as in step 5. See How to set up DKIM. - DMARC: a TXT record named
_dmarc. A first, safe value to start with is"v=DMARC1; p=none; rua=mailto:dmarc@example.com", with an address you can read in place ofdmarc@example.com. See DMARC for beginners before you tighten the policy. - After saving, read the full name of the new record in the Records list. It must be
_dmarc.example.com(your domain once), not your domain twice. If it shows the domain twice, edit the record and fix Record name.
Check it worked
- In the Records list, find your record and read its name and value. The value should be inside quotation marks and match what your mail service gave you.
- Run the free checker on your domain. SPF should show one valid record. The DKIM line may say “Not checked” because the checker only tries common selector names; see the DKIM guide.
- Send a real order email to a mailbox at a large provider. Open “show original” and look for
spf=passanddkim=pass, anddmarc=passif you added DMARC. - If it still lands in spam, see WooCommerce emails not sending or going to spam.
If the checker still shows the old answer, wait. Route 53 itself updates within about a minute according to AWS, but other servers may remember the old answer for as long as the old TTL says.
How the plugin helps
Email Health Check & Log for WooCommerce reads your domain’s name servers and, if they look like Route 53’s (names such as ns-123.awsdns-45.com, matched on the awsdns- part with .com, .net, .org or .co.uk), shows “DNS hosted at: Amazon Route 53” in the “How to fix this” panel, a short note that your DNS records are edited in the hosted zone in the Route 53 console and not in WordPress, and a link to AWS’s page on creating records. The lookup is an ordinary DNS lookup of your domain’s name servers; it sends none of your data to us or to AWS, and the plugin changes no DNS records. The name servers can show a different company from the one you expect, for example when you bought the domain at one company and use another company’s DNS. If the name servers match nothing the plugin knows, or the lookup fails, it shows nothing. The line appears in a check’s “How to fix this” panel, and it reads “Hosting and DNS:” instead when your web host is detected with high confidence as the same company as your DNS. Get the plugin on WordPress.org.
Sources
- Route 53 Developer Guide: Creating records by using the console, read 2026-11-19
- Route 53 Developer Guide: Editing records, read 2026-11-19
- Route 53 Developer Guide: Values common to all routing policies, read 2026-11-19
- Route 53 Developer Guide: Values for simple records, read 2026-11-19
- Route 53 Developer Guide: Supported DNS record types (TXT, SPF, CNAME), read 2026-11-19
- Route 53 Developer Guide: DNS domain name format, read 2026-11-19
- Route 53 Developer Guide: NS and SOA records for a public hosted zone, read 2026-11-19
- Route 53 Developer Guide: Making Route 53 the DNS service for a domain in use, read 2026-11-19
Amazon Route 53, AWS and other product names belong to their owners. They are used here only to say what a company’s documentation says. This page is not affiliated with or endorsed by any of them.