Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    25

    Default Use remote smpt server

    Hello!

    How can I configure exim to use a remote smpt server for sending e-mails?
    I ask because we are having problems with hotmail and yahoo, we are in a blacklist them. So I would like to authenticate with that problematic server, but use another server for sending messages, how to do this?

    Sorry my bad english!

    Thanks!

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Use remote smpt server

    You would likely want to use a smart host router to route the emails:

    Mailing List Archive: Router/Transport Problem with multiple entries

    You'd need to create a file called /etc/staticroutes with the following:

    Code:
    domain1.com: IP#
    domain2.com: IP#
    domain3.com: IP#
    and so on
    Or, the following in the file:

    Code:
    domain1.com: mail.location1.com (the MX record pointing to the off site server)
    domain2.com: mail.location1.com (the MX record pointing to the off site server)
    domain3.com: mail.location1.com (the MX record pointing to the off site server)
    and so on
    Next, you would need to go to WHM > Exim Configuration Editor > Advanced Editor and locate the routers area there, then put this into that routers box:

    Code:
    static_route:
    driver = manualroute
    transport = remote_smtp_smart
    route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}
    At that point, you'd then locate the transports section in the Advanced Editor for exim and place the following:

    Code:
    remote_smtp_smart:
    driver = smtp
    port = 25
    delay_after_cutoff = false
    hosts = ${lookup{$domain}lsearch{/etc/staticroutes}}
    hosts_override
    Save that area, then test sending an email as one of the domains to see the results.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Remote SMPT - Multiple random IP's
    By hellomotow in forum E-mail Discussions
    Replies: 0
    Last Post: 11-21-2011, 07:28 PM
  2. problems with the accountant of SMPT
    By cenit in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-06-2006, 07:43 PM
  3. Replies: 1
    Last Post: 09-17-2005, 12:32 AM
  4. SMPT errors
    By AlexV in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-22-2004, 11:27 AM
  5. Lost SMPT
    By fluxbox in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-18-2003, 08:59 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube