Autor: Ian FREISLICHFecha: 2006-11-07 18:28 UTC A: Guo Wei-WeiCc: exim-usersAsunto: Re: [exim] strange problem with smarthosts
"Guo Wei-Wei" wrote:
> Hi, everyone,
>
> I'm trying to build a home MTA with exim 4. I have two 2 ISP accounts,
> AAA@ISP1 and BBB@ISP2. I want my Exim server to send mail from
> AAA@ISP1 via ISP1, and mail from your BBB@ISP2 via ISP2.
Here's what I do:
# Routers
source_route:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
senders = ${lookup{$sender_address_domain}lsearch{/usr/local/etc/exim/source_routes}{*@$sender_address_domain} fail }
route_data = ${lookup{$sender_address_domain}lsearch{/usr/local/etc/exim/source_routes}{$value}}
no_more
# Transports
remote_smtp:
driver = smtp
hosts_require_auth = ${lookup{$host}lsearch{/usr/local/etc/exim/auth_hosts}{$host}{}}
# Authenticators
login:
driver = plaintext
public_name = LOGIN
server_prompts = Username:: : Password::
server_condition = no
server_set_id = $1
client_send = ${extract{authid}{${lookup{$host}lsearch{/usr/local/etc/exim/auth_hosts}{$value}{}}}} : ${extract{authpass}{${lookup{$host}lsearch{/usr/local/etc/exim/auth_hosts}{$value}{}}}}
/usr/local/etc/exim/source_routes:
freislich.nom.za: brane.freislich.nom.za
hetzner.co.za: mailserver.hetzner.co.za
/usr/local/etc/exim/auth_hosts:
brane.freislich.nom.za: authid=ianf authpass=foobarfishpaste
mailserver.hetzner.co.za: authid=if@??? authpass="passw#d"
Obviously these are not my passwords. I've thought about condensing
these two files but it's now working and my time is short.
Ian
--
Ian Freislich