Custom domain email in Gmail: Cloudflare Email Routing + Resend

About 20 minutes · Updated October 8, 2026

This guide sets up you@yourdomain.com so that mail arrives in your existing Gmail inbox and you reply from Gmail as that address. It doesn't use Gmail's “Send mail as”, which ends in January 2027. Receiving and typical personal sending volumes are free.

What you need

Step 1: Receive mail with Cloudflare Email Routing

  1. In the Cloudflare dashboard, open your domain, then Email → Email Routing, and enable it. Cloudflare adds the MX and SPF records for you.
  2. Under Destination addresses, add your Gmail address and confirm it from the email Cloudflare sends.
  3. Under Routing rules, create you@yourdomain.com → your Gmail. Optionally, add a catch-all rule.
  4. Send a test message to you@yourdomain.com from another account and check that it shows up in Gmail.

Step 2: Verify your domain in Resend

  1. Create a free Resend account. The free plan sends 3,000 emails a month (100 a day) from up to 3 domains, with no card needed.
  2. Open Domains → Add Domain. Enter the domain of your address, yourdomain.com, not a subdomain: you'll send as you@yourdomain.com, and a verified subdomain only covers addresses on that subdomain. Pick the region closest to you.
  3. Resend now shows the records to add. Because your DNS is on Cloudflare, the quickest way is Sign in to Cloudflare: approve the request and Resend adds the records for you. To add them by hand instead, create these in Cloudflare DNS, copying the exact values from Resend:
    TypeNameValue
    TXTresend._domainkeyYour DKIM key, starting p=MIGf…
    MXsendfeedback-smtp.us-east-1.amazonses.com, priority 10 (the region part matches the region you picked)
    TXTsendv=spf1 include:amazonses.com ~all
  4. Click Verify DNS Records. The status goes from Not Started to Pending to Verified, usually within a few minutes. It can take up to 72 hours; if it shows Failed, fix the records and click Restart verification.
  5. Optional but recommended: add a DMARC record such as _dmarc TXT "v=DMARC1; p=none;" if you don't have one.

These records live on send and resend._domainkey, so they don't touch the MX and SPF records Email Routing added on the root domain. Keep those as they are, and don't create a second SPF record on the root.

Step 3: Create an API key

In Resend, open API Keys → Create API Key. Choose Sending access, optionally limited to your domain. Copy the key (it starts with re_) right away, because Resend shows it only once.

Step 4: Send from Gmail

  1. Install CustomFrom in Chrome or Edge. Its setup checklist opens automatically (you can reopen it from the extension icon).
  2. Under Paste your API key, enter you@yourdomain.com, your name and the key, and click Save.
  3. Under Send a test email, enter your Gmail address and click Send test. Test emails don't start the free trial.
  4. Open Gmail and compose a message. Your address is already picked in the From bar at the top; write as usual and press Send.

Replies you receive come back through Cloudflare into Gmail. When you answer them, CustomFrom picks your domain address automatically and keeps the reply in the same thread.

If something goes wrong

Tips

More guides: Custom domain in Gmail without WorkspaceAmazon SES + Gmail“Send mail as” is ending