How to Set Up a Custom Email with Cloudflare

How to Set Up a Custom Email with Cloudflare

What you need to have before you start
I assume that you already have a domain, let’s call it “yourdomain.com”. Specifically, you need to have accessibility to connect your domain with Cloudflare and setup DNS records there. A classic example of that is having a domain on some domain registrar (like GoDaddy, Namecheap), and adding your domain to Cloudflare by setting DNS records provided by Cloudflare on your domain registrar account.

Adding a domain to Cloudflare involves updating your domain’s DNS nameservers to point to Cloudflare’s nameservers. Once the domain is added, Cloudflare acts as an intermediary for web traffic, providing security features like DDoS protection, firewall, and SSL encryption, as well as performance enhancements through caching and content optimization.

If you haven’t done that yet, here’s the official video on YouTube on how to connect your domain to Cloudflare.

Additionally, Cloudflare manages DNS records for your domain, allowing you to control how traffic is routed and ensuring reliable delivery of services like email.
So, our work in this article will be focusing exactly on that: how to setup your domain on Cloudflare Email.

Cloudflare Email has been one of the services of Cloudflare since 2021, which can be used for free (as of now, at least).

Email Routing on Cloudflare

Cloudflare Email Routing is designed to simplify the way you create and manage email addresses, without needing to keep an eye on additional mailboxes. With Email Routing, you can create any number of custom email addresses to use in situations where you do not want to share your primary email address, such as when you subscribe to a new service or newsletter. Emails are then routed to your preferred email inbox, without you ever having to expose your primary email address. (Cloudflare Docs)

Sign in to your Cloudflare account and navigate to the Dashboard.
Choose and click on the desired website.


Cloudflare: Websites

Navigate to Email Routing for the selected website.


Cloudflare: Email Routing

If you don’t have email routing configured, you may see something similar to the screenshot above. Click “Get started”. You may be able to create your own address to receive emails and take action.

We’ll skip this without creating our own address because we’ll do it manually.

Cloudflare: Custom Email

By default, email routing is disabled, so you need to enable it. Click the link to navigate to the Email Routing page.

Cloudflare: Email Routing

Submit it by clicking “Enable Email Routing”.

You can see them at the bottom of the Email Routing page.

Cloudflare: DNS records for Email Routing

Cloudflare: Enable Email Routing

After enabling it you should see something like this:

How to Catch-all address on Cloudflare

Now go to the Routes tab and create an email by clicking the “Catch-all address” button.

Now return to https://22.do/dash/domains to add a domain

You can get a forwarding email address, enter this forwarding email into Cloudflare

Cloudflare: Catch-all address (enabled)

Modify the Catch-all address

You should also get an email for confirming this action.Return to https://22.do/dash/domains, click to receive the verification email, and complete the verification process

Verify email address

Once you’ve verified the email address, you may get this page:

Now your domain has been successfully connected to our system. You can now use the API to retrieve your emails. For more detailed information, please refer to the documentation.

Leave a Reply

Your email address will not be published. Required fields are marked *