Re: [exim] multiple domains

Top Page
Delete this message
Reply to this message
Author: Ezequiel Larrarte
Date:  
To: David Woodhouse
CC: exim-users
Subject: Re: [exim] multiple domains
David Woodhouse wrote:
> 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 ='
>
>

I create the users like this:
# useradd -g users -G users -m -s /bin/bash -d
/home/${domain}/${local_part} ${local_part}@${domain}

so the user in /etc/passwd is ... user@domain:x:100:100::/home/domain/user