Route mails via a different cpanel server ??

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Hello All,

One of my server is currently facing an issue with sending mails.

SO, i was wondering if i can route the mails from my other servers ip address ?

In short, Can server A send mails routing the mails via server B ?

Can this be done in any way ?

Thank you for all your time and assistance.
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Eric,

Thank you for the revert. But I am kind of not sure how to go about it, Can you provide me an example or a some online "how-to" on this ?

Thank you
 

arunsv84

Well-Known Member
Oct 20, 2008
372
1
68
127.0.0.1
cPanel Access Level
Root Administrator
You can try the following to configure a smart host.

Create /etc/exim.conf.local on the source server and add the following entries. Make sure to change the hostname or IP of the smart host server.

Code:
@[email protected]
smart_route:
driver = manualroute
domains = !+local_domains
transport = remote_smtp
route_list = * hostname.of.smarthost
Backup your exim.conf file. (/etc/exim.conf)

Execute the following.

Code:
/scripts/buildeximconf
/scripts/restartsrv_exim
Cheers!!!
 
Last edited:

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Arun,

Thank you so much, But don't I need to edit any thing on the remote server ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
If you are routing emails through another machine, you'll need to allow the IP of Server A (the one that is smart host routing the emails to the second server) onto Server B (the server that is going to send the emails). This is called relaying.

Here's a post on using /etc/alwaysrelay for that type of relaying. The file would be placed onto Server B, the one that is sending out the emails for you:

http://forums.cpanel.net/f43/add-ip-range-allowed-relay-hosts-268021.html#post1121531