The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Route mails via a different cpanel server ??

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

  1. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  2. Eric

    Eric Administrator
    Staff Member

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

    This could be done via smarthosts in your Exim Config.

    Thanks!
     
  3. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  4. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    18
    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!!!
     
    #4 arunsv84, Oct 3, 2012
    Last edited: Oct 3, 2012
  5. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Arun,

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

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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
     
Loading...

Share This Page