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!

SMTP Relay

Discussion in 'E-mail Discussion' started by grayloon, Dec 17, 2007.

  1. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    113
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Evansville, IN
    cPanel Access Level:
    Root Administrator
    Twitter:
    I need Exim to direct all outgoing mail to an external mail server. I think I need Exim to ignore /etc/localdomains or something and add a new router in /etc/exim.conf. Can anyone elaborate on this? How can I prevent cPanel updates from overwriting my custom exim.conf file?
     
  2. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    113
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Evansville, IN
    cPanel Access Level:
    Root Administrator
    Twitter:
    Should this work as the first listing under ROUTERS CONFIGURATION?

    send_to_gateway:
    driver = manualroute
    domains = !+local_domains
    transport = remote_smtp
    route_list = * newmail.grayloon.com
     
  3. CoreOperations

    Joined:
    Sep 20, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    Try this matey

    First box in routers

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

    now create a file in /etc/staticroutes that looks like this


    domain.net: 62.xx.xxx.xxx
    domain.co.uk: 62.xx.xxx.xxx
    domain2.co.uk: 62.xx.xxx.xxx
    domain2.net: 62.xx.xxx.xxx

    That will route (once it has been spam checked) to the IP of their mailserver.
     
    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