Re: [exim] SMTP Authentication Fails, expanded string:false

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: exim-users
Subject: Re: [exim] SMTP Authentication Fails, expanded string:false
luda posch <ludaludaluda@???> (Do 06 Jan 2011 19:11:36 CET):
> Hi,
>
> I had set up successfully exim on a test server, smtp authentication and the
> like worked great.
>
> So in migrating from the test server to a would be production server, all
> works well except smtp authentication.
>
> I md5summed all the relevant config files for both servers and they appear
> to match.
>
> To test authentication, I used 'exim -bh 127.0.0.1' and this is the output I
> got for the problem machine:
>
> >>> courier_plain authenticator:
> > >>> $auth1 =
> > >>> $auth2 = smtp
> > >>> $auth3 = password
> > >>> $1 =
> > >>> $2 = smtp
> > >>> $3 = password
> > >>> expanded string: false
> > 535 Incorrect authentication data
> > LOG: [2215] courier_plain authenticator failed for localhost ()
> > [127.0.0.1]: 535 Incorrect authentication data (set_id=smtp)
> >
>
> I did the same thing on the test server and got:
>
> >>> courier_plain authenticator:
> > >>> $auth1 =
> > >>> $auth2 = smtp
> > >>> $auth3 = password
> > >>> $1 =
> > >>> $2 = smtp
> > >>> $3 = password
> > >>> expanded string: true
> > 235 Authentication succeeded
> >
>
> So it appears "expanded string" is what is causing the failure, but I do not
> know which string is failing to expand...
>
> Here is the courier_plain config:
>
> courier_plain:
> >     driver = plaintext
> >     public_name = PLAIN
> >     server_prompts = :
> >     server_condition = ${if and{{!match {$auth2}{\N[/]\N}}{eq{${if match
> > {$auth2}{\N[+%:@]\N}{${lookup{${extract{2}{+%:@}{$auth2}}}lsearch{/etc/demodomains}{yes}}}{${lookup{$auth2}lsearch{/etc/demousers}{yes}}}}}{}}{!eq{${extract{address}{${readsocket{/var/spool/authdaemon/socket}{AUTH
> > ${strlen:exim\{$sender_host_address\|$received_ip_address\}\nlogin\n$auth2\n$auth3\n}\nexim\{$sender_host_address\|$received_ip_address\}\nlogin\n$auth2\n$auth3\n}}}}}{}}}{true}{false}}
> >     server_set_id = $auth2

> >


The expansion strings looks far too complex for me :) - I'd try to
"strace" the process to get information about what it is talking to the
courier socket. (If talking at all.) And I'd try, if "-d-all+lookup",
"-d-all+expand" or even "-d+all" provides you some more information about
what's going on.

    swaks --pipe 'strace exim           -bh 127.0.0.1' -au $user -ap $pass -q mail
    swaks --pipe '       exim -d+expand -bh 127.0.0.1' -au $user -ap $pass -q mail


--
Heiko :: dresden : linux : SCHLITTERMANN.de
GPG Key 48D0359B : 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B