"Guo Wei-Wei" wrote:
> Hi, everyone,
>
> I'm trying to build a home MTA with exim 4. I have two 2 ISP accounts,
> [EMAIL PROTECTED] and [EMAIL PROTECTED] I want my Exim server to send mail
> from
> [EMAIL PROTECTED] via ISP1, and mail from your [EMAIL PROTECTED] 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/[EMAIL
PROTECTED] 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: [EMAIL PROTECTED] 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
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/