you need to have accessibility to connect your domain with Cloudflare and setup DNS records there]

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.

Additionally, Cloudflare manages DNS records for your domain, allowing you to control how traffic is routed and ensuring reliable delivery of services like email.

you have Gmail account, and you have access to its email settings. Simply, if you just have a regular “youremail@gmail.com” email

When composing an email from Gmail with the sender set as “something@yourdomain.com”, Gmail utilizes Mailgun’s SMTP server through the provided credentials, transmitting the email. Mailgun then processes the message and forwards it to the recipient’s email server, likely involving DNS lookups to find the recipient’s server.

Emails sent to “something@yourdomain.com” are received by Cloudflare’s email servers, configured via MX records in the domain’s DNS settings. Cloudflare stores the received emails in the associated account, accessible through Gmail, which periodically connects to Cloudflare’s servers (using IMAP or POP3 protocols) to retrieve new messages, enabling seamless access to incoming emails.

https://developers.cloudflare.com/email-routing/

Skip get started

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

Tipo de registroNome do hostPrioridadeValorStatus
MXexample.com11route1.mx.cloudflare.net.Adicionado
MXexample.com97route2.mx.cloudflare.net.Adicionado
MXexample.com60route3.mx.cloudflare.net.Adicionado
TXTexample.com”v=spf1 include:_spf.mx.cloudflare.net ~all”Adicionado

Confirm the addition of the dns register, cloudflare will add it automaticaly to your dns.

Create a Custom Email on Cloudflare

Regras de roteamento - > criar endereço