How to configure a domain email for sending and receiving emails using Cloudflare

Click on Email in the Cloudflare backend to start configuring (the new version menu is on the left, slightly different from the figure in the following text). Click Add Record to import Cloudflare's own MX server record information in one go. If you have added MX records from other email service providers in the DNS resolution records, you need to delete the original MX records first.

You need to add three records first, which look like this:

MX Records

The blackened part is your website. Please use the domain name or simply write @."

Next, you must tell Cloudflare which Email using your root domain name you want to forward to which existing Email of yours:

Email Routing

I wrote this based on my memory, so some details are unclear. The focus is on the Google Mail settings. (In any case, you should verify your Destination email first, preferably the same as the Email you are using with Cloudflare.)

Alright, at this point, you have completed the forwarding of incoming emails.

Next, we will set up the forwarding of outgoing emails, that is, sending emails on behalf of your domain name's Email to others.


We will use Google Mail to set up the forwarding in this example. Please note that you should use your primary Email, your main Google account, to set up the forwarding. I failed when I used a subaccount before. This method only allows you to use the primary account to set up the forwarding.


First, obtain your Google account-specific app password by clicking on the following link:

https://myaccount.google.com/apppasswords

App passwords

Then, under Select Device, choose Other and change it to look like mine. This way, you can enter a name that you can easily remember later.

Add another email address.

Next, in Gmail Settings - Accounts and Import, find the Send Mail As section and click 'Add another email address' as shown in the image.

Clicking 'Add another email address will bring up the following pop-up window:

Name and Email address.

  • The email name will be used as the default name for sending emails later and will be displayed publicly, so please fill it in carefully. 
  • The domain email address must be configured as a prefix domain email in Cloudflare first to confirm that it can receive emails.

username and password

Proceed to the next step:

  1. SMTP needs to be filled in as smtp.gmail.com. 
  2. Keep the default port, or change the port accordingly if you need to change the protocol. 
  3. The username should be your original Gmail username and the information in the email address before @gmail.com. 
  4. The password must be the dedicated app password obtained in the previous step.

You can proceed to the next page if the information is filled in successfully. Gmail will receive an email with the corresponding verification code, which you can enter to verify.

After the configuration is completed, you can "select" the custom email when sending emails (usually, it is not selectable). You can also set this email address as the default sending address in Gmail Settings.


You can contact me by leaving a comment if you have any doubts.

Comments

Popular posts from this blog

How can I switch hiragana to romaji on Chromebook with shortcuts?

How should I upload images to Blogger?