Re: [exim] getting auth to work under cygwin

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Pierre A. Humblet
Data:  
Para: exim-users
Assunto: Re: [exim] getting auth to work under cygwin

----- Original Message -----
From: "Philip Hazel"
To: "Zbigniew Szalbot"
Sent: Friday, August 04, 2006 4:38 AM
Subject: Re: [exim] getting auth to work under cygwin


> On Fri, 4 Aug 2006, Zbigniew Szalbot wrote:
>
>> > Does your file have crypted passwords? If they're plain text
>> > passwords, sustitute 'eq' for 'crypteq' in your server_condition.
>>
>> Yes, I created the file in notepad out of sheer despair (it is a plain text file). I changed
>> the
>> string to eq but again incorrect authentication data.
>>
>> 2006-08-04 09:12:31 login authenticator failed for ([192.168.11.26]) [192.168.11.1]: 535
>> Incorrect authentication data
>
> The problem is that very, very few people here have any experience of
> running Exim under Cygwin.
>
> The "generic" advice on how to debug this would be to run Exim with
> full debugging turned on (-d+all) so that you can see exactly what it is
> doing when it is checking the authentication.
>


It works for me, running exim 4.62 on Windows XP, with a local Outlook Express as client.
Below are snippets from the exim configuration file and the debug output.

Pierre

$: cat /etc/auth
pierre:xGyFso6o3NyqA


fixed_login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = Username:: : Password::
  server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}} \
    {crypteq{$2}{${extract{1}{:} \
    {${lookup{$1}lsearch{/etc/auth}{$value}{*:*}}}}}}}{1}{0}}"



12:14:31  6112 SMTP<< AUTH LOGIN
12:14:31  6112 SMTP>> 334 VXNlcm5hbWU6
12:14:31  6112 SMTP<< cGllcnJl
12:14:31  6112 SMTP>> 334 UGFzc3dvcmQ6
12:14:31  6112 SMTP<< dGVzdA==
12:14:31  6112 expanding: $1
12:14:31  6112    result: pierre
12:14:31  6112 expanding:
12:14:31  6112    result:
12:14:31  6112 expanding: $2
12:14:31  6112    result: test
12:14:31  6112 expanding:
12:14:31  6112    result:
12:14:31  6112 expanding: $2
12:14:31  6112    result: test
12:14:31  6112 expanding: 1
12:14:31  6112    result: 1
12:14:31  6112 expanding: :
12:14:31  6112    result: :
12:14:31  6112 expanding: $1
12:14:31  6112    result: pierre
12:14:31  6112 expanding: /etc/auth
12:14:31  6112    result: /etc/auth
12:14:31  6112 search_open: lsearch "/etc/auth"
12:14:31  6112 search_find: file="/etc/auth"
12:14:31  6112   key="pierre" partial=-1 affix=NULL starflags=0
12:14:31  6112 LRU list:
12:14:31  6112   :/etc/auth
12:14:31  6112   End
12:14:31  6112 internal_search_find: file="/etc/auth"
12:14:31  6112   type=lsearch key="pierre"
12:14:31  6112 file lookup required for pierre
12:14:31  6112   in /etc/auth
12:14:31  6112 lookup yielded: xGyFso6o3NyqA
12:14:31  6112 expanding: $value
12:14:31  6112    result: xGyFso6o3NyqA
12:14:31  6112 expanding: *:*
12:14:31  6112    result: *:*
12:14:31  6112 skipping: result is not used
12:14:31  6112 expanding: ${lookup{$1}lsearch{/etc/auth}{$value}{*:*}}
12:14:31  6112    result: xGyFso6o3NyqA
12:14:31  6112 expanding: ${extract{1}{:} {${lookup{$1}lsearch{/etc/auth}{$value}{*:*}}}}
12:14:31  6112    result: xGyFso6o3NyqA
12:14:31  6112 crypteq: using crypt()
12:14:31  6112   subject=xGyFso6o3NyqA
12:14:31  6112   crypted=xGyFso6o3NyqA
12:14:31  6112 condition: and {{!eq{$1}{}}{!eq{$2}{}} {crypteq{$2}{${extract{1}{:}
{${lookup{$1}lsearch{/etc/auth}{$value}{*:*}}}}}}}
12:14:31  6112    result: true
12:14:31  6112 expanding: 1
12:14:31  6112    result: 1
12:14:31  6112 expanding: 0
12:14:31  6112    result: 0
12:14:31  6112 skipping: result is not used
12:14:31  6112 expanding: ${if and {{!eq{$1}{}}{!eq{$2}{}} {crypteq{$2}{${extract{1}{:}
{${lookup{$1}lsearch{/etc/auth}{$value}{*:*}}}}}}}{1}{0}}
12:14:31  6112    result: 1
12:14:31  6112 fixed_login authenticator:
12:14:31  6112   $auth1 = pierre
12:14:31  6112   $auth2 = test
12:14:31  6112   $1 = pierre
12:14:31  6112   $2 = test
12:14:31  6112 expanded string: 1
12:14:31  6112 SMTP>> 235 Authentication succeeded