Re: [Exim] setting hosts in directors

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Phil Chambers
CC: exim-users
Subject: Re: [Exim] setting hosts in directors
On Fri, 27 Oct 2000, Phil Chambers wrote:

> Unfortunately there is no "hosts" option for directors, which seems odd since there
> is a "fallback_hosts" option.
>
> What am I missing?


A sense of history? :-) This is a consequence of the way Exim has
developed. Directors cannot generate host lists; routers can. But, as
you point out, directors can generate fallback_hosts - this feature was
added later. Routers and directors have got a lot more like each other;
maybe one day they will merge.

Meanwhile:

> director:
> driver = smartuser
> domains = <host-list>
> no_rewrite
> transport = yyy
> new_address = ${local_part}@<lookup to get "host-x">
>
> transport yyy:
> driver = smtp
> gethostbyname
> hosts = <lookup "host-x" in a file to get "host">


What is the contents of <host-list>? If it is a lookup, have you
discovered the $domain_data variable? It might be just what you need.
(But you need a relatively recent version of Exim to use it in the
transport.)

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.