Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
loading
  1. Home
  2. Add on Services
  3. How to configure DNS records for email in Cloudflare
Updated on June 21, 2024

Add on Services

  • Folder icon closed Folder open iconHow to back up your data using Dropmysite
  • Folder icon closed Folder open iconHow to monitor blacklisted sites using Dropmysite
  • Folder icon closed Folder open iconHow to maximize Dropmysite backup storage space
  • Folder icon closed Folder open iconHow to restore your data using Dropmysite
  • Folder icon closed Folder open iconWhat is the Cloudflare CDN?
  • Folder icon closed Folder open iconHow to activate Cloudflare
  • Folder icon closed Folder open iconUsing SSL with Cloudflare
  • Folder icon closed Folder open iconTroubleshooting Cloudflare connections
  • Folder icon closed Folder open iconHow to use Cloudflare to defend against DDoS attacks
  • Folder icon closed Folder open iconSetting up Let's Encrypt and Cloudflare Universal SSL for end-to-end encryption
  • Folder icon closed Folder open iconHow to turn off Cloudflare temporarily for maintenance or development
  • Folder icon closed Folder open iconSetting up cPanel SSL and Cloudflare Universal SSL for end-to-end encryption
  • Folder icon closed Folder open iconHow to troubleshoot SSL certificate renewals for Cloudflare-enabled domains
  • Folder icon closed Folder open iconHow to clear the Cloudflare cache
  • Folder icon closed Folder open iconDiscontinuation of Cloudflare CDN cPanel and Plesk plugins
  • Folder icon closed Folder open iconHow to configure DNS records for email in Cloudflare
  • Folder icon closed Folder open iconRefer-a-friend program
  • Folder icon closed Folder open iconAffiliate program information
  • Folder icon closed Folder open iconHow to use the QUIC.cloud CDN with WordPress
  • Folder icon closed Folder open iconUsing Cloudflare
  • Folder icon closed Folder open iconSecure Sockets Layer (SSL) certificates information
  • Folder icon closed Folder open iconWHMCS hosting information
  • Folder icon closed Folder open iconHow to become a domain and SSL reseller with eNom
  • Folder icon closed Folder open iconHow to activate an SSL certificate as an eNom reseller
  • Folder icon closed Folder open iconHostvento Hosting promotions
  • Folder icon closed Folder open iconHow to order a cPanel license
  • Folder icon closed Folder open iconHow to configure OpenSRS access for WHMCS
  • Folder icon closed Folder open iconHow to sign up for a MailChimp account
  • Folder icon closed Folder open iconDropmysite cPanel plugin
  • Folder icon closed Folder open iconHow to order a WHMCS license
  • Folder icon closed Folder open iconHow to order a Blesta license
  • Folder icon closed Folder open iconHow to reset the administrator password in WHMCS
  • Folder icon closed Folder open iconHow to remove a banned IP address in WHMCS
  • Folder icon closed Folder open iconQUIC.cloud

How to configure DNS records for email in Cloudflare

Estimated reading: 4 minutes 411 views

This article describes how to configure DNS records in Cloudflare so your domain’s email works correctly.Table of Contents

  • DNS records in Cloudflare
  • Adding DNS records to Cloudflare

DNS records in Cloudflare

When you add a domain to Cloudflare, in most cases it automatically scans and imports your domain’s DNS records. You do not need to take any further action.

There may be occasions however, when you must manually add records to Cloudflare to ensure your email continues to function correctly. For example, if a domain’s TXT record for SPF is deleted or updated with the domain registrar, Cloudflare may not detect this change. In this case, you would need to manually add the TXT record in Cloudflare.

Adding DNS records to Cloudflare

There are three primary DNS records related to email:

  • MX (Mail Exchanger) record: Most domains have multiple MX records.
  • SPF (Sender Policy Framework) record: This is a TXT record.
  • DKIM (DomainKeys Identified Mail) record: This is a TXT record.

To configure these records in Cloudflare, follow these steps:

  1. Get the current values of the DNS records in cPanel:
    • Log in to cPanel.If you do not know how to log in to your cPanel account, please see this article.
    • On the Tools page, in the Domains section, click Zone Editor:cPanel - Domains - Zone Editor icon
    • Under Domains, locate the domain for which you want to add a record, and then click Manage.
    • Note the values for the MX, SPF, and DKIM records.
  2. Go to https://dash.cloudflare.com/login and log in to your Cloudflare account.
  3. On the Home page, click the domain:
    Cloudflare - Account home page
  4. In the left sidebar, click DNS:
    Cloudflare - Account sidebar - DNS
  5. Add the MX record:
    • In the DNS management section, click Add record:Cloudflare - Account - Add record
    • In the Type list box, select MX:
      Cloudflare - Account - Add MX record
    • In the Name text box, type the value from the Name column for the MX record in cPanel.
    • In the Mail server text box, type the destination from the Record column of the MX record in cPanel.
    • In the TTL list box, select Auto.
    • In the Priority text box, type the priority from the Record column of the MX record in cPanel.
    • Click Save. Cloudflare saves the MX record.
      If your domain has multiple MX records, repeat these steps for the other MX records.
  6. Add the SPF record:
    • In the DNS management section, click Add record:Cloudflare - Account - Add record
    • In the Type list box, select TXT:
      Cloudflare - Account - Add TXT record
    • In the Name text box, type the value from the Name column for the SPF record in cPanel.
    • In the TTL list box, select Auto.
    • In the Content text box, type the value from the Record column for the SPF record in cPanel.
    • Click Save. Cloudflare saves the SPF record.
  7. If your domain uses DKIM, you should add that record as well. To do this:
    • In the DNS management section, click Add record:Cloudflare - Account - Add record
    • In the Type list box, select TXT:
      Cloudflare - Account - Add TXT record
    • In the Name text box, type the value from the Name column for the DKIM record in cPanel.
    • In the TTL list box, select Auto.
    • In the Content text box, type the value from the Record column for the DKIM record in cPanel.
    • Click Save. Cloudflare saves the DKIM record.
  8. Cloudflare is now configured to use your domain’s email settings.

Discover more – How to set up Microsoft Outlook on Android

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes No

Share this Doc

How to configure DNS records for email in Cloudflare

Or copy link

Clipboard Icon
CONTENTS
Leaf Illustration

© 2023 All Rights Reserved by Hostvento