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 ?

Discussion in 'General Discussion' started by Born2Kill, Sep 20, 2005.

  1. Born2Kill

    Born2Kill Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    localhost or dev/null
    how to make exim relay through other SMTP server ?

    I have about 10 Cpanel servers and i would like to all Exim's RELAY through one SMTP ?

    How to do that ?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You'd need to use a smart router. Do asearch on the forum for that and you should find the method for creating one.
     
  3. Born2Kill

    Born2Kill Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    localhost or dev/null
    but what if i send email to domain which is in localdomains on same server than mail will go to smart route server and back ?

    how to resolve this ?
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Well, you can either list the domains that you want to use the smart router, or simply configure it to exclude domains in /etc/localdomains
     
  5. Born2Kill

    Born2Kill Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    localhost or dev/null

    I used this for smart router.

    # ALL MAILS TO SMTP GATEWAY

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

    In /etc/staticroutes a have this

    *: smtp-gateway.domain.ltd


    How to exclude domains in /etc/localdomains ?
     
    #5 Born2Kill, Sep 24, 2005
    Last edited: Sep 24, 2005
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Try this:

    Code:
    static_route:
      driver = manualroute
      transport = remote_smtp
      route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}
      domains = ! +local_domains
    
     
  7. Born2Kill

    Born2Kill Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    localhost or dev/null
    Thanks chirpy now all works. All servers with exim have one smtp gateway :)

    Thanks a lot
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That's great, glad it works :)
     
Loading...

Share This Page