# Route 53
URL: https://samva.dev/docs/channels/email/dns-providers/route53

Use this guide when Amazon Route 53 hosts your domain's public DNS. A private hosted zone cannot publish the records Samva checks on the internet.

## Open your records in Samva [#open-your-records-in-samva]

In the [Samva dashboard](https://samva.dev/dashboard), open **Channels → Domains** and select your domain. If you have not added it yet, follow [Verify your sending domain](/docs/channels/email/verify-your-domain).

Keep the records table open. Sending requires a DKIM **TXT** record and an **MX** record plus an SPF **TXT** record at the custom return-path subdomain. Copy the names and values from your own table, including the MX priority. The examples below explain names; they are not replacement records.

## Select the public hosted zone [#select-the-public-hosted-zone]

Open the [Route 53 console](https://console.aws.amazon.com/route53/), choose **Hosted zones**, and select the public zone serving your domain. If you have multiple zones with the same name, use the one whose nameservers are delegated from the parent domain.

Choose **Create record** and use **Simple routing** with **Alias** turned off for these records.

## Enter the records [#enter-the-records]

| Route 53 field | What to enter |
| --- | --- |
| **Record name** | The part of Samva's name before the hosted-zone suffix. |
| **Record type** | TXT for DKIM and SPF; MX for the return path. |
| **Value** for TXT | Samva's complete TXT value enclosed in double quotes; see the long-key instructions below. |
| **Value** for MX | The priority, a space, then Samva's MX destination. |
| **TTL (seconds)** | The TTL in Samva, normally `3600`. |

For a zone of `example.com`, enter `mail` for `mail.example.com`. For `mail.updates.example.com`, enter `mail.updates`. If the hosted zone itself is `updates.example.com`, enter `mail`. Leave the name empty only for a record at the hosted-zone root.

An MX value has this shape. Replace the example destination and priority with the values in Samva:

```text
10 mail-server.example.net
```

Keep existing values when editing a record set. Samva's return-path MX should not replace the MX records used by your existing inbox.

## Format a long DKIM TXT value [#format-a-long-dkim-txt-value]

Route 53 limits each quoted string to 255 characters. Split the complete DKIM value into consecutive chunks of at most 255 characters, enclose each chunk in double quotes, and place them **on the same line**, separated by spaces:

```text
"first consecutive chunk" "next consecutive chunk"
```

The example shows formatting only. Copy every character of the actual key in order, without adding spaces inside the chunks. Separate lines create separate TXT values, which is not the same as splitting one DKIM value into quoted strings.

Choose **Create records** after entering the required rows. For a CNAME shown by another Samva feature, use a non-alias **CNAME** record with the full destination as its value.

## Check verification in Samva [#check-verification-in-samva]

Return to the domain page and choose **Check now** below the records when it is available. Samva also checks in the background. A record marked **Found** has been detected; the domain finishes setup when the page says **Ready to send**.

A record shows **Not checked** until Samva has read it. If a record shows **Missing** or **Different value**, compare its saved name, type, and full value with Samva. DNS caches can take time to refresh after a correction. Keep the required records in place after verification so email authentication continues to work.

For console details, see [Creating Route 53 records](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-creating.html). AWS documents [TXT formatting](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html#TXTFormat) separately.