Re: virtual mail domains with 1 config file ?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: mark david mcCreary
CC: exim-users
Subject: Re: virtual mail domains with 1 config file ?
On Mon, 4 Aug 1997, mark david mcCreary wrote:

> smtp:
> driver = smtp;
> end
>
> #                      DIRECTORS CONFIGURATION                       #

>
> virtual_specific:
> driver = smartuser,
> domains = "partial-lsearch;/etc/valid.domains",
> transport = smtp;
> new_address = ${lookup{$local_part@$domain}lsearch{/etc/aliases.virtual} {$value} fail};


> I could use some clues about
>
>     smtp transport called with no hosts set

>
> Do I need to have a router in there somewhere.


Yes. If the smartuser director is used to direct a message to a
transport, as you have done, then the transport must be able to do a
delivery on its own. The smtp transport needs a list of hosts to deliver
to. If the incoming address doesn't supply such a list, then you have to
supply a list on the transport, which is of course a fixed list. This is
useful for smart hosts but probably not in this case.

An alternative way to use smartuser is *not* to specify a transport, but
just to specify a new address, as you have. In that case, the new
address is passed through the directors and routers just like new
addresses generated by aliasing, so provided it is picked up by some
router or director, it should work.


-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714