Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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,470
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Born2Kill

    Born2Kill Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    166
    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,470
    Likes Received:
    21
    Trophy Points:
    463
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Born2Kill

    Born2Kill Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    166
    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,470
    Likes Received:
    21
    Trophy Points:
    463
    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
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Born2Kill

    Born2Kill Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    166
    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,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    That's great, glad it works :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice