[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MTA: usage of smart host



On Wed, Apr 09, 2003 at 10:46:09AM -0700, Paul Johnson wrote:
| On Wed, Apr 09, 2003 at 12:07:19PM -0400, Derrick 'dman' Hudson wrote:

| > I have my system set up to connect directly, except for a few domains
| > which I've found won't take my connection.  For those I route them
| > through a smarthost.
| 
| I might get around to doing that sometime.  Not really a priority, though.

For exim 4 (needs a little tweaking for exim 3) :

--- exim.conf, routers section ---
smarthost_domains:
    driver = manualroute
    transport = remote_smtp

    # The domains accepted by this router are keys in the db.
    domains = lsearch;/etc/exim/smarthost.domains
    # Once the router accepts the domain, all such domains are routed
    # through martha.
    route_list = * smtp.frontiernet.net byname

--- smarthost.domains ---
colondot.net :
earthling.net :
email.com :
iname.com :
schoolmail.com :



For postfix :

--- main.cf ---
transport_maps = hash:/etc/postfix/transport

--- /etc/postfix/transport ---
colondot.net        smtp:[smtp.frontiernet.net]
earthling.net       smtp:[smtp.frontiernet.net]
schoolmail.com      smtp:[smtp.frontiernet.net]
iname.com           smtp:[smtp.frontiernet.net]
email.com           smtp:[smtp.frontiernet.net]


Enjoy! :-)

-D

-- 
Like a gold ring in a pig's snout
is a beautiful woman who shows no discretion.
        Proverbs 11:22
 
http://dman.ddts.net/~dman/

Attachment: pgpXGTWgj6_2J.pgp
Description: PGP signature


Reply to: