Re: [exim] multiple domains

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: David Woodhouse
Dátum:  
Címzett: Ezequiel Larrarte
CC: exim-users
Tárgy: Re: [exim] multiple domains
On Wed, 2006-09-13 at 15:43 -0300, Ezequiel Larrarte wrote:
> How can i tell exim that local users are of the form usr@domain? ... i
> see the option check_local_user that maps $local_part to system
> account but i need something that maps $local_part@$domain to system
> account.


Try something like

user = ${lookup {$local_part}lsearch{/etc/lusers/$domain} {$value}fail}

You didn't specify _how_ that information is available on your system,
so the '{$local_part}lsearch{/etc/lusers/$domain}' bit is a complete
guess, but it should be enough of an example for you to work from

Make sure it's set up so that if the lookup _fails_ (i.e. it's a
nonexistent user) it'll pass on to the next router, which is likely to
be an unconditional fail with 'unknown user'. I think the 'fail' in the
above will suffice to achieve that -- otherwise use an explicit
'condition ='

--
dwmw2