Re: [Exim] Re: SMTP AUTH implementation

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Norihisa Washitake
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] Re: SMTP AUTH implementation
Hi all.

I post this message, for a person who may be bothering by
this kind of problem.

Philip Hazel gave me a reply about this, and it proved
to be a problem of my misleading around "lookup" function
and of the old "crypteq" function. Exim 3.22 worked
without trouble, but that was the problem.

My old config for AUTH LOGIN:
> login:
>    driver = plaintext
>    public_name = LOGIN
>    server_prompts = "Username:: : Password::"
>    server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}} \
>       {crypteq{$2}{${extract{2}{:} \
>       {${lookup{${local_part:$1}}lsearch{/etc/mail/virtual/${domain:$1}/passwd} \
>       {$value}{*:*}}}}}}}{1}{0}}"
>    server_set_id = $1


but now:
> login:
>    driver = plaintext
>    public_name = LOGIN
>    server_prompts = "Username:: : Password::"
>    server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}} \
>       {crypteq{$2}{ \
>       ${lookup{${local_part:$1}}lsearch{/etc/mail/virtual/${domain:$1}/passwd} \
>       {$value}{*:*}}}}}}{1}{0}}"
>    server_set_id = $1


"lookup" function returns the value in 'key:value' pair, so I did not
have to write "extract". This configuration seems to be working fine.

Thanks Philips, and all.

Regards,
--
Norihisa Washitake <wassy@???>