Need help?

Our experts have had an average response time of 13.52 minutes in October 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Errors with cPanel Remote Mail Exchanger? Here’s how to fix them

by | Oct 15, 2018

Up until a few years ago, domains had both mails and websites set up on the same server.

Things have changed nowadays and many people use custom mail servers like Google, Outlook etc. to handle mails for their domains.

To make this happen, server management tools like cPanel provide a setting called “Remote Mail Exchanger”.

But setting up “Remote Mail Exchanger” is not intuitive to many website owners, and they often face mail bounces or mail errors due to misconfiguration of this setting.

As part of our Outsourced Technical Support for web hosts, we routinely resolve such email errors.

Today let’s go through the top two issues we’ve seen while setting up a Remote Mail Exchanger.


How things go wrong with cPanel Remote Mail Exchanger

In cPanel servers, there is an option called “Email routing” which decides how mail is handled for a domain.

By default, new accounts created on the server have mails handled by the same server.

But when the domain need to use another server for mail, the email routing has to be set as “Remote Mail Exchanger”.

Here’s how Email Routing is set for a domain in cPanel servers.

cPanel Remote Mail Exchanger - Email Routing


Mail server tries to send mails to another server after checking the Remote Mail Exchanger setting for the domain.

Listed below are the situations where mails fail due to this setting.


1. Remote Mail Exchanger not set

To enable external mail servers for a domain, website owners simply set the custom mail servers (MX) records for the domain.

Unfortunately, that is not enough for mails to show up in the external mail servers.

Mails from website forms or other domains hosted on the same server still fail. This happens as the mail server tries to deliver the mails within the server.

To fix the problem, our Support Engineers set the correct email routing as per the MX records of the domain.

Also we ensure that the correct values are present in the mail server configuration files like /etc/localdomains and /etc/remote domains as well.


2.  Incorrect value for Remote Mail Exchanger

Cpanel maintains two domain lists :

  • Domains whose mails are on the same server
  • Domains whose mails are on remote server.

When we change email routing for a domain, cPanel automatically adjusts these lists.

For example, when we set Remote Mail Exchanger for a domain, cPanel removes domain from local domains list and automatically adds to remote domains list.

But this may not work always due to bad server settings.

And when a customer wants to change their domain’s MX  to a different provider, say Google, he will set MX in dns records and change email routing to “Remote Mail Exchanger”.  Normally, this is enough for mails to show up at Google.

But if for some reason cPanel fails to remove this domain from the local domains list, mail server will still try to deliver all mails from other domains on the same server locally. This will result in email error “Recipient Not Found” as the original recipient exists at Google.

In such cases, for mail to work properly, our Support Engineers do the following :

  1. Set mail routing to “Remote Mail Exchanger”
  2. Remove entries for the domain from the list of local domains
  3. Add the domain to the list of remote domains


Wrong setting of the cPanel Remote Mail Exchanger can cause mail issues for the domain. We’ve discussed two causes our Support Engineers often see in the servers that we manage and how we fix them.



Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";

1 Comment

  1. Cleveland Web Developer

    Thanks for the reminder – always a good thing to check when having email issues. Routing can be challenging.


Submit a Comment

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

Privacy Preference Center


Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid


Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie


These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.