Scenario (domain morph-alien-store.com):
- Domain Nameservers points to Server 1
- Server 1 (102.160.14.49): with cpanel account for hosting emails
- Server 2 (89.95.50.13): with cpanel account for hosting webpage
In this scenario, you only have access to the domains configurations and to server 1.
Your default DNS Zone at server 1 will look like something like this:
- morph-alien-store.com. 14400 A 102.160.14.49
- morph-alien-store.com. 14400 MX Priority: 0 Destination: morph-alien-store.com
- mail.morph-alien-store.com. 14400 CNAME morph-alien-store.com
- www.morph-alien-store.com. 14400 CNAME morph-alien-store.com
Changes you must do:
- Item 1, change the destination IP from server 1 to server 2 (89.95.50.13). This make the webpage located at server 2 to show up.
- Item 2, change the “Destination” from morph-alien-store.com to mail.morph-alien-store.com, this will direct the emails from the main domain explicitly to mail.morph-alien-store.com that has the IP of server 1 (next item)
- Item 3, change the Record Type from CNAME to A, and the Record from mail.morph-alien-store.com to the IP of server 1 (102.160.14.49)
There is no need to change anything more. Here is how it should look like:
- morph-alien-store.com. 14400 A 89.95.50.13
- morph-alien-store.com. 14400 MX Priority: 0 Destination: mail.morph-alien-store.com
- mail.morph-alien-store.com. 14400 A 102.160.14.49
- www.morph-alien-store.com. 14400 CNAME morph-alien-store.com
With this configuration in server 1, you should be able to receive your emails in server 1 and have the webpage at server 2.
Please be aware when configuring the emails accounts that the Incoming and Outgoing will be specifically “mail.morph-alien-store.com”.