Hosting Emails on a Different Server

To host your emails on a different server from that of the website, you need to change the Mail Exchanger (MX) record in your domain’s DNS records. The MX records are the ones that point to the server hosting your email and can be local if together with the website, or remote if on a different location.

To point your email away from your current account, you need to obtain the MX destination details from the provider who will host the emails. With these details you can either delete the existing MX record and add a new one or simply edit the existing. Unlike some other records, MX accepts the name of the mail server only and does not work with IP addresses.

The DNS records may be in another location, but you must have access to them. Some registrars may provide you with an interface to edit the DNS records while others allow you to set your own on a different server away.

For the purpose of this article we will perform the process using cPanel.

How to Configure the MX Records in Cpanel

Log in to the cPanel account using the syntax;

http://yourdomain_name.com:2083 or http://yourdomain_name.com/cpanel.

  1. Enter your username and password.
  2. Navigate to Domains and open Zone Editor

How to Configure Email on a Different Host from the Website

There are two options of working with the MX records. You can either

  1. Add a new MX record or
  2. Modify the existing records by editing the specific fields

Method 1

Adding a new MX record

  1. Open the Zone Editor
  2. If you have more than one domain in your account, select the one you want to modify and click on the Manage option. This will open the zone records for the domain.
  3.  Click the drop down arrow on the +Add Record and choose Add MX Record.

How to Configure Email on a Different Host from the Website

This provides with the option to add the Destination server’s Fully qualified domain name and the Priority to assign to the record.

How to Configure Email on a Different Host from the Website

  1.  Enter the DestinationFully qualified domain name such as aspmx.l.google.com for Google or smx1.web-hosting.com for Namecheap.
  2. Leave the TTL at the default, but you may need to confirm with the provider it it has a different value. The priority dictates the MX entry to give first preference, please confirm with your email host provider.
  3. Once you complete filling the details, click Add record to save the entry and proceed.
  4. Add more records. Ideally, you need at least two but can have more if your host allows it.

If you will host you emails on Google servers, use the following as the destination’s fully qualified domain names.

  1. aspmx.l.google.com
  1. alt1.aspmx.l.google.com
  1. alt2.aspmx.l.google.com
  1. aspmx2.googlemail.com
  1. aspmx3.googlemail.com
  1. aspmx4.googlemail.com

How to Configure Email on a Different Host from the Website

Similarly, if you will host you emails on Namecheap servers, use

  1. smx1.web-hosting.com
  1. smx2.web-hosting.com
  1. smx3.web-hosting.com

The new server setting takes some hours to be become active. Generally, it takes about 48 hours for the the new server settings to become active. However, this varies according to the provider and some can take as low as 3 hours.

Alternative method 1

  1. Instead of clicking Manage at the Zone Editor screen, click on the +MX Record to add a new entry.

How to Configure Email on a Different Host from the Website

This will give you the option to only add the fully qualified domain name for the destination as well as the priority.

  1. If hosting the emails with the Namecheap, add the destination as smx1.web-hosting.com and a priority of 10.

How to Configure Email on a Different Host from the Website

  1. Click Add an MX Record to save.
  1. Repeat this for the other records but ensure that you pay attention to the priority according to the provider’s recommendations.

Method 2

Modify an existing MX Record

Instead of adding a new record, you can simply edit the existing and replace the old values with those for the new server.

  1. Log in to your hosting account cPanel
  2. Open the Zone Editor in Domains
  3. Click Manage option on the domain you want to modify.  This will open the zone records for the domain you are modifying.

How to Configure Email on a Different Host from the Website

  1. Click on MX to display a list of the active MX records

How to Configure Email on a Different Host from the Website

  1. Select the record you want to modify and click Edit

How to Configure Email on a Different Host from the Website

  1. Replace the Priority value and the Destination’s Fully Qualified Domain Name with those that the new hosting provider has given you.
  2. Click Save Record.
  3. Repeat the process and change all the other MX records pointing to the old server so that they now point to the new destination.

How to Configure Email on a Different Host from the Website

Change Email Routing settings

Once you configure the MX records to point to the new destination, you need to change the routing. The email routing settings determine how the domain handles outgoing emails and has the following options.

  • Automatically Detect Setting: This enables the server to detect the settings.
  • Local Mail Exchange if the web host is handling the emails
  • Backup Mail Exchanger
  • Remote Mail Exchanger: if you are hosting emails on a different server away from the

To configure email routing;

  1. Login to the cPanel account
  2. Navigate to Email and open Email Routing

           How to Configure Email on a Different Host from the Website

  1. Select the domain you are modifying. (With new MX records) from the drop down list.

How to Configure Email on a Different Host from the Website

  1. Choose Remote Mail Exchanger optionifusing a different mail server away from host.

How to Configure Email on a Different Host from the Website

  1. Click Change to save.
  • hosting, webhosting, email, webmeail
  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

How to host only emails in different cPanel servers?

Solution No 1: Log in to your first cPanel of example.com (for website) Upload all the files...