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 [EMAIL PROTECTED] ... i
>> see the option check_local_user that maps $local_part to system
>> account but i need something that maps [EMAIL PROTECTED] 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} [EMAIL PROTECTED]

so the user in /etc/passwd is ... [EMAIL PROTECTED]:x:100:100::/home/domain/user


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to