Sailfish OS 5.1
Build: 5.1.0.11
I have tried several times to add two different General email accounts (IMAP/SMTP) but there appears to be always an authentication error. The Email app often hangs on Updating Account. Settings>Accounts> shows “Not signed in” for the relevant accounts.
The server details and credentials are correct as they work from a Thunderbird (on a different device).
I deleted and re-installed the app from the Harbour but no difference.
Any clues to debug further or fix? Thanks.
Here is a section of the log of the messageserver that seems most relevant. Exact email account name changed.
2026-07-11T14:17:01Z [D] org.qt.messageserver: MessageServer init begin
2026-07-11T14:17:01Z [D] org.qt.messageserver.imap: account enabled, initiating a new client.
2026-07-11T14:17:01Z [D] org.qt.messageserver: Registering service: "imap4" for account: 8
2026-07-11T14:17:01Z [D] org.qt.messageserver: Registering service: "smtp" for account: 8
2026-07-11T14:17:01Z [D] org.qt.messageserver: Registered messageserver to D-Bus
2026-07-11T14:17:01Z [D] org.qt.messageserver: Initiating messageserver plugins.
2026-07-11T14:17:01Z [D] org.qt.messageserver: service from "AttachmentDownloader" created.
2026-07-11T14:17:01Z [D] default: Initiating mail notifications plugin
2026-07-11T14:17:01Z [D] org.qt.messageserver: service from "notifications" created.
2026-07-11T14:17:01Z [D] org.qt.messageserver.imap: Received new idleState for account: 8 state: false profile type: "syncemail"
[root@JollaC2 defaultuser]# tail -50 *.log
2026-07-11T14:14:41Z [D] org.qt.messageserver.imap: Setting imap strategy 30ImapRetrieveFolderListStrategy
2026-07-11T14:14:41Z [D] org.qt.messageserver: Creating SSO identity for the service "imap4" from account 8 with creds id 11
2026-07-11T14:14:41Z [D] org.qt.messageserver: SSO: starting credentials retrieval.
2026-07-11T14:14:41Z [D] org.qt.messageserver: SSO: process state changed: 7 "The request is added to queue."
2026-07-11T14:14:41Z [D] org.qt.messageserver.imap: "1" About to open connection "name@example.com" "``imappro.zoho.com``"
2026-07-11T14:14:41Z [D] org.qt.messageserver: QMailTransport::Socket::Socket SET PROXY host= "" port= 0
2026-07-11T14:14:41Z [D] org.qt.messageserver: Opening connection - "``imappro.zoho.com``" : 993 SSL
2026-07-11T14:14:41Z [D] org.qt.messageserver: SSO: process state changed: 8 "The request is started successfully"
2026-07-11T14:14:41Z [D] org.qt.messageserver: SSO: got response.
2026-07-11T14:14:42Z [D] org.qt.messageserver: IMAP : connection established
2026-07-11T14:14:42Z [D] org.qt.messageserver: IMAP : Secure connection established
2026-07-11T14:14:42Z [D] org.qt.messageserver.imap: "1" RECV: * OK ``svwall.zoho.com`` IMAP4 Server (Zoho Mail IMAP4rev1 Server version 1.0)
2026-07-11T14:14:42Z [D] org.qt.messageserver.imap: "1" SEND a001 CAPABILITY
2026-07-11T14:14:42Z [D] org.qt.messageserver.imap: "1" RECV: * CAPABILITY IMAP4rev1 UNSELECT CHILDREN XLIST NAMESPACE IDLE MOVE ID AUTH=PLAIN SASL-IR AUTH=XOAUTH2 UIDPLUS
ESEARCH LIST-EXTENDED LIST-STATUS WITHIN LITERAL- ACL CONDSTORE
2026-07-11T14:14:42Z [D] org.qt.messageserver.imap: "1" RECV: a001 OK CAPABILITY completed
2026-07-11T14:14:42Z [D] org.qt.messageserver.imap: "1" SEND a002 AUTHENTICATE XOAUTH2 <password hidden>
2026-07-11T14:14:42Z [D] org.qt.messageserver.imap: "1" RECV: a002 BAD [CLIENTBUG] syntax: Invalid sasl Argument
2026-07-11T14:14:42Z [D] org.qt.messageserver: Creating SSO identity for the service "imap4" from account 8 with creds id 11
2026-07-11T14:14:42Z [D] org.qt.messageserver: SSO: starting credentials retrieval.
2026-07-11T14:14:42Z [D] org.qt.messageserver: SSO: process state changed: 7 "The request is added to queue."
2026-07-11T14:14:42Z [D] org.qt.messageserver.imap: "1" About to open connection "name@example.com" "``imappro.zoho.com``"
2026-07-11T14:14:42Z [D] org.qt.messageserver: QMailTransport::Socket::Socket SET PROXY host= "" port= 0
2026-07-11T14:14:42Z [D] org.qt.messageserver: Opening connection - "``imappro.zoho.com``" : 993 SSL
2026-07-11T14:14:42Z [D] org.qt.messageserver: SSO: process state changed: 8 "The request is started successfully"
2026-07-11T14:14:42Z [D] org.qt.messageserver: SSO: got response.
2026-07-11T14:14:43Z [D] org.qt.messageserver: IMAP : connection established
2026-07-11T14:14:43Z [D] org.qt.messageserver: IMAP : Secure connection established
2026-07-11T14:14:43Z [D] org.qt.messageserver.imap: "1" RECV: * OK ``svwall.zoho.com`` IMAP4 Server (Zoho Mail IMAP4rev1 Server version 1.0)
2026-07-11T14:14:43Z [D] org.qt.messageserver.imap: "1" SEND a001 CAPABILITY
2026-07-11T14:14:43Z [D] org.qt.messageserver.imap: "1" RECV: * CAPABILITY IMAP4rev1 UNSELECT CHILDREN XLIST NAMESPACE IDLE MOVE ID AUTH=PLAIN SASL-IR AUTH=XOAUTH2 UIDPLUS
ESEARCH LIST-EXTENDED LIST-STATUS WITHIN LITERAL- ACL CONDSTORE
2026-07-11T14:14:43Z [D] org.qt.messageserver.imap: "1" RECV: a001 OK CAPABILITY completed
2026-07-11T14:14:43Z [D] org.qt.messageserver.imap: "1" SEND a002 AUTHENTICATE XOAUTH2 <password hidden>
2026-07-11T14:14:44Z [D] org.qt.messageserver.imap: "1" RECV: a002 BAD [CLIENTBUG] syntax: Invalid sasl Argument
2026-07-11T14:14:44Z [D] org.qt.messageserver: Invalidate credentials "imap4" from account 8
2026-07-11T14:14:44Z [D] org.qt.messageserver: Action completed 657129996289 result failure
2026-07-11T14:16:10Z [D] org.qt.messageserver: Received SIGTERM, shutting down.
2026-07-11T14:16:10Z [D] org.qt.messageserver: Unregistered messageserver from D-Bus
2026-07-11T14:16:10Z [W] org.qt.messageserver: Would not determine server/action completing
2026-07-11T14:16:10Z [D] org.qt.messageserver.imap: account disabled, terminating the client.
2026-07-11T14:16:10Z [W] org.qt.messageserver: Would not determine server/action completing
2026-07-11T14:17:01Z [D] org.qt.messageserver: MessageServer init begin
2026-07-11T14:17:01Z [D] org.qt.messageserver.imap: account enabled, initiating a new client.
2026-07-11T14:17:01Z [D] org.qt.messageserver: Registering service: "imap4" for account: 8
2026-07-11T14:17:01Z [D] org.qt.messageserver: Registering service: "smtp" for account: 8
2026-07-11T14:17:01Z [D] org.qt.messageserver: Registered messageserver to D-Bus
2026-07-11T14:17:01Z [D] org.qt.messageserver: Initiating messageserver plugins.
2026-07-11T14:17:01Z [D] org.qt.messageserver: service from "AttachmentDownloader" created.
2026-07-11T14:17:01Z [D] default: Initiating mail notifications plugin
2026-07-11T14:17:01Z [D] org.qt.messageserver: service from "notifications" created.
2026-07-11T14:17:01Z [D] org.qt.messageserver.imap: Received new idleState for account: 8 state: false profile type: "syncemail"