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.

Exim: Remote relay except specific domains

Discussion in 'E-mail Discussions' started by JacobHansen, Oct 15, 2013.

  1. JacobHansen

    JacobHansen Member

    Joined:
    Mar 20, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I have setup a remote relay to send emails due to several problems with emails in junk folders etc. As such I wish to use an remote SMTP service which specialise in these things.

    I've set it up and it seems to be working correctly, see setting below.

    Is there anyway to setup e-mails to specific domains and/or local email accounts to NOT use the remote smtp server and just use "inbuilt" one so to speak? Should the code be in the "MIDDLE" sections instead of "START" sections or how does it work?

    Any help is much appreciated.

    Exim Settings:

    ROUTERSTART:

    mandrill_route:
    driver = manualroute
    transport = domain_relay
    route_list = * smtp.domain.com

    TRANSPORTSTART
    mandrill_relay:
    driver = smtp
    port = 587
    hosts_require_auth = $host_address
    hosts_require_tls = $host_address

    And there's also on for AUTH but no need to put that in here.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You may be able to route email for specific domain names through the remote mail server, and leave all others locally. There is a thread on this at:

    Forward certain domains through smart host

    Thank you.
     
  3. JacobHansen

    JacobHansen Member

    Joined:
    Mar 20, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Thanks. Do you know if there is any way to do say: if MX server is pointing to a local IP then use local routing otherwise use the SMTP relay?

    Secondly, we seem to have a problem with emails going into a bounce loop when receiving e-mails. Sending works just fine however when receiving mails it goes all crazy. Example: Droplr • Screen Shot 2013-10-19 at 12.24.41.png where test2@chosting.pro is a local mailbox on the server with the rules in the original thread. So it seems like when it receives an email it also tries to relay it using the setup SMTP relay, but it really shouldn't do that. Any ideas on a fix?
     
Loading...

Share This Page