Bug 419782 - Unable to connect to IMAP server
Summary: Unable to connect to IMAP server
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.13.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-07 10:06 UTC by Daniel Kraus
Modified: 2020-04-27 06:10 UTC (History)
3 users (show)

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 Daniel Kraus 2020-04-07 10:06:19 UTC
SUMMARY
I am no longer able to connect to my IMAP server with KMail. The IMAP server logs failed login attempts that contain no user name ("dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>"). All other clients that I tried *are* able to connect to the server (mutt [on the same workstation as KMail], Roundcube, K-9 mail). KMail used to work with this server for several years. Something happened. I did move the server to a different machine, but the setup is done with Ansible, so should be identical to the old machine, and again, the other mail clients have no problem connecting to the server.

I completely removed kmail along with akonadi-server and other packages, and removed the data files from ~/.local/share and ~/.config.

When I try to add the IMAP account to a fresh installation of KMail, the UI complains "Could not convert value of setting 'AccountIdentity' to required type."

Terminal output:

```
$ kmail
No text-to-speech plug-ins were found.
org.kde.pim.akonadicore: not referenced  14
"QFormBuilder was unable to create a custom widget of the class 'KLineEdit'; defaulting to base class 'QLineEdit'."
"QFormBuilder was unable to create a custom widget of the class 'KLineEdit'; defaulting to base class 'QLineEdit'."
"QFormBuilder was unable to create a custom widget of the class 'KLineEdit'; defaulting to base class 'QLineEdit'."
org.kde.pim.accountwizard: Did not find D-Bus method:  "setAccountIdentity"  available methods are:
org.kde.pim.accountwizard: "destroyed(QObject*)"
org.kde.pim.accountwizard: "destroyed()"
org.kde.pim.accountwizard: "objectNameChanged(QString)"
org.kde.pim.accountwizard: "deleteLater()"
org.kde.pim.accountwizard: "_q_reregisterTimers(void*)"
org.kde.pim.accountwizard: "_q_serviceOwnerChanged(QString,QString,QString)"
org.kde.pim.accountwizard: Impossible to convert argument :  QVariant(int, 1090336957)
```

SOFTWARE/OS VERSIONS
KDE Plasma: KDE neon 5.18 user edition
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Comment 1 Daniel Kraus 2020-04-08 05:13:25 UTC
I set up a VirtualBox machine with a clean install of KDE neon and got the same enigmatic error message.

Connecting to the IMAP server of a different e-mail provider works, so it is something specific to my setup (which does not make it any better for me...). What makes me wonder is that it used to work for several years. Something happened.
Comment 2 Laurent Montel 2020-04-08 06:40:13 UTC
yep qt5.14.1

We create a fix for pim 5.14.0 will be release with kde 20.04 in some days.
Comment 3 Chris Samuel 2020-04-20 07:42:04 UTC
Hi there,

I've just run into this issue in the Kubuntu 20.04 beta release with Kontact Version 5.13.3 (19.12.3) and was wondering if you could point me at the fix so I can see if the maintainers are able to backport it into their release please?

Thanks!
Chris
Comment 4 Rik Mills 2020-04-20 08:57:06 UTC
It looks to me as if the fix mentioned here is to fix the secondary UI issue with Qt 5.14, not to fix the server communication issue in the 1st sentence of the SUMMARY?
Comment 5 Daniel Kraus 2020-04-20 09:39:18 UTC
I'd like to add that I am now also unable to add my university's IMAP server, I get the same error message as above.

Another user reported a similar issue here: https://forum.kde.org/viewtopic.php?f=215&t=165472
Comment 6 Chris Samuel 2020-04-27 05:51:07 UTC
I suspect this is a duplicate of https://bugs.kde.org/show_bug.cgi?id=400221 which I just mistakenly updated instead of this.

It's an SSL issue (the IMAP server is not configured to use long enough DH keys).
Comment 7 Chris Samuel 2020-04-27 06:10:57 UTC
The solution (for me) under Kubuntu 20.04 was to modify /etc/ssl/openssl.cnf after the line:

oid_section             = new_oids

by adding:

openssl_conf = default_conf

[default_conf]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT@SECLEVEL=1