1. Home
  2. Email Information and Management
  3. Email Routing with CloudFlare

Email Routing with CloudFlare

If you are on a Premium Web Hosting plan with us and switch to CloudFlare for your DNS, you may find that your emails no longer route properly. The reason for this is our spam filter uses the root of your domain to route messages by default. 

There are a couple of options for addressing this. If you expose your ‘mail’ subdomain at CloudFlare, it can be configured to point directly to your Rochen server and used instead. This will also allow easier configuration of email clients, the only drawback is it can allow visitors to identify the origin IP for your account. 

As such, using your server’s hostname for your email routing is also an option if you would prefer. Instructions can be found below for fixing up your email routing using either method. 

If using a custom ‘mail’ subdomain under your domain:

1) Check your account’s IP address on the MyRochen “Manage Hosting” page. This will be used for your ‘mail’ subdomain record.
2) Login to CloudFlare, navigate to your DNS management page and check for an existing ‘mail’ DNS record.
3) If one already exists, make sure it is an “A” type (not CNAME) record mapping the your account’s IP address. If it is not already listed, please add it.
4) Make sure the cloud icon ‘proxy toggle’ is disabled so the mail subdomain resolves directly to your server here.
4b) If you need further instructions, please see this page for further usage information at CloudFlare.
5) Login to cPanel on your account here. You can use the cPanel URL link from your MyRochen “Manage Hosting” page.
6) Navigate to the Professional Spam Filter page, then choose your domain.
7) Click the Destinations tab, then click the Search icon to see your current destinations that are configured.
8) Click the drop down next to your existing destination, then choose ‘Edit’. Change the ‘Host’ field to mail.<yourdomain> here and save the change.

If using the server’s hostname instead:

1) Check your server’s hostname on the MyRochen “Manage Hosting” page. This will be listed next to cPanel URL and should look similar to ‘uk123.directrouter.com’.
2) Login to cPanel for your account here. You can use the cPanel URL link from your MyRochen “Manage Hosting” page.
3) Navigate to the Professional Spam Filter page, then choose your domain.
4) Click the Destinations tab, then click the Search icon to see your current destinations that are configured.
5) Click the drop down next to your existing destination, then choose ‘Edit’. Change the ‘Host’ field to your hostname found before and save the change.

Frequently Asked Questions:

– Is there a risk in exposing your account IP via an unmasked “A” record?
Your account’s IP address will be exposed, so it can be easily discovered and CloudFlare bypassed using a method like a modified hosts file. This isn’t necessarily a problem, but does limit the additional privacy provided by CloudFlare. 

– Can I use a different, potentially randomized subdomain instead of using ‘mail’ for added security? 
Absolutely! You’ll just need to use the randomized subdomain instead when adjusting the destination in the spam filter. 

Please feel free to open a support ticket with us if you encounter any difficulties or would like additional clarification on any of these steps. 

Updated on April 28, 2021

Was this article helpful?

Related Articles