On Thu, Jul 02, 2009 at 03:10:39PM +0200, TOPdesk Systeembeheer (beheer(a)TOPdesk.com)
wrote:
Hi everybody,
Since an upgrade to our backend IMAPS server (Zarafa 6.20.7), we have some trouble
authenticating via our perdition IMAP4S proxy (version 1.17-7etch1). I've enabled
debug and connection logging, and I see that the LOGIN command is splitted in 3 lines
instead of sending the whole command in one. Is that normal? Can I configure it somewhere?
Hi,
Sorry for the delay, I have been away.
its a while since I wrote that section of the code, so forgive me if I am a
little lose with the terminology surrounding it. The IMAP specification
allows for two different login formats. A simple one-line format. And a
slightly more complex multi-line format. The advantage of the latter being
that it can cope with any character in the username and password, as
opposed to the simple format which, for instance, doesn't allow for spaces
in the username.
For this reason perdition always uses the more complex format when talking
to real servers - it saves having to detect if the short format can be used
or not. Unfortunately it seems that your IMAP daemon doesn't support this
format (as indeed early versions of perdition did not).
Are you in a position to modify the perdition code? If so, it would be
good to see if changing to the short-format resolves your problem. The
relevant code is in imap4_out_authenticate() in perdition/imap4_out.c
If that works, I guess it would be good to provide an option to tell
perdition to use the short format - and perhaps return and appropriate
error if the username and login supplied can't use the short format.
Alternatively, if my diagnosis is correct, it might be good
to get this fixed in your IMAP daemon.