Skip to main content

Add Domain to Resend

First, log in to your Resend Account and add a domain. Domain Details
It is best practice to use a subdomain (updates.example.com) instead of the root domain (example.com). Using a subdomain allows for proper reputation segmentation based on topics or purpose (e.g. marketing) and is especially important if receiving emails with Resend.

Log in to Hetzner

Log in to your Hetzner account:
  1. Choose your Domain from the Your Zones list.
  2. Select the Records tab to get to the page to manage DNS records.
Domain Details

Add MX SPF Record

In the Create Record section on Hetzner copy and paste the values MX from Resend:
  1. On the Type page, choose MX.
  2. Type send for the Name of the record.
  3. Select the Value field.
  4. Use the default Priority of 10.
  5. Copy the MX Value from Resend into the Mail server field.
  6. Select the TTL of 1800.
  7. Select Add Record.
Hetzner requires your MX record to have a trailing period when adding. Resend will include the trailing period when copying. Removing the period will cause the verification to fail.
Domain Details Domain Details Below is a mapping of the record fields from Resend to Hetzner:
HetznerResendExample Value
TypeTypeMX Record
NameNamesend
Mail serverValuefeedback-smtp.us-east-1.amazonses.com.
TTLTTL1800
PriorityPriority10
Do not use the same priority for multiple records. If Priority 10 is already in use on another record, try a higher value 20 or 30.

Add TXT SPF Record

On the same Create Record section:
  1. On the Type page, choose TXT.
  2. Type send for the Name of the record.
  3. Copy the TXT Value Resend into the Value field.
  4. Select the TTL of 1800.
  5. Select Add Record.
Omit your domain from the record values in Resend when you paste. Instead of send.example.com, paste only send (or send.subdomain if you’re using a subdomain).
Domain Details Domain Details Below is a mapping of the record fields from Resend to Hetzner:
HetznerResendExample Value
TypeTypeTXT Record
NameNamesend
ValueValue"v=spf1 include:amazonses.com ~all"
TTLTTL10800

Add TXT DKIM Records

On the same Create Record section:
  1. On the Type page, choose TXT.
  2. Type resend._domainkey for the Name of the record.
  3. Copy the TXT Value Resend into the Value field.
  4. Select the TTL of 1800.
  5. Select Add Record.
Omit your domain from the record values in Resend when you paste. Instead of resend._domainkey.example.com, paste only resend._domainkey (or resend._domainkey.subdomain if you’re using a subdomain).
Domain Details Domain Details Below is a mapping of the record fields from Resend to Hetzner:
HetznerResendExample Value
TypeTypeTXT Record
NameNamesend
ValueValuep=example_demain_key_value
TTLTTL1 hour

Receiving Emails

If you want to receive emails at your domain, toggle the “Receiving” switch on the domain details page. Enable Receiving Emails for a verified domain
When you enable Inbound on a domain, Resend receives all emails sent to that specific domain depending on the priority of the MX record. For this reason, we strongly recommend verifying a subdomain (subdomain.example.com) instead of the root domain (example.com). Learn more about avoiding conflicts with your existing MX records.
In the Create Record section on Hetzner:
  1. On the Type page, choose MX.
  2. Type inbound (or whatever your subdomain is) for the Name of the record.
  3. Select the Value field.
  4. Use the default Priority of 10.
  5. Copy the MX Value from Resend into the Mail server field.
  6. Select the TTL of 1800.
  7. Select Add Record.
Below is a mapping of the record fields from Resend to Hetzner:
HetznerResendExample Value
TypeTypeMX Record
NameNameinbound
Mail serverContentinbound-smtp.us-east-1.amazonaws.com.
TTLTTL1800
PriorityPriority10
After verifying your domain, create a webhook to process incoming emails. For help setting up a webhook, how to access email data and attachments, forward emails, and more, see our guide on receiving emails with Resend.

Complete Verification

Now click Verify DNS Records on your Domain in Resend. It may take a few hours to complete the verification process (often much faster).

Troubleshooting

If your domain is not successfully verified, these are some common troubleshooting methods.
Review the records you added to Hetzner to rule out copy and paste errors.