Peter Eisch wrote:
Ok, this is curious:
<- 250 AUTH PLAIN LOGIN
-> AUTH LOGIN
<- 334 VXNlcm5hbWU6
That is the base64 encoded string "Username:"
-> cGVpc2No
This is your username (again base64 encoded).
<- 334 UGFzc3dvcmQ6
That is the string "Password:" (again in base64),
-> NDJTRmM4ZDQ=
That is your password (again base64 encoded). Note that you just showed
us your actual password (it is encoded, not encrypted, which is why
PLAIN and LOGIN are lame). You may want to change that; I've done this
unintentionally too... :(
<** 535 Authentication failed for - auth_imap - insufficient credentials
Researching why auth_imap is throwing that error is actually more
important here. That string "insufficient credentials" doesn't exist in
the qpsmtpd code, so it is happening outside of our direct control. If
you modified the plugin, we can't help you without seeing what you
changed. You should just add a $self->log(LOGDEBUG,...) to display all
of the parameters passed in to auth_imap() so you can see what is happening.
-> AUTH PLAIN THISISCHANGED==
<** 500 Unrecognized command
*** No authentication type succeeded
-> QUIT
The telnet AUTH PLAIN succeeded when you did it manually because you
hadn't already failed with AUTH LOGIN. This isn't how the AUTH
mechanism is supposed to work; you should be able to try multiple
methods until one succeeds. I'm not sure what to say about that, other
than upgrade to trunk and try again; there was some work done to the
auth routines after 0.31 was released.
John