Seperate mail server behind Proxy

Operating System & Version
centos 7.8
cPanel & WHM Version
v88.0.13

parracite

Registered
Aug 1, 2020
1
0
1
United Kingdom
cPanel Access Level
Root Administrator
Hi all,
I am new to cpanel. Previously I have been using Virtualmin which allowed me to proxy a domain name over to another internal sever for webmail access.

So lets say mail.example.com would hit the web server and then redirect to http://[Internal IP of mail server] it would allow me to load the webmail of the secondary local server using https protocols and verified the ssl installed externally.

As I only currently have 1 public IP I cannot map port 80 to both servers so need to redirect port 80 and 443 for this specific domain to the secondary local server (the mail server is a windows server using IMAP webmail if relevant).

Any help would be appreciated!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,262
313
Houston
Hello,

Wouldn't it just be a matter of setting the A record for mail.domain.tld to the secondary server? Then you'd add that as the MX record and mail would be delivered to the alternate server and not be managed at all on the local cPanel server. You'd install the SSL certificate and manage all of that on the secondary server. The only thing you wouldn't have would be an internal IP address for mail.
 

cPAdminsMichael

Well-Known Member
Dec 19, 2016
161
56
103
Denmark
cPanel Access Level
Root Administrator