Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    103

    Default Exim Experts plz Help - manual routing to remote server

    One of the domain on my server uses their own mail server. I have put the records in the dns zones and they receive emails from other servers.

    However, when an email is sent from our server e.g. through an enquiry form. Exim won't deliver the mail to the remote server and gives:

    R=virtual_aliases: No Such User Here

    Mind you, no mail users have been set up on our server, since the domain is not using our server for mail anyway.

    Is there any way I can tell to route all emails for that domain to the remote smtp.

    Thanks very much for your help.

    ps.

    OK, I went to Exim advanced config editor and added:

    special:
    driver = manualroute
    transport = remote_smtp
    route_list = domain.com host.com


    (as per exim's faq)
    http://wiki.exim.org/FAQ/Routing_to_remote_hosts/Q0316

    It seemed to work. But now, I don't know how to list more domains and hosts. Do I need to repeat the above for each domain, or can I separate them by comma, etc.
    Last edited by electron33; 01-25-2008 at 10:19 AM.

  2. #2
    Member
    Join Date
    Oct 2005
    Posts
    14

    Default

    I have the same problem. I dont use the email in WHM/Cpanel. And the same thing is going on with all my domains hosted on the server. A nice work around would be good.

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    103

    Default

    This seems to be working for me:

    Add the following to your exim config via WHM:

    OK, I went to Exim advanced config editor and added:

    special:
    driver = manualroute
    transport = remote_smtp
    route_list = domain1.com somesmtp.com; domain2.com somesmtp2.com

  4. #4
    Member
    Join Date
    Feb 2009
    Posts
    31

    Default

    how to manual route for spesific email account?

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by wp11b View Post
    how to manual route for spesific email account?
    Routing to a "Smart Host" for mail delivery could be setup on a per-domain level as mentioned earlier in this thread; however, I am not sure how feasible or possible it would be to attempt using a smart host for only a single e-mail account. I recommend using a setup that routes on a per-domain basis as this will reduce the complexity involved of an already custom solution. For additional details please reference the following forums post:
    cPanel Forums - View Single Post - Configuring Exim to use a Smart Host

  6. #6
    Member
    Join Date
    Feb 2009
    Posts
    31

    Default

    where i must add this section at exim ?

    special:
    driver = manualroute
    transport = remote_smtp
    route_list = domain.com smtp.domain.com

  7. #7
    Registered User
    Join Date
    Jan 2005
    Posts
    2

    Default

    Here is a way to setup smart hosts for specific email accounts.

    Use the following commands to create a file with the email addresses and smart hosts.

    touch /etc/static_route
    chown root:mail /etc/static_route
    chmod 660 /etc/static_route

    Use vi or pico to edit the /etc/static_route file:

    user1@domain.com: smarthost.domain.com
    user2@domain.com: smarthost.domain.com

    In the advanced exim editor add the following to the first box below the # ROUTERS CONFIGURATION # section.

    static_route:
    driver = manualroute
    transport = remote_smtp
    route_data = ${lookup{$local_part@$domain}lsearch{/etc/static_route}}

    That's it. You can make changes to the /etc/static_route file without having to restart exim.

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    May 2007
    Location
    chicago, IL
    Posts
    24

    Default

    I needed to relay all remote domains to a central mail server but bypass the local domains and use exim to route that locally.

    smarthost:
    driver = manualroute
    domains = !+local_domains
    transport = remote_smtp
    route_data = "mail.foo.domain.com"

    I had to put the FQDN into /etc/localhosts to get it to work and told exim to lookup how it would route a local domain, and then a remote domain:

    # exim -bt foo@localdomain.com
    fstestc@staging.test.com
    <-- foo@localdomain.com
    router = localuser, transport = local_delivery

    # exim -bt foo@google.com
    foo@google.com
    router = smarthost, transport = remote_smtp
    host mail.foo.domain.com [1.2.3.4]

Similar Threads & Tags
Similar threads

  1. Exim experts: blocking non auth smtp
    By clook in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 03-31-2007, 09:27 PM
  2. For all the exim experts - problems with bounces
    By ctmattice in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-27-2006, 02:36 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube