Cpanel with remote MAIL/DNS server ?

majoosh

Well-Known Member
Feb 18, 2006
97
0
156
India
Hi,

Am looking for a soultion for a new setup. I have multiple cpanel vps server which will be hosting only web but all these vps servers should be contacting a central email server ( which runs cpanel too). Also each customers in the vps server should be able to create their own email address and should be automatically synced to the central email server which runs cpanel too. ( just email ).. is there any existing soultion like this ?

Also I would want a centralized DNS server for all these vps server. Is DNS ONLY cpanel a solution for this ?

Appreciate your help. :)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

DNS only would be a solution for a centralized DNS server where the others cluster to it.

For the email issue, you'd probably want to set the cPanel web servers as backup mx so that it servers as a secondary MX record to hold mail to queue of the primary email server is down. You can basically set each account with backup mail exchanger for the cPanel web server, then the domains will be in /etc/remotedomains and in /etc/secondarymx and whenever the primary mail server is down, you'd have emails arrive to the cPanel secondary MX machine and hold in the queue until the primary MX is available again.

As for synching the email accounts, I wouldn't even have the icon go to the cPanel web server. Set the icon to log into the email server instead for email account creation and webmail. This way you don't have to sync the accounts. When the cPanel webserver is a secondary MX for domains, the email accounts don't have to exist on it. The mail doesn't ever deliver to the cPanel server that's the secondary (backup) mail server. It just holds them if the other is offline until it's online again.

Thanks!
 

majoosh

Well-Known Member
Feb 18, 2006
97
0
156
India
Hello,

DNS only would be a solution for a centralized DNS server where the others cluster to it.

For the email issue, you'd probably want to set the cPanel web servers as backup mx so that it servers as a secondary MX record to hold mail to queue of the primary email server is down. You can basically set each account with backup mail exchanger for the cPanel web server, then the domains will be in /etc/remotedomains and in /etc/secondarymx and whenever the primary mail server is down, you'd have emails arrive to the cPanel secondary MX machine and hold in the queue until the primary MX is available again.

As for synching the email accounts, I wouldn't even have the icon go to the cPanel web server. Set the icon to log into the email server instead for email account creation and webmail. This way you don't have to sync the accounts. When the cPanel webserver is a secondary MX for domains, the email accounts don't have to exist on it. The mail doesn't ever deliver to the cPanel server that's the secondary (backup) mail server. It just holds them if the other is offline until it's online again.

Thanks!
You mean I have to set secondary mx for each and every server ? If I plan to have 10 vps servers then I should be setting 10 secondary mx + 1 primary mx ?
 

majoosh

Well-Known Member
Feb 18, 2006
97
0
156
India
Set the icon to log into the email server instead for email account creation and webmail. This way you don't have to sync the accounts. When the cPanel webserver is a secondary MX for domains, the email accounts don't have to exist on it. The mail doesn't ever deliver to the cPanel server that's the secondary (backup) mail server. It just holds them if the other is offline until it's online again.
How can we set this ? also when a user clicks for webmail or email account creation it will ask him for login again on another server ?

Is there any other better solution for backup mx in cpanel ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
I cannot tell you specifically how to implement an icon redirecting to the email server's cPanel webmail. You'd have to remove the existing webmail icon and create a new webmail icon or interface. They won't need to log in again if you end up using an API call to store their data possibly. You may wish to post for suggestions on the developer's section of the forum.

There's no better solution for backup MX in cPanel than what I've suggested that I am aware of doing. If there were, I'd have suggested it.
 

majoosh

Well-Known Member
Feb 18, 2006
97
0
156
India
I cannot tell you specifically how to implement an icon redirecting to the email server's cPanel webmail. You'd have to remove the existing webmail icon and create a new webmail icon or interface. They won't need to log in again if you end up using an API call to store their data possibly. You may wish to post for suggestions on the developer's section of the forum.

There's no better solution for backup MX in cPanel than what I've suggested that I am aware of doing. If there were, I'd have suggested it.
Thanks much!!