BlogServersTecnologia

cPanel: one domain, two servers (one for email another for webpages)

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:

  1. morph-alien-store.com. 14400 A 102.160.14.49
  2. morph-alien-store.com. 14400 MX Priority: 0 Destination: morph-alien-store.com
  3. mail.morph-alien-store.com. 14400 CNAME morph-alien-store.com
  4. 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:

  1. morph-alien-store.com. 14400 A 89.95.50.13
  2. morph-alien-store.com. 14400 MX Priority: 0 Destination: mail.morph-alien-store.com
  3. mail.morph-alien-store.com. 14400 A 102.160.14.49
  4. 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”.

Artigos Relacionados

Deixe um comentário

O seu endereço de email não será publicado. Campos obrigatórios marcados com *

Este site utiliza o Akismet para reduzir spam. Fica a saber como são processados os dados dos comentários.

Botão Voltar ao Topo
João Clérigo - Photography
Fechar

AdBlocker Detetado
AdBlocker Detected

Por favor ajude este website permitindo a visualização de alguns anúncios. Obrigado. Please help this website allowing the view of some advertising. Thank you!