Re: Smart relay setting for Exim...
On Sun, Jan 19, 2003 at 01:08:17AM +0100, Florian Jenn wrote:
> Darryl L. Pierce schrieb am Fri, Jan 17, 2003 at 07:39:51PM -0500:
>
> Hi!
>
> > My question, is there a way to configure Exim to use my ISP's SMTP
> > server and my SMTP server at work without having to manually change
> > settings when I go from one place to the other?
>
> >From the Exim FAQ:
>
> Q0326: What I'd like to do is have alternative smarthosts, where the
> one to be used is determined by which ISP I'm connected to.
>
> A0326: The simplest way to do this is to use a lookup in a domainlist
> router. For example:
>
> smarthost:
> driver = domainlist
> transport = remote_smtp
> route_list = * ${lookup{smart}lsearch{/etc/smarthost}{$value}} byname
>
> where you arrange for the name (or IP address) of the relevant smart
> host to be placed in /etc/smarthost when you connect, in the form
>
> smart: smart.host.name.or.ip
>
> By keeping the data out of the main configuration file, you avoid
> having to HUP the daemon when it changes.
>
> (end quote)
>
> On my notebook, changing the /etc/smarthost file is done by whereami.
>
Guess it pays to read the documentation ;)
Thanks, I've been wondering how to do this for years now!
Drew
--
PGP public key available at http://people.debian.org/~dparsons/drewskey.txt
Fingerprint: A110 EAE1 D7D2 8076 5FE0 EC0A B6CE 7041 6412 4E4A
Reply to: