How to setup External Mail server on cPanel Hosting

Posted on 21. Jan, 2008 by in cPanel Guidelines, Linux Tutorials, Techno Babble

If you are running your or your clients are running their own private exchange server in the office and need an external mail server set up from the cPanel server pointing to your exchange server then you will need to follow those steps below

Go into WHM / DNS Functions / Edit a DNS Zone
choose the domain > where it says

mail | 14400 | cname | domainname.com

change to

mail | 14400 | A | 111.111.111.111 ( which is the IP of your customers prefered mail server)

This will point the system to the new mail server !

and then log into your server using  SSH as root

Remove the domain from /etc/localdomains

pico /etc/localdomains

and put the domain into /etc/remotedomains

pico /etc/remotedomains

to find an MX record :

dig domainname.com MX

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Comments are closed.