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.

smtp routing

Discussion in 'E-mail Discussions' started by cyberspirit, Sep 25, 2003.

  1. cyberspirit

    cyberspirit BANNED

    Joined:
    Jun 27, 2003
    Messages:
    293
    Likes Received:
    0
    Trophy Points:
    0
    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. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    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. Jemshi

    Jemshi Well-Known Member

    Joined:
    Sep 11, 2003
    Messages:
    210
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    In cpanel server, adding the host to

    /etc/secondarymx wont do the purpose ?

    cPanel.net Support Ticket Number:
     
  4. cyberspirit

    cyberspirit BANNED

    Joined:
    Jun 27, 2003
    Messages:
    293
    Likes Received:
    0
    Trophy Points:
    0
    Mickeymouse,
    Where would you add this additional router exactly in the exim configuration?

    cPanel.net Support Ticket Number:
     
  5. cyberspirit

    cyberspirit BANNED

    Joined:
    Jun 27, 2003
    Messages:
    293
    Likes Received:
    0
    Trophy Points:
    0
    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:
     
Loading...

Share This Page