Connect 2 Cpanel accounts from different servers

iflexi

Registered
Dec 12, 2020
3
1
1
Portugal
cPanel Access Level
Root Administrator
Hi!
Does anyone know if it's possible and how to implement a setup where 2 Cpanel accounts in different servers are "connected" like this:

Server 1 - Main Cpanel Account
- In this server, I have hosted the website.

Server 2 - Secondary Cpanel Account
- In this server, I only host my email accounts.

DNS Management where I point the website to server 1 and the emails to server 2 is done externally, on Cloudflare.

What I need to do:
Login to my Cpanel account on server 1 and create and manage my email accounts, filters, forwards, etc. BUT, remember that those email accounts are NOT on this server but on the other server (server 2).

Is it possible to "connect" 2 Cpanel accounts like this (through a plugin or API or whatever) so I can manage everything in one single Cpanel account although emails are actually hosted on a different server?

Note: I know how to configure DNS to point to different servers, that's not my issue. My issue is using one Cpanel interface on one server to manage emails hosted on another server/cpanel account.

Thanks!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,220
2,420
363
cPanel Access Level
Root Administrator
If you want to do this for mail, we have the Server Profiles and Nodes options here:


This seems like it would do exactly what you're looking for!
 
  • Like
Reactions: iflexi

iflexi

Registered
Dec 12, 2020
3
1
1
Portugal
cPanel Access Level
Root Administrator
If you want to do this for mail, we have the Server Profiles and Nodes options here:


This seems like it would do exactly what you're looking for!
So it seems
I'll give it a try!
Thanks!
 
  • Like
Reactions: cPRex

timkah

Member
Sep 28, 2022
16
3
3
United Kingdom
cPanel Access Level
Root Administrator
Do you want to host emails and website on different cPanel servers? It is quite easy.

1 - Set domain nameservers to email server (Or you can use 3rd party DNS services)
2 - Update A record on the email server for the domain (@) to point it to the website hosting server IP Address, (also point the www to the same IP or cName to the domain name)

Hopefully, it'll solve your issue.
 

andrew.n

Well-Known Member
Jun 9, 2020
965
358
63
EU
cPanel Access Level
Root Administrator
Do you want to host emails and website on different cPanel servers? It is quite easy.

1 - Set domain nameservers to email server (Or you can use 3rd party DNS services)
2 - Update A record on the email server for the domain (@) to point it to the website hosting server IP Address, (also point the www to the same IP or cName to the domain name)

Hopefully, it'll solve your issue.
He wants to manage the email accounts on server A while they are hosted on server B so it's a bit more complex :)
 
  • Like
Reactions: cPRex

timkah

Member
Sep 28, 2022
16
3
3
United Kingdom
cPanel Access Level
Root Administrator
He wants to manage the email accounts on server A while they are hosted on server B so it's a bit more complex :)
Oh, I can see now, for that purpose custom module/plugin is required on the Main server with API access to server 2. I don't think so it is possible with any DNS settings.