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
- A domain whose DNS is managed by Cloudflare (a free plan is fine)
- A Gmail account
- A free Resend account
Step 1: Receive mail with Cloudflare Email Routing
- In the Cloudflare dashboard, open your domain, then Email → Email Routing, and enable it. Cloudflare adds the MX and SPF records for you.
- Under Destination addresses, add your Gmail address and confirm it from the email Cloudflare sends.
- Under Routing rules, create
you@yourdomain.com → your Gmail. Optionally, add a catch-all rule. - Send a test message to
you@yourdomain.comfrom another account and check that it shows up in Gmail.
Step 2: Verify your domain in Resend
- 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.
- Open Domains → Add Domain. Enter the domain of your address,
yourdomain.com, not a subdomain: you'll send asyou@yourdomain.com, and a verified subdomain only covers addresses on that subdomain. Pick the region closest to you. - 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:
Type Name Value TXT resend._domainkeyYour DKIM key, starting p=MIGf…MX sendfeedback-smtp.us-east-1.amazonses.com, priority 10 (the region part matches the region you picked)TXT sendv=spf1 include:amazonses.com ~all - 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.
- 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
- Install CustomFrom in Chrome or Edge. Its setup checklist opens automatically (you can reopen it from the extension icon).
- Under Paste your API key, enter
you@yourdomain.com, your name and the key, and click Save. - Under Send a test email, enter your Gmail address and click Send test. Test emails don't start the free trial.
- 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
- “yourdomain.com isn't verified yet”: the records aren't visible to Resend yet. Check each one in Resend's Domains page, then wait a few minutes and send the test again.
- “Resend didn't accept this API key”: the key was cut off or deleted. Create a new one and paste the whole key.
- “This API key can't send from yourdomain.com”: the key is limited to a different domain. Create a key for this domain or for all domains.
- Test email lands in spam: common for a brand-new domain. Mark it “Not spam” and add the DMARC record above.
Tips
- Keep Gmail tidy: CustomFrom BCCs each sent message back to you. Create a Gmail filter for
from:(you@yourdomain.com) to:(me)that skips the inbox and applies a label such as “Sent (domain)”. - Several addresses: add each one in Cloudflare routing and in CustomFrom. They can all share one Resend domain.
- Prefer Amazon SES? It's cheaper at volume, but new accounts start in a sandbox, so request production access first. See the Amazon SES + Gmail guide. CustomFrom fully supports SES, Postmark and Mailgun too.
More guides: Custom domain in Gmail without WorkspaceAmazon SES + Gmail“Send mail as” is ending