Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Route mails via a different cpanel server ??

Discussion in 'E-mail Discussion' started by furquan, Oct 3, 2012.

  1. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    461
    Likes Received:
    3
    Trophy Points:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    751
    Likes Received:
    11
    Trophy Points:
    143
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    This could be done via smarthosts in your Exim Config.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    461
    Likes Received:
    3
    Trophy Points:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    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:
    @ROUTERSTART@
    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!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 arunsv84, Oct 3, 2012
    Last edited: Oct 3, 2012
  5. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    461
    Likes Received:
    3
    Trophy Points:
    168
    Arun,

    Thank you so much, But don't I need to edit any thing on the remote server ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice