How to Configure Email on a Different Host from the Website

How to Configure Email on a Different Host from the Website

Although the common practice is to use the same host account for both email and website, you can run the two services on two different servers.

The article discusses the reasons why you may consider hosting your emails on a different server and how to do the setup.

Why Host the Email and Website on Different Servers

By default, a hosting company provides email functionality with the website hosting. This makes it appears as if the two are inseparable while in the actual sense, they are completely separate services that can run independently of one another.

There are several reasons why you may consider running the two on different servers. These include:

To Improve Reliability and Availability

Hosting the email service with a different provider improves reliability and avoids a complete shutdown when a server fails. If using one server, an outage or shutdown means that your customers and other users will not reach you on the website and email.

This may happen due to a malfunction or when the provider is maintaining the systems. But if they are on different servers, at least one will be functional if the other goes down. In addition, the website developer will not touch the emails hence reducing the chances of something going wrong.

Reduce the Complexities Involved When Moving Hosts

Migrating a website and emails running on the same hosting server to another is more complex and challenging, especially for people who are not conversant. In particular, moving the email accounts is more challenging. However, if they are on a different server, moving the website alone to another host is much easier and does not risk your email accounts and data.

To Avoid Blacklisting Due to Bad Neighbours in a Shared Hosting

If one customer in on a shared hosting server is sending spam, you risk damaging your site’s reputation. This will lead to blacklisting of the shared IP which will consequently block emails from your domain.

Although a VPS can help you to avoid this, it may be out of your budget and hosting your email on a different server is usually a better option.

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.

aspmx.l.google.com
alt1.aspmx.l.google.com
alt2.aspmx.l.google.com
aspmx2.googlemail.com
aspmx3.googlemail.com
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

smx1.web-hosting.com
smx2.web-hosting.com
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.

Conclusion

Most hosting companies tie the email and web hosting together while these are completely separate applications. Although this looks convenient, it may the domain owner the flexibility and freedom to move around the emails. In addition, it increases the probability of completely getting the customer offline in case the website hosting has issues.

To improve reliability and availability, the domain owner can host the emails away from the website. This requires signing up with the reliable email hosting provider, configuring the MX records to point to the new destination server and selecting the remote mail exchanger to route the domain’s incoming emails.

Check out these top 3 Email hosting services:

Ultahost
$2.50 /mo
Starting price
Visit Ultahost
Rating based on expert review
  • User Friendly
    4.3
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.0
  • Pricing
    4.8
HostArmada
$2.49 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.0
FastComet
$1.79 /mo
Starting price
Visit FastComet
Rating based on expert review
  • User Friendly
    4.7
  • Support
    5.0
  • Features
    4.8
  • Reliability
    4.5
  • Pricing
    5.0

How to Secure Postfix with SpamAssassin on an Ubuntu 18.04 VPS or Dedicated Server

Spamassassin is the best and most preferred open source spam blocking software w
less than a minute
Bruno Mirchevski
Bruno Mirchevski
Hosting Expert

How to Install WordPress with Nginx & Redis

This is an easy-to-follow guide written to help you learn how to install WordPre
less than a minute
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO

How to Change Common PHP Settings on an Ubuntu 18.04 VPS or Dedicated Server

This article shows you how to change PHP settings on your Linux Ubuntu 18.04 vir
less than a minute
Idan Cohen
Idan Cohen
Marketing Expert

How to Install WordPress with Nginx & Redis on a CentOS VPS or Dedicated Server

This is an easy-to-follow guide written to help you learn how to install WordPre
less than a minute
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top