Re: exim on laptops: smarthost on demand
On Tue, Jul 29, 2003 at 03:13:11AM +0100, Steve Dobson wrote:
> Hi Andreas
[ router config ]
> You almost got it to work: I'm using the same lookup trick by I do a
> "bydns_a" not a "buname". Here is my smart host entry (with like breaks
> inclused where necessary:
> smarthost:
> driver = domainlist
> transport = smtp
> #
> # The following line allows dynamic routing of outgoing mail. The file
> # /var/state/exim/smarthost has the following format:
> # smarthost <smarthost>
> # It is written by a the various start up scripts to where outgoing mail
> # should be sent. When connected to my ISP (Demon) it points to
> # "post.demon.co.uk".
> route_list = "* ${lookup{smarthost}lsearch{/var/state/exim/smarthost}{$value}
> {no.smart.host}} bydns_a"
> end
You are just looking up the smarthost, this also worked for me. Problems
start when looking up the domain itself instead of using an asterisk.
greets Jimmy
--
Andreas "Jimmy" Gredler, andreas.gredler@gmx.at
Get my public key at www.g-tec.co.at
Reply to: