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.
--
<fanf@???> <dot@???>
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}}