Sailfish native email app: not authenticating

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"

its a known issue, this merged fix to 5.2 should fix it

7 Likes

Many thanks @ahjolinna

For anyone reading later:

I read, Jolla do not publish a release schedule.

To get Early releases: sign into https://account.jolla.com/registration/login/ and enable “Yes, sign me up for early OS releases”

Thanks again.

1 Like

Hi there,

I seem to have a similar problem with the native email app (JP2026, 5.2.0.20):

After trying to share a file on my phone with someone using SIGNAL I saw that I could only share via email, text (SMS) and a third app (can’t remember which one) but SIGNAL wasn’t offered.

So I tapped email and was forwarded to the native SFOS app.

Yet, nothing happened, the app wouldn’t start properly, so I couldn’t enter any address. I closed it.

Ever since then I keep getting an error message that authentication wasn’t possible, even when I’m not actually using the app. And the app keeps trying to login to my email account (which I successfully use with Thunderbird/AAS and which happens to be my stored Google account’s address).

How do I get rid of that looping app that I cannot even open normally anymore?

How could I delete and reinstall it?

I have the same problem with 5.2.x on JP2 ever since I set it up. Opening the mail app gives “You need to update your credentials” → open browser → update them → open app → “You need to update your credentials”. Might be connected that I transferred a backup from my old phone on 5.1.x.

Uninstall it from Jolla store.

I’ve never managed to successfully restore mail accounts from the stock Jolla backup function over many years, phones and releases. The only solution for me has been to delete the mail account and recreate it again.

1 Like

Yeah, deleting and recreating seems to work.Thanks!

Please, mark SOLVED

I had completely misunderstood how the email app works, have now found the right way to create the email account etc. - so, please forgive my noobieness and mark as SOLVED (if that’s something done in this forum).

The app works fine.