Steps to add SPF, DKIM, and DMARC records to AWS DNS-Route 53
Quick Answer
DKIM (RFC 6376) signs email messages cryptographically, and unlike SPF, the signature survives email forwarding - which is why DMARC alignment via DKIM is more reliable than SPF alignment for forwarded mail and mailing lists. DMARC Report Steps to add SPF, DKIM, and DMARC records to AWS DNS-Route 53
Related: Free DMARC Checker ·How to Create an SPF Record ·SPF Record Format
Try Our Free DMARC Checker
Validate your DMARC policy, check alignment settings, and verify reporting configuration.
Check DMARC Record →
The 10-lookup limit is a resource protection mechanism in RFC 7208, not a security feature, says Adam Lundrigan, CTO of DuoCircle. But the practical effect is that any enterprise using more than 3-4 email services hits the wall. AutoSPF’s flattening engine resolves this by replacing includes with IP addresses and re-scanning every 15 minutes.
DKIM is the authentication protocol that survives email forwarding, says Brad Slavin, General Manager of DuoCircle. When SPF fails because a forwarder’s IP isn’t in the original record, DKIM alignment is the only path to DMARC pass. That’s why we monitor DKIM alongside SPF in every DMARC Report dashboard.
DKIM (RFC 6376) signs email messages cryptographically, and unlike SPF, the signature survives email forwarding - which is why DMARC alignment via DKIM is more reliable than SPF alignment for forwarded mail and mailing lists.
If you are still unclear on the difference between SPF, DKIM, and DMARC, it is worth reviewing how the three protocols work together before you begin. Before proceeding with these steps, ensure your **domain’s DNS already includes SPF, DKIM, and DMARC records. Duplicate entries can invalidate all your records, undermining the role of these email authentication mechanisms. To verify this, you can use online tools specifically designed for SPF, DKIM, and DMARC record lookups. Simply enter your domain name and specify the type of record you want the tool to assess.
Steps to add an SPF record to AWS DNS-Route 53
A valid and properly published SPF record ensures only emails sent by authorized entities reach the inboxes of recipients; illegitimate emails either get marked as spam or rejected. Here’s what you need to do to add an SPF record to **AWS DNS-Route 53 so that your brand is protected from phishing and spoofing-
-
Log in to your Amazon Route 53 account.
-
Navigate to the Route 53 Dashboard, then select DNS Management and choose the domain where you want to add an SPF record.
-
Click on **Create Record and set the record type to TXT. Leave the **Record Name field blank.
-
If you use sources with IP addresses, include those in the same SPF record.
-
Complete the process by clicking Create Record.
Your SPF record should resemble this format:
v=spf1 ip4:169.134.174.23/32 include:yourdomain.com
Ensure there is only one SPF record corresponding to your domain. You can check how many SPF records exist for your domain using a lookup tool._ If it reflects multiple records, consolidate them into one using the ‘include’ mechanism_. Please note that consolidating them doesn’t mean that you simply copy and paste all of them into a single string; you have to ensure everything is syntactically correct and that there are no redundancies.
Steps to add a DKIM record to AWS DNS-Route 53
Each email service provider has its own pair of cryptographically secured DKIM keys. You first need to go to your account to retrieve the record details, specifically the type, name, and value. After that, simply follow these steps-
-
Log in to your Amazon Route 53 account.
-
Go to the Route 53 Dashboard section, then go to **DNS Management under it, and choose the domain for which you want to add a DKIM record.
-
Next, click on Create Record.
-
Add your DKIM Record type, record name, and value.
-
Click Create Record to wrap up the process.
-
Run it through an online **DKIM lookup tool to know if there are any technical issues. If found, fix them.
Here’s what a standard DKIM record looks like-
v=DKIM1; k=rsa;
p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2eMEZDQwCIV+LbH4MndFIUV7DzKnHxB5CGBLfjs7zpLoJ5n0/FKo4Tnd8gVbV2JZgA5e7eH97wkjNFAjZBpRVmeKvFYlZ5e8VCsLfCgEsWUp/HmYfBG7wQO5q1TtwB6X8OFyMtnKycPxQLowLz4rjGPYIZQwMwIDAQAB
Where,
-
v=DKIM1 specifies that version 1 of DKIM is in use.
-
k=rsa indicates the cryptographic algorithm (in this case, RSA)
-
p=…:contains the public key used to verify the email’s signature.
Steps to add a DMARC record to AWS DNS-Route 53
-
Use an online record generator to produce a valid DMARC record for your domain so that you can set the right policy and instruct the recipients’ servers on how to handle illegitimate emails sent from your domain. You can build a DMARC record online in a couple of minutes with the correct tags.
-
Copy the DMARC record type, record name, and value.
-
Go to your Amazon Route 53 account and click Create Record.
-
Add your DMARC record type, record name, and value to the corresponding fields.
Your DMARC record should look something like this-
v=DMARC1; p=none; rua=mailto:dmarc-reports@newdomain.com; ruf=mailto:dmarc-failures@newdomain
When you set up a DMARC record for the first time and are new to the email authentication journey, then don’t apply the stricter DMARC policies, as it will be difficult for you to handle false positives. start at p=none for at least a full quarter (90 days), monitor how everything unfolds, and gradually move to p=quarantine.
Topics
CTO
CTO of DuoCircle. Leads engineering for DMARC Report and DuoCircle's email security product portfolio.
LinkedIn Profile →Take control of your DMARC reports
Turn raw XML into actionable dashboards. Start free - no credit card required.