Sailfisk OS mailclient can't handle IMAP port 993

When configuring email to use IMAP port 993 on fetching mail from server, after chosing either ‘update’ och ‘get more mail’, it gets stuck in what seems to be a loop displaying “Updating” (I use swedish localisation so in fact “Uppdaterar”) and this stays even if I stop and restart the client.
Even uninstalling the emailclient and rebooting the phone (Sony Experia 10 III) doesn’t clear the loop. Once in a while the problem can be solved by uninstalling both the client and the account, rebooting the phone and the reconfiguring the mailaccount and reinstalling the mailclient. Not this helps randomly!!
Also randomly it might help to use IMAP port 143 (which is not recommended) but whatever, no stable function can be established.

Should I give up and come to the conclusion that Sailfish is not ready for ‘every day use’ but rather a ‘playtoy’ for enthusiasts?

For me port 993 (with SSL) works pretty. Please check the other fields in the server settings. You need all fields :slight_smile:

1 Like

For any sanely configured server, port 143 with STARTLS should be fine.

1 Like

@hans you might want to share a bit more… do you have any logs? what do you mean by “uninstall[…] the account”? is that deleting the account in Settings->Accounts?
Mine works perfectly fine (not sure why port 993 isn’t sane either, it’s fairly common for IMAP).
All I can tell you is that whenever I had issues, it was due to the TLS certificate - you can try by disabling secure connection validation (or however that’s called in Settings->Accounts), but be aware that this is dangerous unless you know what you’re doing.
Other than that, deleting and recreating the account should fix any interim issue, but this assumes that your IMAP server is configured properly with a TLS certificate that’s valid with the CA chain and all the bells and whistles.

That’s the point. A quick telnet hostname 143 will give the answer. On my dovecot instance it yields

% telnet gateway 143
Trying 192.168.178.20...
Connected to gateway.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LOGIN-REFERRALS ID ENABLE IDLE SASL-IR LITERAL+ STARTTLS LOGINDISABLED] Dovecot ready.

STARTTLS is included and SailfishOS will automatically use it.

After setup some email accounts on a new SFOS device I run with one provider in your point. So for this account I changed the imap port to 143 (StartTLS). But all other new accounts will work with 993 (SSL).

Maybe I should check what different with this one provider. Do you think this is an error in SFOS?

Can also confirm, mailbox.org IMAP 993 SSL/TLS works without any problems on all my SF devices.

1 Like

Same here on both mail accounts (and one or two more I used on SFOS over the years).

That said, the account settings are a bit quirky, and if you restored them from backup they’re practically useless, you need to delete and recreate them.

And yes, it’s often the underlying daemon misbehaving, not the email app itself. There are some threads about this on the forums. IIRC it was messageserver5 or msyncd.

FWIW, my server settings look like this, but it’s all specific to your email provider!

I have pretty much “same” settings like @ohnonot does.

Few weeks ago it happened second time that my phone somehow lost connection to my email provider. It just kept saying “Updating”. I have no idea why this happened but everything was just fine after uninstalling both the email app and the account and start over again.

Using IMAP you dont have to be scared to lose any emails, that is pretty good thing.

Big thank’s to all of you for responding end describing your settings.
So, I use IMAP, port 993 and it works but randomly. After unistalling/reinstalling the email app and deleting/reinstalling the account everything is fine and the inbox is (mostly) updated to full content. Sometimes this condition work for a couple of hours but all of a sudden I get stuck in the ‘Updating’ situation.
I use the mailservice of Telia and I have identical settings on a couple of Linuxlaptops (mailclients Mozilla Thunderbird and KDE K-mail), identical settings on my Samsung smartphone (Samsung mailclient) and identical settings on a Huawei Media PAD (Huawei mailclient). Never seen the problem on neither of them.
One thougt: my mailbox on Telia has aprox. 150 e-mails in it. Could it be that the Jolla e-mailclient is sensitive to the number of e-mails when downloading thru IMAP? But on the other hand, if so why does it work sometimes i.e the complete list of e-mails are downloaded and updated?
Well - time will tell. Now a couple of weeks of vacation and then on to next challenge: Installing BankID e-identification. Have an issue with the app not recognizing that Bluetooth is active.

That’s not much. So I’d say no. But the sizes (of attachments) might matter.

To further troubleshoot you could read this first and ultimately this.