Skip to content

Software development

Get Branded Emails Like you@yourdomain.com Using Gmail + Cloudflare (Free Step-by-Step Guide)

Paying for Google Workspace just to send email as you@yourdomain.com isn’t your only option anymore. Cloudflare’s free Email Routing — combined with its newer Email Sending feature — lets you receive and send branded email straight from the Gmail account you already use, at no extra cost beyond…

· Updated 4 min read

Paying for Google Workspace just to send email as you@yourdomain.com isn’t your only option anymore. Cloudflare’s free Email Routing — combined with its newer Email Sending feature — lets you receive and send branded email straight from the Gmail account you already use, at no extra cost beyond owning the domain.

Here’s the complete setup, start to finish.

What you’ll need

  • A domain name
  • A free Cloudflare account
  • Your existing Gmail account

Step 1: Onboard your domain on Cloudflare

  1. Log in to the Cloudflare dashboard and click Add a site.
  2. Enter your domain name and select the Free plan.
  3. Cloudflare scans and imports your existing DNS records — review them.
  4. Cloudflare gives you two nameservers. Go to your domain registrar and replace the existing nameservers with these.
  5. Wait for Cloudflare to confirm the domain is active (usually 5–15 minutes, occasionally up to 24 hours).

Step 2: Add a destination email address

This tells Cloudflare where incoming mail for your domain should actually land — your real inbox.

  1. In your domain’s dashboard, go to Email Routing.
  2. Click Get started if this is your first time — Cloudflare automatically adds the MX records your domain needs.
  3. Open the Destination addresses tab and click Add destination address.
  4. Enter your Gmail address and save.
  5. Cloudflare emails that Gmail address a confirmation link — click it to verify.

Step 3: Add a sending domain (so you can send, not just receive)

Email Routing alone only handles incoming mail. To send as your domain, you enable Cloudflare’s Email Sending on the same domain.

  1. In the Cloudflare dashboard, go to Compute > Email Service > Email Sending.
  2. Click Onboard Domain and select your domain from the list.
  3. Review the DNS records Cloudflare is about to add, then click Done. Cloudflare automatically creates:
  • MX records on a cf-bounce subdomain (for bounce handling)
  • An SPF record authorizing Cloudflare to send on your behalf
  • A DKIM record for cryptographic signing
  • A DMARC policy record
  1. Check Email Sending > Settings > DNS records — each record should show as Locked once verified. This is usually quick, but can take up to a few hours to fully propagate.

Step 4: Create your routing rule

This is what actually creates your branded address (e.g. you@yourdomain.com) and connects it to your inbox.

  1. Back in Email Routing, open the Routing rules tab.
  2. Click Create address.
  3. Type the custom address you want — for example you@yourdomain.com.
  4. Set the action to Send to an email and choose the destination address you verified in Step 2.
  5. Save the rule. Incoming mail to that address now lands straight in your Gmail inbox.

Step 5: Generate an API token for SMTP

To let Gmail send through Cloudflare’s relay, you need an API token that acts as the SMTP password.

  1. Go to My Profile > API Tokens in Cloudflare (click your profile icon, top right).
  2. Click Create Token > Custom token.
  3. Give it a name (e.g. “Gmail SMTP relay”) and grant the Email Sending: Edit permission, scoped to your domain/account.
  4. Create the token and copy it immediately — Cloudflare only shows it once.

Step 6: Configure the account in Gmail

  1. In Gmail, open Settings > See all settings > Accounts and Import.
  2. Under Send mail as, click Add another email address.
  3. Enter your name and your branded address (you@yourdomain.com).
  4. Uncheck “Treat as an alias” — this is what allows replies to go out properly as the custom address.
  5. Click Next step and enter the SMTP details:
  • SMTP Server: smtp.mx.cloudflare.net
  • Port: 465
  • Username: api_token
  • Password: the API token you copied in Step 5
  • Select Secured connection using SSL
  1. Click Add Account. Gmail sends a verification email to your new address — since it’s routed back to your Gmail inbox (Steps 2–4), you’ll receive it there. Click the confirmation link.

Step 7: Set your branded address as default

  1. Back in Accounts and Import > Send mail as, find your new address in the list.
  2. Click make default next to it.
  3. Every new email you compose will now send from you@yourdomain.com instead of your Gmail address.

Step 8: Make replies go out from the branded address too

By default, Gmail may reply from whichever address received the message — which is actually what you want here, but it’s worth confirming:

  1. In Settings > Accounts and Import, scroll to When replying to a message.
  2. Select Reply from the same address the message was sent to.
  3. This ensures that when someone emails you@yourdomain.com, your reply also goes out from you@yourdomain.com — not your personal Gmail address.

Step 9: Send a test

Compose a new email, confirm the “From” field shows your branded address, and send it to another account you control. Check that it arrives without landing in spam, and that replying keeps the conversation on your branded address.

Troubleshooting

  • Verification email never arrives: double-check your routing rule (Step 4) actually forwards to the destination you verified in Step 2.
  • DNS records stuck “unverified”: give it a few hours — propagation can lag, especially right after first adding the domain.
  • Mail lands in spam: confirm the SPF, DKIM and DMARC records from Step 3 all show as active/locked before sending real mail.

Wrapping up

With this setup, every email you send and receive looks fully professional — you@yourdomain.com — while you keep using the same Gmail inbox you already know, with no paid mailbox subscription involved.

Comments

  • Software development

    IT Startups in Kerala 2025

    Kerala, often known as “God’s Own Country,” is rapidly evolving into a hub for IT startups and technology-driven innovation. With its skilled workforce, investor-friendly policies, and supportive ecosystem, Kerala is witnessing a boom in IT startups across various sectors. Here, we list the top 10…

    Read article

    Abhilash Sivaraman · 27 Dec 2024 · 3 min read

  • Software development

    SEO Best Practices: How can CMS tools help us improve our search engine ranking?

    Introduction: In today’s digital world, having a strong online presence is essential for both individuals and businesses. To increase visibility on search engines, search engine optimisation (SEO) is essential. The Content Management System (CMS) is one of the key instruments supporting this…

    Read article

    Abhilash Sivaraman · 13 Oct 2023 · 4 min read

  • Software development

    Customer Experience: What Innovations Can We Integrate to Enhance the Customer Journey on Our eCommerce Platform?

    Introduction A great customer experience is essential for success in the cutthroat eCommerce market of today. Every experience a customer has with your eCommerce platform is significant and affects how they view your brand. This article explores the technological advancements that can be used into…

    Read article

    Abhilash Sivaraman · 27 Sept 2023 · 3 min read

  • Software development

    The Ultimate Guide to Optimizing Your Shopify Store for SEO

    Having a Shopify store is a terrific method to launch your online business in the constantly changing world of e-commerce. However, merely having a store doesn’t cut it; you also need to make sure that customers can find it. Search engine optimization (SEO) is useful in this situation. This…

    Read article

    Abhilash Sivaraman · 8 Sept 2023 · 6 min read

  • Shopify Agentic Commerce explained — blog cover image

    Shopify Agentic Commerce explained

    Shopify Agentic Commerce lets AI assistants like ChatGPT, Gemini, Copilot and Meta AI discover products, build carts and complete checkouts inside chats. Here's how it works.

    Read article

    13 Nov 2026 · 2 min read

Have a project in mind?

Book a free intro call and let’s talk about your website or web app.