Bug 132391 - Regression : can't access my IMAP account from kmail anymore
Summary: Regression : can't access my IMAP account from kmail anymore
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-14 14:57 UTC by Vincent Panel
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Panel 2006-08-14 14:57:36 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Mandriva RPMs

After a recent update to KDE 3.5.4, I can't access my imap account anymore 
using kmail. I still can reach it through konqueror... (if I type the url 
as "imap://XXX"), so it's really a kmail problem.

The IMAP server is a microsoft exchange server and I use NTLM authentication.

The error message displayed is : "The process dealing with the protocol 
imap://XXX aborted" (translated from french... not accurate)

On the console, when launching kmail, one can read the following :

kmail: KMFolderImap::checkValidity of: /INBOX/
kmail: CheckValidity - waiting for connection
kmail: ERROR: Header read failed, errno=104
kmail: ERROR: Header has invalid size (-1)
kmail: slave died pid = 14321
Comment 1 Vincent Panel 2006-08-14 18:30:21 UTC
FYI, as a workaround, I had to switch to clear text authentication, but I'd rather use NTLM and kmail tells me it is supported by my server
Comment 2 Jan De Luyck 2006-10-27 15:47:01 UTC
It seems that NTLM authentication is broken in (atleast) kmail shipped with KDE 3.5.5.

I'm using Debian SID with the packages distributed with that, and no matter what, I can't get NTLM auth to work.

I'm sure the authentication info is correct, since I copy-pasted it straight from a .fetchmailrc file which uses NTLM authentication for getting my mail.

If there is anything to test to fix this, it would be great.

Thanks,

Jan
Comment 3 Allen Winter 2006-10-27 16:03:46 UTC
Jan,

I'm pretty sure there were some NTLM changes in some low-level libs for KDE 3.5.5.  So, I have a question in to the networking gurus about this issue
at kde-devel@kde.org.

Let's wait for their responses
Comment 4 Jan De Luyck 2006-10-27 16:53:26 UTC
Thanks!

Thread in question:
http://lists.kde.org/?l=kde-devel&m=116195779807636&w=2

Jan
Comment 5 Szombathelyi György 2006-10-27 22:49:04 UTC
The IMAP ioslave uses the cyrus-sasl library for authentication info generation (including NTLM), so the bug lays somewhere else...Maybe the cyrus-sasl implementation broke? (I don't have any NTLM capable IMAP server around, if someone has one to allow testing, I'll look into it).
Comment 6 Szombathelyi György 2006-10-27 22:52:18 UTC
Any other SASL method still works anyway? (e.g. PLAIN, DIGEST-MD5)?
Comment 7 Szombathelyi György 2006-11-01 23:10:30 UTC
Just checked KDE 3.5.5 from the Fedora Core 6 updates, and NTLM works flawlessly with a cyrus-imapd server.
Comment 8 Jan De Luyck 2006-12-14 12:12:12 UTC
I cannot check any other method - the mail server in question only supports either clear text or NTLM.

It's an MS Exchange 2003 server, if it matters.
Comment 9 Philippe Rigault 2007-01-06 00:09:21 UTC
KDE 3.5.5 (compiled from sources on Fedora Core 6) works here with NTLM against MS Exchange Server 2003 (POP3 server version 6.5.7226.0)

On my Fedora Core 6 system, one needs to install the cyrus-sasl-ntlm package for NTLM to work.

Cheers,

Philippe
Comment 10 Vincent Panel 2007-02-05 11:46:02 UTC
Had to install

libsasl2-plug-ntlm-2.1.22-20mdv2007.0

on Mandriva and it solved my problem. So this is not a KDE bug.
Comment 11 Vincent Panel 2007-02-05 11:46:23 UTC
Closing
Comment 12 Jan De Luyck 2007-02-06 07:35:05 UTC
There is no such package on Debian
Comment 13 Vincent Panel 2007-02-06 11:36:25 UTC
This package contains those files :

/usr/lib/sasl2/libntlm.la
/usr/lib/sasl2/libntlm.so
/usr/lib/sasl2/libntlm.so.2
/usr/lib/sasl2/libntlm.so.2.0.22
Comment 14 Jan De Luyck 2007-03-14 09:07:08 UTC
Still the same problem on Debian SID.

I tried rebuilding the sasl2 package with the build options of FC6, but this didn't change a thing.
Comment 15 Vincent Panel 2007-03-14 11:21:38 UTC
You need the ntlm plugin.