Gmail account with custom domain using Cloudflare and Mailgun (free)
Having an email with @customdomain.com is important to level up your brand. You can use a paid service such as Google Workspace to achieve that. There is also another alternative solution, a free one, and I’ll talk about it here.
In this post, I’ll share my experience configuring a personal Gmail account, to make it able to receive and reply to any emails like usual, but using a custom domain.
And it costs $0, great right?!
Handling inbound mail
Say that my domain is managed via Cloudflare, and I use their email routing feature to re-route any incoming email that was originally directed to email@example.com, to firstname.lastname@example.org.
Btw, if you are using another domain provider, you can follow Jeremy Gale’s guide in the following link:
How to setup a custom domain for your Gmail address
We’ve all seen the comics about what your email address says about you, right? If not, let me refresh your memory:
To enable the mail routing, navigate to your Cloudflare domain page, go to
Email Routing, then toggle on the functionality.
Next, create your desired custom email address (in this post I’ll be using email@example.com), select
Send to an email as the action, and set firstname.lastname@example.org as the destination.
Thats it! now test it by sending one or two mail(s) to email@example.com. Cloudflare shall handle the rerouting process and eventually, you will receive it at firstname.lastname@example.org.
Ok, let's move forward to the next step, which is configuring the outbound.
Handling outbound mail
At this point, even though you are able to retrieve any emails through email@example.com on your firstname.lastname@example.org, you will not be able to reply to them using the custom domain email.