cPanel Server As SmartHost

Suppose you have one server with cPanel WHM installed. But you do not wish to use this server to relay mail. You want some other server to relay your mails. In such a case you can configure your cPanel Server as SmartHost. Let us see.

For example,

server1.example.com is your server and you wish to relay your mails via server2.example.com then do following steps in server1.example.com

Steps On : server1.example.com ==>

Step -1 : Login on WHM

Go to https://server1.example.com:2087

Step – 2 : Configure Exim Server :

Within WHM navigate to: Main > Service Configuration > Exim Configuration Editor, click on the Advanced Editor button and search on the page for “Section: POSTMAILCOUNT” and add the following:

smart_route:
driver = manualroute
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
transport = remote_smtp
route_list = * server2.example.com::587
no_more

Step -3  : Save the configuration file and restart Exim Server.

Steps On : server2.example.com ==>

Step 1 : Login to WHM ==> Exim

Add server1.example.com ip in whitelist in

Whitelist: IP addresses that should not be checked against RBLs

Restart Exim !

That’s All !