Results 1 to 3 of 3

Thread: SMTP Relay

  1. #1
    Registered Member grayloon's Avatar
    Join Date
    Oct 2007
    Location
    Evansville, IN
    Posts
    68
    cPanel/WHM Access Level

    Root Administrator

    Exclamation SMTP Relay

    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. #2
    Registered Member grayloon's Avatar
    Join Date
    Oct 2007
    Location
    Evansville, IN
    Posts
    68
    cPanel/WHM Access Level

    Root Administrator

    Lightbulb

    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. #3
    Registered Member
    Join Date
    Sep 2003
    Posts
    7

    Default SMTP relay

    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.
    John
    www.servtec.co.uk
    Webhosting, RVSkin & RVSiteBuilder

Similar Threads

  1. SMTP relay local host
    By subin_hutton in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-18-2011, 07:59 AM
  2. SMTP relay to Barracuda?
    By fizz in forum E-mail Discussions
    Replies: 3
    Last Post: 01-18-2011, 06:49 AM
  3. Postfix SMTP authentication on remote relay serve
    By SoftDux in forum E-mail Discussions
    Replies: 2
    Last Post: 08-02-2010, 08:34 AM
  4. SMTP Relay on port 26
    By webcave in forum E-mail Discussions
    Replies: 3
    Last Post: 06-17-2009, 06:50 PM
  5. SMTP relay from an IP address
    By moronhead in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 07-16-2002, 11:32 PM
bargain