Cloudflare Email Routing to Gmail: free setup, step by step

To receive hello@example.com in Gmail for free: put the domain's DNS on Cloudflare, onboard it to Email Routing, verify your Gmail address as a destination, and add a rule for hello. This is receive-only. Cloudflare forwards mail to your inbox; it doesn't give you a mailbox or a way to reply as that address.
Cloudflare's pricing page lists inbound Email Routing as "Unlimited" on both the Workers Free and Workers Paid plans. Google says forwarding into Gmail keeps working after January 2027. Replying is the part that changes; see the last section.
Step 0: check what you have
You need three things:
- A domain whose DNS is hosted on Cloudflare. Email Routing requires Cloudflare DNS.
- Access to that Cloudflare account.
- A Gmail inbox you can open.
Open DNS > Records and look for MX records. If the domain already receives mail at Google Workspace, Microsoft 365 or another provider, stop. Onboarding fails with error 2008, "Non-Cloudflare MX records exist", because Email Routing needs exclusive control of the root MX records. Removing them is a mail migration, not a tweak.
Also look at any existing SPF record (a TXT record starting v=spf1). A domain can have only one. You'll merge into it in step 3 if it exists.
Set up forwarding
Sign in to the Cloudflare dashboard and select the account that holds your domain.
Go to Compute > Email Service > Email Routing.
Select Onboard Domain and choose your domain. Review the DNS records Cloudflare will add, then select Done.
Cloudflare adds MX records (they send incoming mail to Cloudflare), an SPF TXT record and a DKIM TXT record at the root of your domain. The dashboard shows the exact values. If you already have an SPF record, don't keep two. Cloudflare says multiple SPF records will prevent the service from working. Merge the Cloudflare include into your existing record, keeping your other senders.
Go to Compute > Email Service > Email Routing > Destination Addresses. Enter your Gmail address in the form and submit it.
Open that Gmail inbox, find Cloudflare's message and select Verify email address. If it's missing, check Spam.
Back in Email Routing, select your domain, open the Routing Rules tab and select Create routing rule.
Set Email pattern to
helloand pick your domain. Set Action to Send to an email, set Destination to your verified Gmail address, then select Save.
Repeat steps 6–7 for each address (sales, info). Different addresses can point to different destinations. Don't create two rules with the same pattern: only the one listed first in the dashboard processes mail. Destinations are shared across the account, and deleting one disables every rule that uses it.
Optional: catch-all
A catch-all handles mail to any address on your domain that doesn't match an enabled named rule. Without one, Cloudflare rejects those messages.
- Go to Compute > Email Service > Email Routing and open Routing Rules.
- Enable Catch-all rule so it shows Active.
- In the Action drop-down, choose Send to an email, pick your verified destination and select Save.
A catch-all rescues typos like helo@. It also accepts every guessed name that spammers try. If you don't need it, skip it. Named rules always win over the catch-all.
Optional: plus tags
Cloudflare calls plus tags subaddressing. Go to Compute > Email Service > Email Routing > Settings and enable it. Mail to hello+events@example.com then matches your hello@ rule. A rule written for the exact tagged address takes precedence. The setting applies to the whole domain.
Tags are labels, not secrets. Anyone who knows hello@ can type hello+anything@.
Stop Gmail filing it in Spam
Send a test first (next section). If a legitimate message lands in Spam, open it and select Not spam. For a sender you trust, Google documents a filter that never sends their mail to Spam:
- On a computer, open Gmail. In the search bar, select Show search options.
- Next to From, enter the sender's address. Select Search to check the filter matches the right messages.
- Reopen the search options and select Create filter at the bottom.
- Tick Never send it to Spam, then select Create filter.
These are Google's documented steps. Keep the filter narrow. One filter covers one sender, and a filter on your public address would also exempt spam sent to it. Inbox placement is never guaranteed. For why forwarded mail gets flagged, read why forwarded email reaches Gmail Spam.
Test it
Send a message from a different account to hello@example.com with a distinctive subject. Then:
- Check the Gmail inbox and Spam.
- If you enabled plus tags, send to
hello+test@example.com. - If you enabled the catch-all, send to an address with no rule.
- Open the Cloudflare Activity log and expand the events. Statuses include Forwarded, Rejected and Delivery failed (docs).
| Symptom | Check |
|---|---|
| Can't onboard the domain | Existing non-Cloudflare MX records (error 2008). Plan a migration before deleting anything. |
| No verification email | Spam folder, then resend from Destination Addresses. |
| One address bounces | Rule is enabled, spelling, destination verified. With no catch-all, unmatched mail is rejected. |
| Plus tag fails | Subaddressing enabled? Is there an exact rule for that tag? |
| Logged as Forwarded, not in Gmail | Search Gmail and Spam. Check the event's authentication details before touching DNS. |
DMARC note: run dig TXT _dmarc.example.com +short and write down any existing policy before you change mail setup. If you later enable Cloudflare Email Sending, it adds a p=reject DMARC record when none exists, which can break other senders for your domain. See the DMARC p=reject gotcha.
Receiving works after 2027; replying needs a new plan
Forwarding gets mail in. It doesn't make Gmail send as hello@example.com. From January 2027 Gmail ends "Send as" for third-party addresses on web and mobile. Google also says: "You can configure your third-party provider to auto-forward messages to your Gmail address." Gmail-to-Gmail aliases and Google Workspace "Send as" aren't affected. So the old pattern of forwarding plus third-party Send as loses its sending half. Details are in what is changing in Gmail, and the alternatives compared covers your options. If several people need real mailboxes, use Google Workspace or another mailbox host.
MailAmigo is built for one case: an agency whose staff want to keep pressing Reply in Gmail while customers see the business address. By design, a Cloudflare Worker in your own account relays the reply. It's release candidate 0.1.0, and the first live pilot is pending. It supports one responsible inbox per address, not shared inboxes, and new emails, forwards and Cc/Bcc replies go out from the personal Gmail address. It relies on Cloudflare Email Sending, which is in beta. Cloudflare's terms describe it for transactional email. We still need Cloudflare to confirm whether those terms cover person-to-person relay.
Managing several client domains and want your coding agent to set this up with your approval at each step? See MailAmigo and the agent skill.
Sources
All checked 30 Nov 2026.
- Cloudflare: Route emails
- Cloudflare: Email Service pricing
- Cloudflare: Destination addresses
- Cloudflare: Routing rules, catch-all and subaddressing
- Cloudflare: Troubleshooting
- Cloudflare: Activity log
- Cloudflare: Developer Platform service-specific terms
- Google: Fix issues with valid emails in Spam
- Google: Changes to third-party email account support in Gmail


