Seperate hosting account Web and Email on one server

Apr 12, 2016
5
0
1
Poland
cPanel Access Level
Reseller Owner
Is there any solution to have websites and email in one domain on two hosting account?
for example:
hosting account_1: domain1.hosting.com
hosting account_2: domain2.hosting.com

Domain: domain.com

I wan`t to have website on hosting account_1 and emails on account_2

I tried on external DNS server:
.domain.com MX domain2.hosting.com
.domain.com A IP <IP hosting account_1>
www.domain.com CNAME domain1.hosting.com
and it`s doesn`t work

In cpanel I can park domain.com only on one account.
Is there any solution, not manual by ssh in files, to make record about one domain in apache for website in one hosting account and in exim for mails in another hosting accont. I think this could resolve my problem.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
Hello,

This isn't supported at this time, as it's not possible to use the same domain name on multiple accounts. Can you elaborate some more on the purpose of this type of setup so we can offer you some potential alternatives?

Thank you.
 
Apr 12, 2016
5
0
1
Poland
cPanel Access Level
Reseller Owner
I`m not sure but when I park domain, there is modyfication in config file of exim (for mails) and in Apache (for www).
If I can`t do that from WHM, can I make manual change in config file of exim and Apache?
I only don`t know in which file or files I need to make changes. I want that cPanel saw in account_1 in "Aliases" my domain and in account_2 in Email Accounts=>"domain" my domain.
I think then it should work
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
Hello,

Another alternative to adding the domain name as an alias to an existing cPanel account would be to create a separate cPanel account for the domain name and then setup a redirect that directs traffic to this domain name to the other domain name:

Redirects - Documentation - cPanel Documentation

Thank you.