Skip to content
BoWen Chai's Notes
Go back

Forward Domain Email with Cloudflare

Updated:
AIWriteEdit page

If your domain already uses Cloudflare DNS, Cloudflare Email Routing lets you create unlimited receiving addresses (shopping@example.com, github@example.com, hi@example.com) and forward them to an existing inbox without running a mail server.

What it does (and doesn’t)

Email Routing is an inbound forwarding layer, not a mailbox or SMTP server. When you onboard a domain, Cloudflare adds the required MX, SPF, and DKIM records automatically. DNS propagation usually takes 5–15 minutes (up to 24 hours).

Inbound only by default

Replies sent from Gmail go out from your Gmail address, not your custom domain. If you need outbound mail from @example.com, pair this with an SMTP provider (e.g., Resend, Fastmail, or Gmail’s “Send mail as” SMTP).

Manual setup

  1. Open Compute → Email Service → Email Routing, click Onboard Domain, and pick your domain.
  2. Under Destination Addresses, add your target inbox and click the verification link Cloudflare sends.
  3. Under Routing Rules, create a custom address (e.g., work@example.com), choose Send to an email, and select the verified destination.
  4. Test from a different account—sending from the same Gmail address that receives the forward often gets deduplicated by Gmail. Check Spam if the first test doesn’t show up.

Catch-all and subaddressing

Cloudflare allows up to 200 individual routing rules per domain. If you don’t want to maintain rules manually, enable the catch-all rule so any @example.com address forwards to your destination inbox. You can also enable subaddressing (me+shopping@example.com), which preserves the +tag for inbox filters or Email Workers.

Configuring it with an agent

If you have an agent connected to Cloudflare (see Cloudflare’s agent setup guides), you can delegate the DNS and routing setup with a prompt like:

Set up Cloudflare Email Routing for example.com.
Forward all incoming addresses to me@gmail.com using a catch-all rule.
Show me every DNS and routing change before applying it.
Do not remove or replace existing mail records without my approval.

You only have to click the destination verification email yourself. If the domain already uses another mail provider, inspect existing MX records before approving any DNS change.


Edit page
Share this post:

Previous Post
胶卷曝光速查:不同拍摄场景该怎样设置 EI
Next Post
Heat Waves Inspired Arrangement in Strudel