On Tue, 5 Jul 2005, Mike Mimic wrote:
>
> I would like to have a condition in localuser director
> which would fail if the user's UID is >= 500 and the
> shell is not valid (is not in the /etc/shells).

There's no such thing as a director in Exim 4. I'll assume you are
referring to the localuser router from the default Exim 4 configuration
file.

  condition = ${if >{500}{$local_user_uid} \
                   {${lookup  {$local_part} \
                      lsearch {/etc/passwd} \
                              {${lookup  {${extract {-1}{:} {$value} }} \
                                 lsearch {/etc/shells} \
                                         {yes} {no} }} \
                              {impossible} }} \
                   {system user} }

Tony.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

-- 
## 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