Authentication Failure

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Sep 27 12:40:48 BST 2011


On Sun, 25 Sep 2011 21:45:26 +0000, SimonChambers wrote:

> I am having a slight difficulty configuring my offlineimap client ( I am using the latest git and the 6.3.4 release ) to authenticate with my imap server.  I am able to log in using alternate clients, but not offlineimap.

> [Repository Remote-Home]
> type = IMAP
> ssl=no
> remotehost = mail.simonchambers.org
> remoteuser = mail at simonchambers.org
> remotepass = *********

Hi there, this looks straightforward enough and should work, one would assume.

Your log shows that it first attempts to login via CRAM-MD5. It gets the challenge:

PDE1MzI3MzQ1MzAuMTMxNjk4NDk1N0Bwb3AtcHJveHktMDMubGl2ZW1haWwuY28udWs+

and returns the answer 

bWFpbEBzaW1vbmNoYW1iZXJzLm9yZyA1YjEyMDhkY2JjYWUzN2Q2ZDM5ZTJmZmNlNzkwODAxMA==\r\n
which the server comments with: NO LOGIN failed.\r\n :-(

It then attempts plaintext login, sending:

GLGE5 LOGIN mail at simonchambers.org "*********"

to the server, which returns "NO: LOGIN failed."
and the server then drops the connection.

This is weird, as the same string in your telnet session works:
. login mail at simonchambers.org "*********"

Dumb question, but have you verified that the passwords are actually the
same? I suspect that it might actually be something with system
encodings and file encodings that might lead to special chars not being
read in correctly?

You might want to try first to use a ui that supports password querying,
such as TTYUI, and leave the password out of your config, so that it
asks you to type it directly in the console. Does this work?

I have created an experimental branch that reads in a users config files
per his preferred encoding (eg 'UTF-8'). If you are comfortable with
git, you might want to try if the branch WIP/ConfigEncoding at my repo at
git://github.com/spaetz/offlineimap.git works.

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110927/cb3fcc4b/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list