Re: [Exim] Exim 4.10 on OS X Server - Relay Problems

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Giuliano Gavazzi
CC: dave@nisus.com, exim-users@exim.org
Subject: Re: [Exim] Exim 4.10 on OS X Server - Relay Problems
On Wed, 1 Jan 2003, Giuliano Gavazzi wrote:

> >Exim 4.12 provides a "passwd"-lookup.
>
> Uh, thanks. So I guess this could be used as in:
>
> login:
>    driver = plaintext
>    public_name = LOGIN
>    server_prompts = "Username:: : Password::"
>    server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}} \
>                            {crypteq{$2}{\
>                                 ${lookup passwd {$1}{$value}{*}}}}}{1}{0}}"


No, you need to use extract to get the value you want, just check NewStuff
from the exim4.12 docs.

it will be more like

server_condition = ${if crypteq {$2} \
         {${lookup passwd {$1} {${extract{1}{:}{$value}}} fail }}{1}{0}}


As usual, this is unchecked :)

ciao