Manoj Damor

Unlock the World of Coding with Coding Funda

Setup business Email using Email Routing in cloudflare

5 min read
business Email using Email Routing in cloudflare

business Email using Email Routing in cloudflare

In the digital age, a professional business email is crucial for maintaining a credible image and efficient communication. Using email routing in Cloudflare can streamline your email management, enhance security, and improve deliverability. This comprehensive guide will walk you through the process of setting up business email using Cloudflare’s email routing, from configuring DNS settings to implementing security protocols like SPF, DKIM, and DMARC.

Why Use Cloudflare for Email Routing?

Cloudflare is renowned for its robust security features and extensive global content delivery network (CDN). Leveraging Cloudflare for email routing offers several benefits:

  1. Enhanced Security: Cloudflare’s security measures help protect your email services from spam, phishing, and other malicious activities.
  2. Improved Performance: Cloudflare’s global network ensures faster DNS resolution and improved email deliverability.
  3. User-Friendly Interface: Cloudflare’s interface simplifies the management of DNS records and email routing rules.


Before you begin, ensure you have the following:

  • A registered domain name.
  • Access to your Cloudflare account.
  • An email hosting provider (e.g., Google Workspace, Microsoft 365, or another email service provider).

Step-by-Step Guide to Setting Up Business Email Using Email Routing in Cloudflare

Step 1: Add Your Domain to Cloudflare

If you haven’t already added your domain to Cloudflare, follow these steps:

  1. Sign Up/Login to Cloudflare: Visit Cloudflare and create an account or log in if you already have one.
  2. Add a Site: Click on “Add a Site” and enter your domain name.
  3. Review DNS Records: Cloudflare will automatically scan your existing DNS records. Review these records and confirm.
  4. Change Nameservers: Cloudflare will provide nameservers that you need to update at your domain registrar. This step allows Cloudflare to manage your DNS settings.

Step 2: Configure DNS Settings for Email Routing

To set up email routing, you need to configure your DNS settings in Cloudflare.

  1. Navigate to DNS Settings: In your Cloudflare dashboard, go to the DNS settings for your domain.
  2. Add MX Records: MX (Mail Exchange) records direct email to your mail server. Add the MX records provided by your email hosting provider. Example:
   Name: @
   Type: MX
   Mail Server:
   Priority: 10
  1. Add TXT Records: TXT records are used for various verification purposes, including SPF (Sender Policy Framework) to prevent email spoofing. Example for SPF:
   Name: @
   Type: TXT
   Content: v=spf1 ~all
  1. Add CNAME Records (if required): Some services might require additional CNAME records for verification purposes.

Step 3: Set Up Email Routing Rules in Cloudflare

Once your DNS settings are configured, you can set up email routing rules within Cloudflare.

  1. Login to Cloudflare: Access the Cloudflare dashboard.
  2. Access Email Routing: Navigate to the Email Routing section.
  3. Create Routing Rules: Define rules to route incoming emails to specific recipients or systems. Example rule in Cloudflare Email Routing:
   From: *
   To: [email protected]
   Destination: [email protected]
  1. Add Multiple Rules: You can set up multiple rules to handle different scenarios, such as routing emails based on sender address, subject line, or recipient address. Additional example rules:
   From: *
   To: [email protected]
   Destination: [email protected]

Step 4: Verify DNS Records

After adding all necessary DNS records, it’s important to verify them:

  1. Propagation: DNS changes can take up to 48 hours to propagate, but usually, they are updated within a few hours.
  2. Email Provider Verification: Use tools provided by your email hosting provider to verify that your DNS records are correctly set up.
  3. Third-Party Tools: Use online tools like MXToolbox or DNSstuff to check the configuration of your MX, SPF, DKIM, and DMARC records.

Step 5: Test Your Email Routing Setup

Testing is crucial to ensure that your email routing setup works as intended.

  1. Send Test Emails: Send emails to the addresses you’ve set up routing rules for and verify that they are delivered to the correct recipients.
  2. Check Spam/Junk Folders: Ensure that emails are not being incorrectly marked as spam.
  3. Inspect Email Headers: Check the headers of received emails to verify that SPF, DKIM, and DMARC checks are passing.

Step 6: Implement SPF, DKIM, and DMARC Records

To ensure the security and deliverability of your emails, configure SPF, DKIM, and DMARC records.

  1. SPF Record:
  • Add a TXT record.
  • Set the “Name” field to your domain (e.g., “@”).
  • In the “Content” field, enter the SPF rule provided by your email host. Example:
   Name: @
   Content: v=spf1 ~all
  1. DKIM Record:
  • Add a TXT record.
  • Set the “Name” field to the DKIM selector provided by your email host followed by “._domainkey”.
  • In the “Content” field, enter the DKIM key provided by your email host. Example:
   Name: selector._domainkey
   Content: v=DKIM1; k=rsa; p=MIGfMA0GCSqG...
  1. DMARC Record:
  • Add a TXT record.
  • Set the “Name” field to “_dmarc”.
  • In the “Content” field, enter the DMARC policy. Example:
   Name: _dmarc
   Content: v=DMARC1; p=none; rua=mailto:[email protected]; ruf=mailto:[email protected]

Step 7: Monitor and Maintain Your Email Routing Setup

Continuous monitoring and maintenance are essential to ensure the ongoing reliability and security of your email routing setup.

  1. Review DMARC Reports: Regularly review DMARC reports to monitor for any email spoofing attempts.
  2. Update DNS Records: Keep your DNS records updated to reflect any changes in your email infrastructure or service providers.
  3. Monitor Delivery and Security: Use the monitoring tools provided by Cloudflare to track email delivery and identify any security issues.

Troubleshooting Common Issues

Here are some common issues you might encounter when setting up business email using email routing in Cloudflare, along with their solutions:

  1. Emails Not Delivered: Ensure your MX records are correctly configured and that they point to the correct mail servers.
  2. Emails Marked as Spam: Verify your SPF, DKIM, and DMARC records. Ensure that your domain’s IP addresses are not blacklisted.
  3. Routing Errors: Double-check your routing rules to ensure they are correctly defined and match the intended email patterns.

Advanced Configuration Options

For businesses with more complex needs, consider the following advanced configuration options:

  1. Custom Routing Rules: Define more granular routing rules based on sender, recipient, subject, or content.
  2. Email Forwarding and Aliases: Set up email forwarding and aliases to route emails to different addresses or departments.
  3. Integration with Other Systems: Integrate your email routing with CRM, helpdesk, or other business systems to automate workflows and improve efficiency.


Setting up business email using email routing in Cloudflare can significantly improve the efficiency, security, and reliability of your email communication. By following the steps outlined in this guide, you can configure your DNS settings, set up routing rules, secure your emails with SPF, DKIM, and DMARC, and monitor your email system to ensure optimal performance.

Whether you’re a small business or a large enterprise, Cloudflare provides the tools necessary to secure and optimize your email setup. With the steps outlined above, you can confidently manage your email DNS records and ensure a seamless communication experience.

Final Tips

  1. Backup Your DNS Records: Always keep a backup of your DNS records before making significant changes.
  2. Stay Informed: Keep up with the latest best practices and updates from both Cloudflare and your email hosting provider.
  3. Utilize Cloudflare Support: If you encounter issues, Cloudflare’s support and community forums are valuable resources for troubleshooting.

By carefully setting up and maintaining your business email using Cloudflare’s email routing, you can create a reliable and secure email communication system that meets your professional needs and supports your business goals.

About The Author

Leave a Reply

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

Follow by Email