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).
- Navigate to Domains>>Zone Editor (Refer Image 1).
- Click on Manage (Refer Image 2)
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.
- Click “Add Record”
- 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)
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.
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.
- Click Edit
- Add google TXT record –> v=spf1 include:_spf.google.com ~all
Refer to image 8 for reference in editing 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.