Re: [exim] Some versions of Outlook Express can't use SMTP-A…

Top Page
Delete this message
Reply to this message
Author: Ernie Dunbar
Date:  
To: exim-users
Subject: Re: [exim] Some versions of Outlook Express can't use SMTP-Auth?
> On 2010-02-22 at 14:14 -0800, Ernie Dunbar wrote:
>> plain:
>> driver = plaintext
>> public_name = PLAIN
>> server_prompts = :
>>
>>  server_condition = "${if and { \
>>             {!eq{$2}{}} \
>>             {!eq{$3}{}} \
>>             {crypteq{$3}{${lookup mysql{SELECT password FROM mailbox
>> WHERE
>> username='${quote_mysql:$2}' }{$
>> value}fail}} }} {yes}{no}}"
>>  server_set_id = $2

>>
>>
>> login:
>>   driver = plaintext
>>   public_name = LOGIN
>>   server_prompts = "Username:: : Password::"
>>   server_condition = "${if and { \
>>             {!eq{$2}{}} \
>>             {!eq{$3}{}} \
>>             {crypteq{$3}{${lookup mysql{SELECT password FROM mailbox
>> WHERE
>> username='${quote_mysql:$2}' }{$
>> value}fail}} }} {yes}{no}}"
>>   server_set_id = $1

>
> There's the problem.
>
> In PLAIN, there are three parts to the authentication, the first
> typically empty (the authorisation id field, not the authentication id
> field).
>
> In LOGIN, there are only two.
>
> So for the login: driver, you use "server_set_id = $1" which differs,
> but if you look at the server_condition option, you haven't mapped $2 to
> $1 and $3 to $2.
>


So how do I map $2 to $1 and $3 to $2?