Home > Help Center > Shared Hosting > Email > Configure Email Routing in cPanel

Configure Email Routing in cPanel

Reroute a domain's incoming mail to a specific server. Use this feature to create a backup mail exchanger to handle email in case your server fails.

This interface allows you to route a domain's incoming mail to a specific server. Changes that you make to a domain's MX (Mail Exchanger) entry also result in changes to the DNS records.

This interface is useful, for example, if you wish to create a backup mail exchanger to handle mail when the server is down.

To enter MX Entry interface go to cPanel > Email and click MX Entry link:

cpanel mx settings

Configure Email Routing

Warning: Misconfigured MX entries can completely disable your ability to receive mail. If you are unsure which option to choose, contact support department.

To determine how your server routes mail for a domain, perform the following steps:

Select the desired domain from the menu:

cpanel mx settings

Select one of the following options under Email Routing:

  • Automatically Detect Configuration - the server uses the current MX record or records for the domain to select the appropriate configuration from the list below.

Note: Automatic detection of MX configuration is not possible if MX entries do not resolve (i.e., you mistype a domain name or enter one that does not exist). If your MX configuration is set to auto and you add or edit an MX record that does not resolve, you will see a warning and MX configuration will default back the last known setting.

  • Local Mail Exchanger - the domain accepts mail even if an MX record with higher priority exists. The server routes mail to both domains when this happens. Choose this option if your server uses smart hosts or another gateway service to filter mail.

  • Backup Mail Exchanger - the domain acts as a backup mail exchanger and holds mail in the queue if the primary exchanger is offline. Configure the primary MX entry to point to the appropriate exchanger.

  • Remote Mail Exchanger - the domain does not accept mail. Instead, it sends it to the primary mail exchanger. Configure the primary MX entry to point to the appropriate exchanger.

cpanel mx settings

Click Change.

Add a new MX entry

Under the Add a New Record section, enter the priority of the new MX entry in the Priority text box.

Note: Remember: Lower values denote higher priority. The highest priority is 0.

The primary mail server or servers (those with the lowest priority values) receives mail that is sent to your domain.

Backup, or secondary, mail servers (those with higher priority values) are for backup or other purposes.

If you assign the same priority value to multiple mail servers (and needs this level of mail server) the system distributes mail to those servers randomly.

In the Destination text box, enter the hostname of the new mail exchanger. Important: You must specify a fully qualified domain name (FQDN). You cannot specify an IP address here:

cpanel mx settings

Click Add New Record.

All existing MX records are listed in the MX Records table. You can edit or delete MX entry by clicking the Edit or Remove link next to MX record:

cpanel mx settings

Edit an MX entry

Click Edit next to the appropriate MX entry in the MX Records list. Change the Priority or Destination as desired:

cpanel mx settings

Click Edit to confirm.

Delete an MX entry

Click Remove next to the appropriate MX entry in the MX Records list:

cpanel mx settings

Click Delete to confirm.


We hope that information in this article will help you to manage easily the MX records in your hosting and the mail system of all your sites and mail accounts will work correctly.

#cpanel #settings

Still not finding what you're looking for?

Contact our support team with any additional questions or concerns.

Contact support