Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    BANNED
    Join Date
    Jun 2003
    Posts
    293

    Default smtp routing

    Here is what I would like to accomplish:

    I want to use my exim as a backup smtp server for a certain domain. That means I need to configure it to accept mail for domain.com and also to let exim know to forward all mail for domain.com to server.domain.com.
    I realize that this could be done with some mx record tweaking in DNS but this is not an option. Also, someone suggested in the forum to enter the domain into /etc/remotedomains but this file is not even used by the exim conf at the moment.
    So is there an easy way to do it?

    thanks

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Sep 2003
    Posts
    389

    Default RE: smtp routing

    Dear cyberspirit,

    You can try this.
    Add the following lines in exim.conf

    Use this as your first router:
    special:
    driver = manualroute
    transport = remote_smtp
    route_list = the.particular.domain the.other.host

    You will also need to adjust the ACL for incoming SMTP so that this domain is accepted for relaying. If you are using the default configuration, there is a domain list called relay_domains that is set up for this.

    For more details,refer

    http://www.exim.org/exim-html-4.20/doc/html/FAQ_3.html#TOC127

    Regards,

    cPanel.net Support Ticket Number:

  3. #3
    Member Jemshi's Avatar
    Join Date
    Sep 2003
    Location
    India
    Posts
    217

    Default

    In cpanel server, adding the host to

    /etc/secondarymx wont do the purpose ?

    cPanel.net Support Ticket Number:
    Jemshad O K
    Sys Admin
    Bobcares.com
    http://www.poornam.com
    Winners don't do different things. They do things differently

  4. #4
    BANNED
    Join Date
    Jun 2003
    Posts
    293

    Default

    Mickeymouse,
    Where would you add this additional router exactly in the exim configuration?

    cPanel.net Support Ticket Number:

  5. #5
    BANNED
    Join Date
    Jun 2003
    Posts
    293

    Default

    Ok, here is what I did and it works perfect:

    In the advanced mode exim config editor in whm I added this line to the first open space right after "cpanel exim 4 config":

    domainlist secondarymx_domains = lsearch;/etc/secondarymx


    Then I went further down to the "Routers Configuration" and added this right after "order does matter"

    special:
    driver = manualroute
    domains = +secondarymx_domains
    transport = remote_smtp
    route_list = * host.domain.com

    (replace host.domain.com with the smtp server that should receive all messages from these domains).

    Now all you have to do is to add all the domains you want to function as a backup mx to the file /etc/secondarymx
    and you are all set!

    cPanel.net Support Ticket Number:

Similar Threads & Tags
Similar threads

  1. Unable to authenticate to SMTP server - smtp-auth
    By DWHS.net in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-21-2010, 01:49 AM
  2. customized SMTP routing
    By mrcpu in forum E-mail Discussions
    Replies: 0
    Last Post: 02-22-2010, 07:35 PM
  3. routing outbound smtp through another server
    By theBassTender in forum E-mail Discussions
    Replies: 3
    Last Post: 04-04-2009, 03:50 AM
  4. Replies: 5
    Last Post: 09-23-2008, 04:30 PM
  5. Exim routing...
    By dr2web in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-16-2006, 12:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube