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 Relay

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

  1. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    98
    Likes Received:
    2
    Trophy Points:
    8
    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:
    98
    Likes Received:
    2
    Trophy Points:
    8
    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:
    1
    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.
     
Loading...

Share This Page