Custom domain email in Gmail: Cloudflare Email Routing + Resend
About 20 minutes · Updated September 27, 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
- In Resend, go to Domains → Add domain. Using a subdomain such as
send.yourdomain.comfor the bounce path is fine. Resend shows the exact records to add. - Add the records Resend lists (a DKIM TXT record, plus SPF/MX records for its bounce subdomain) in Cloudflare DNS. Keep Cloudflare's own Email Routing MX records on the root domain.
- Click Verify. It usually takes a few minutes.
- Optional but recommended: add a DMARC record such as
_dmarc TXT "v=DMARC1; p=none;"if you don't have one.
If your domain already has an SPF record from Email Routing, don't create a second SPF record on the same name. Resend's SPF goes on its bounce subdomain, so the two don't conflict.
Step 3: Create an API key
In Resend, open API Keys → Create API key with Sending access, optionally limited to your domain. Copy it now, because it's only shown once.
Step 4: Send from Gmail
- Install CustomFrom in Chrome or Edge.
- In its settings, add
you@yourdomain.com, choose Resend, and paste the API key. Click Send test email. - Open Gmail and compose a message. Pick your address in the From bar, 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.
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. CustomFrom fully supports SES, Postmark and Mailgun too.