Host Website and Email in Different Host

The common practice for email and website to host is in the same server so your head will be one place. But there is an event where clients what to use different servers for both.

Commonly hosting providers provides email  functionality with website, but in order to increase email reliability you want to opt-out using different server for the email. The popular email server is Gmail Workspace.

So here we’ll show how you can do. Here the example we’ll be using our DNS, CPanel and Gmail Workspace MX and TXT record.

1)Point your domain name to the DNS

First step is you need to point your domain name to the DNS that you wish to use. Visit your Domain Provider to change the DNS record or nameserver. The step that we always take is change the nameserver to our DNS where we can manage the DNS record for clients easily where we need to setup the MX and TXT record. If you bought your Domain Name from us you just need to contact us to change it or you can change by yourself in your Yesspage Account.

2)Change your MX record

Login to your CPanel account to manage it. If you can’t find how to login to your cpanel, please refer this tutorial on how to login to your CPanel account using our account in Yesspage (refer first step only).

  1. Navigate to Domains>>Zone Editor (Refer Image 1).
  2. Click on Manage (Refer Image 2)
Image 1: DNS Zone Editor in CPanel
Image 2 : Zone Editor

3) Add MX Record

The next step is you need to add the MX record (Refer to Image 3). Follow the step as in the Image 3.

  1. Click “Add Record”
  2. Click “Add MX record”

When you successfully choose the record, the display as in image 4 will be appear on the screen. If you can’t find the MX record in the Add Record section, please contact your Hosting Provider, if you have access to your WHM account, refer the step in here to enable the MX record in your cpanel (Click Here)

Image 3: Add MX Record
Image 4: Field To Add MX Record

4) Adding Google MX Record

In the Zone Name, make sure your domain name is there. Put the priority as 1 and destination aspmx.l.google.com. Once finish adding the first record , repeat step 3 to add other record. For all record please refer Image 6 or click here to check the record from Google.

Image 5: Add the first MX record for Google.
Image 6: All Google MX Record

5) Change the TXT record

Before continue using your Google Mail, the next step you’ll need to change the TXT for the domain. In the Zone Records search for the TXT type as in Image 7.

  1. Click Edit
  2. Add google TXT record –> v=spf1 include:_spf.google.com ~all

Refer to image 8 for reference in editing TXT record

Image 7: Changing TXT record
Image 8: Adding TXT record

6) Email Routing

The final step is routing the email. Go to your CPanel main dashboard and look for EMAIL section as in Image 9 and click the Email Routing. In the Email Routing page, choose the Remote Mail Exchanger and click the change button.

Image 9: Email Routing
Image 10: Remote Mail Exchanger

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: