Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

On this pageOverview

Cloudflare

First, log in to your Resend Account and add a domain.

Domain Details

The fastest way to verify your domain on Cloudflare is using the Sign in to Cloudflare button on Resend. This uses Domain Connect to automatically configure your DNS records.

  1. Go to your Domains page in Resend.
  2. (Optional) If you want to receive emails, select Manual setup and toggle the "Receiving" switch on the domain details page. (Learn more below)
  3. Click Sign in to Cloudflare button.
  4. Authorize Resend to access your Cloudflare DNS settings.
  5. The DNS records will be added automatically.

Video

That's it. Your domain will be verified within a few minutes.

If you prefer to add DNS records manually, follow these steps.

Log in to your Cloudflare account and go to the DNS Records of your domain.

Domain Details

Click "Add Record" on Cloudflare:

  1. Set the Type to MX.
  2. Type send for the Name of the record.
  3. Copy the MX Value from Resend into the Mail Server field.
  4. Use the default Auto for TTL.
  5. Add 10 for the Priority.
  6. Select Save.

Domain Details

Domain Details

Below is a mapping of the record fields from Resend to Cloudflare:

Cloudflare Resend Example Value
Type Type MX
Name Name send
Mail Server Content feedback-smtp.us-east-1.amazonses.com
Priority Priority 10

Click "Add Record" on Cloudflare:

  1. Set the Type to TXT.
  2. Type send for the Name of the record.
  3. Copy the TXT Value Resend into Content field.
  4. Use the default Auto for TTL.
  5. Select Save.

Domain Details

Domain Details

Below is a mapping of the record fields from Resend to Cloudflare:

Cloudflare Resend Example Value
Type Type TXT
Name Name send
Content Content "v=spf1 include:amazonses.com ~all"
TTL - Auto

Click "Add Record" on Cloudflare:

  1. Set the Type to TXT.
  2. Type resend._domainkey for the Name of the record.
  3. Copy the TXT Value Resend into Content field.
  4. Use the default Auto for TTL.
  5. Select Save.

Domain Details

Domain Details

Below is a mapping of the record fields from Resend to Cloudflare:

Cloudflare Resend Example Value
Type Type TXT
Name Name resend._domainkey
Target Content p=example_domain_key_value
Proxy Status - DNS Only (disabled)
TTL - Auto

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

Click “Add Record” on Cloudflare:

  1. Set the Type to MX.
  2. Type inbound (or whatever your subdomain is) for the Name of the record.
  3. Copy the MX Value from Resend into the Mail Server field.
  4. Use the default Auto for TTL.
  5. Add 10 for the Priority.
  6. Select Save.

Below is a mapping of the record fields from Resend to Cloudflare:

Cloudflare Resend Example Value
Type Type MX
Name Name inbound
Mail Server Content inbound-smtp.us-east-1.amazonaws.com
Priority Priority 10

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.

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

If your domain is not successfully verified, these are some common troubleshooting methods.

Cloudflare returns 'Code: 1004' when adding CNAME Records.

Confirm your proxy settings are set to DNS Only on the record you are adding.

Resend shows my domain verification failed.

Review the records you added to Cloudflare to rule out copy and paste errors.

It has been longer than 72 hours and my domain is still Pending.
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu