Re: [Exim] Crazy expansion

Top Page

Reply to this message
Author: Vadim Vygonets
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}\

> 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}\

You get the idea.


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