I have an IMAP account on an Outlook 365 server, set up via Kmail. Today, I have noticed erratic behaviour, on two machines, bouth runng KDE 4.10.2. My home machine runs openSUSE 12.2 and my office machine runs Kubuntu 12.04. I am at work now, so have reported the problems on my workstation in detail. I have also reported these problems to the ANU IT support people. The first problem is that Kmail reports that the IMAP server has refused connection, and therefore the Kmail IMAP folder cannot be brought online. The second problem is that once the folder is brought online, the display of an email message times out. Both Outlook 365 web site and IMAP via K9 mail Android work, although I have noticed that sometimes mails take a while to appear on Android (starting today). I tried to reproduce by stopping and restarting akonadi, with different configurations. Additionally, ANU IT have reported an "IMAP fault", whatever that is. Reproducible: Sometimes Steps to Reproduce: Case 1 (offline); 1. Start Kmail 2. Click on ANU 365 Inbox folder (offline) 3. On "... is offline ..." diaglo box, click OK Case 2 (online); 1. Start Kmail 2. Click on ANU 365 Inbox folder (online) 3. Click on mail item in folder Actual Results: Typical error message (both cases 1 and 2): The server for account "ANU 365" refused the supplied username and password. Do you want to go to the settings, have another attempt at logging in, or do nothing? Kmail preview pane in case 2 with SSL: Retrieving Folder Contents Please wait ... (forever) Login failed, server replied: A000002 NO LOGIN failed. Output from akonadictl with SSL: leopardi@catawba:/etc/X11$ akonadictl status Akonadi Control: stopped Akonadi Server: stopped Akonadi Server Search Support: available (backend: Virtuoso) leopardi@catawba:/etc/X11$ akonadictl start Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) leopardi@catawba:/etc/X11$ search paths: ("/home/leopardi/usr/local/scilab/scilab-5.2.2/bin", "/home/leopardi/.texlive2010/bin/x86_64-linux", "/home/leopardi/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") akonadi.collectionattributetable OK akonadi.collectionmimetyperelation OK akonadi.collectionpimitemrelation OK akonadi.collectiontable OK akonadi.flagtable OK akonadi.mimetypetable OK akonadi.parttable OK akonadi.pimitemflagrelation OK akonadi.pimitemtable OK akonadi.resourcetable OK akonadi.schemaversiontable OK mysql.columns_priv OK mysql.db OK mysql.event OK mysql.func OK mysql.general_log OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.host OK mysql.ndb_binlog_index OK mysql.plugin OK mysql.proc OK mysql.procs_priv OK mysql.proxies_priv OK mysql.servers OK mysql.slow_log OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) search paths: ("/home/leopardi/usr/local/scilab/scilab-5.2.2/bin", "/home/leopardi/.texlive2010/bin/x86_64-linux", "/home/leopardi/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games") search paths: ("/home/leopardi/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") search paths: ("/home/leopardi/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") search paths: ("/home/leopardi/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") search paths: ("/home/leopardi/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") akonadi_nepomuk_feeder(16092) FeederPluginloader::feederPluginsForMimeType: No feeder for type "inode/directory" found Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. A message was received from the server with no job to handle it: "* BYE Connection is closed. 13 " "(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" A message was received from the server with no job to handle it: "* BYE Connection is closed. 13 " "(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" A message was received from the server with no job to handle it: "* BYE Connection is closed. 13 " "(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" A message was received from the server with no job to handle it: "* BYE Connection is closed. 13 " "(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" A message was received from the server with no job to handle it: "* BYE Connection is closed. 13 " "(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" A message was received from the server with no job to handle it: "* BYE Connection is closed. 13 " "(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" A message was received from the server with no job to handle it: "* BYE Connection is closed. 13 " "(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" ItemRetrieverException : Unable to retrieve item from resource: <html>Job canceled.</html> ItemRetrieverException : Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Akonadi output once SSL setting changed to STARTTLS (in Kmail): leopardi@catawba:/etc/X11$ akonadictl stop leopardi@catawba:/etc/X11$ AkonadiAgentServer(16093)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/leopardi/.kde/share/apps/kabc" Application '/usr/bin/akonadi_agent_launcher' exited normally... Application '/usr/bin/akonadi_agent_launcher' exited normally... Application '/usr/bin/akonadi_maildispatcher_agent' exited normally... AkonadiAgentServer(16086)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/leopardi/.kde/share/apps/korganizer" QProcess: Destroyed while process is still running. ProcessControl: Application /usr/bin/akonadi_imap_resource stopped unexpectedly ( "Process crashed" ) Application '/usr/bin/akonadi_imap_resource' crashed. No restart! Application '/usr/bin/akonadi_agent_launcher' exited normally... Application '/usr/bin/akonadi_mailfilter_agent' exited normally... Application '/usr/bin/akonadi_archivemail_agent' exited normally... Application '/usr/bin/akonadi_imap_resource' exited normally... Application '/usr/bin/akonadi_agent_launcher' exited normally... Application '/usr/bin/akonadi_mixedmaildir_resource' exited normally... Application '/usr/bin/akonadi_nepomuk_feeder' exited normally... Application '/usr/bin/akonadi_birthdays_resource' exited normally... Error in my_thread_global_end(): 1 threads didn't exit Application 'akonadiserver' exited normally... leopardi@catawba:/etc/X11$ akonadictl status Akonadi Control: stopped Akonadi Server: stopped Akonadi Server Search Support: available (backend: Virtuoso) leopardi@catawba:/etc/X11$ akonadictl start Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) leopardi@catawba:/etc/X11$ search paths: ("/home/leopardi/usr/local/scilab/scilab-5.2.2/bin", "/home/leopardi/.texlive2010/bin/x86_64-linux", "/home/leopardi/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") akonadi.collectionattributetable OK akonadi.collectionmimetyperelation OK akonadi.collectionpimitemrelation OK akonadi.collectiontable OK akonadi.flagtable OK akonadi.mimetypetable OK akonadi.parttable OK akonadi.pimitemflagrelation OK akonadi.pimitemtable OK akonadi.resourcetable OK akonadi.schemaversiontable OK mysql.columns_priv OK mysql.db OK mysql.event OK mysql.func OK mysql.general_log OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.host OK mysql.ndb_binlog_index OK mysql.plugin OK mysql.proc OK mysql.procs_priv OK mysql.proxies_priv OK mysql.servers OK mysql.slow_log OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) search paths: ("/home/leopardi/usr/local/scilab/scilab-5.2.2/bin", "/home/leopardi/.texlive2010/bin/x86_64-linux", "/home/leopardi/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games") search paths: ("/home/leopardi/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") search paths: ("/home/leopardi/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") search paths: ("/home/leopardi/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") search paths: ("/home/leopardi/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. akonadi_nepomuk_feeder(16429) FeederPluginloader::feederPluginsForMimeType: No feeder for type "inode/directory" found Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. ItemRetrieverException : Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. ItemRetrieverException : Unable to retrieve item from resource: <html>Job canceled.</html> MailFilterAgent::itemAdded : 80825 itemsReceiviedForFiltering********************************************** : 80825 resource : "akonadi_imap_resource_4" akonadi_imap_resource_4(16425)/kdepimlibs (kimap) KIMAP::StoreJob::handleResponse: We asked for UID but the server didn't give it back, resultingFlags not stored. akonadi_imap_resource_4(16425)/kdepimlibs (kimap) KIMAP::StoreJob::handleResponse: We asked for UID but the server didn't give it back, resultingFlags not stored. akonadi_imap_resource_4(16425)/kdepimlibs (kimap) KIMAP::StoreJob::handleResponse: We asked for UID but the server didn't give it back, resultingFlags not stored. When using STARTTLS, after the first timeout, the previews displayed correctly. Expected Results: Normal login to email, normal display of folders, normal display of preview. Possible duplicate of Bug 317105 - Unable to retrieve mail via IMAP from outlook.com May have to do with fix for Bug 249992 - Can't log in to IMAP server using non plain text auth mechanism. IMAP configuration details: Outlook 365 web site instructions say to use SSL and port 993. Autodetect uses STARTTLS and port 143. Cases 1 and 2 occur with SSL. Case 1 occurs with STARTTLS. Not completely a server problem, as far as I can tell. The stored account name and password work both with Outlook 365 web site and with K9 IMAP mail on Android.
ANU ITS has put in a Microsoft support call that indicates that there is a problem at the Office 365 end. Details follow. ---------- Forwarded Message ---------- Subject: [ITHELP #1389] ANU 365 IMAP Email is misbehaving using Kmail Date: Tuesday 23 April 2013, 08:00:53 From: prestong via RT <msi-ithelp@anu.edu.au> To: paul.leopardi@anu.edu.au Reference: ITS Service Now Ticket - INC0002853 ITS Service Now Problem Record - PRB0000094 Microsoft Premier Support call - REG:113042210382474 We are currently seeing login failures for clients connecting to the Office 365 IMAP service. Office 365 Email Clients who use IMAP as their access method may be unable to login to the service. The issue is intermittent so some connections may succeed while others fail. The issue is not affecting access via other means such as Webmail, EWS, MAPI or ActiveSync. In particular, this means that users of MS Outlook for Windows should not be affected. Users who are having issues connecting to Office 365 in their IMAP client should be able to use webmail athttps://outlook.com/owa/anu.edu.au while this issue is being resolved. All support teams both internally and externally (Microsoft) are actively working to resolve this issue ASAP. We thank you for your support and patience.
Note that this is still a bug at Microsoft's end. Akonadi does not seem to be able to handle this gracefully. Thunderbird, on the other hand, just asks me to retry with a dialog box which usually succeeds eventually.
The IMAP resource has a new maintainer, reassigning to him.
So as far as I understand the login doesn't work using certain settings? Can you state again what exactly does/doesn't work? And does this still apply to >= 4.11.3? Thanks
HI. I'm having a similar problem with kmail 4.14.2 on Debian. Most of the time kmail authenticates and downloads mail. However a most nights little bit after 10pm local time while on my home network, kmail starts getting authentication errors from outlook365. I tried reconnecting a few times but kmail rarely re-authenticates correctly until the next day. Diane
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!