Re: [Exim] Crazy expansion

Top Page
Delete this message
Reply to this message
Author: Vadim Vygonets
Date:  
To: exim-users
Subject: Re: [Exim] Crazy expansion
Quoth Vadim Vygonets on Sat, May 06, 2000:
>   server_condition = "${if eq {${if match{$1}{@}{yes}{no}}}{yes}\
>     {${if and{\
>         {match{$1@$2}{(^[^@]+)@([^@]+)@(.+)\\$}}\
>         {exists{/path/to/$2/passwd}}\
>         {crypteq {${lookup{$1}lsearch{/tmp/$2/passwd}{$value}}}\
>             {$3}}}\


It should be reversed:

        {crypteq {$3}\
            {${lookup{$1}lsearch{/path/to/$2/passwd}{$value}}}\


> server_set_id = $1


Well, it should probably be something like:

server_set_id = ${if eq{${if match{$1}{@}{yes}{no}}}{yes}{virtuser}{$1}}

  server_set_id = ${if eq{${if match{$1}{@}{yes}{no}}}{yes}\
    {extract{1}{@}{$1}}{$1}}


You get the idea.

Vadik.

-- 
Yes, you can get an account if you promise not to wear ties
anymore.
    -- Unknown sysadmin, 1998-10-27.