Connection Error - Unable to connect to the server / port you provided. (IMAP)

Getting “Connection Error - Unable to connect to the server / port you provided. (IMAP)”. while connecting gmail account.
The IMAP, SMTP and POP services are enabled on gmail.
OS: Ubuntu 22.04
MailSpring Version: 1.10.3

Same issue with O365 acc on Ubuntu 22.04

Adding a Gmail account on Arch Linux also appears, Connection Error - Unable to connect to the server / port you provided. (IMAP)

I am sick of this crappy email client . Had enough accounts dont connect for days , sent messages disapear , keep being told unable to send due to connection issues . I am done with this awful email client !

Even the community posting box is clunky and awful to use …

Thanks

Hello alll

It looks like since last mailspring update I can’t connect to my emails account.
I receive email but can’t send, on all my diferent account.

I can send email from my browser on each account.

Any folks with the same problem ? Any idea how to solve this ?

Here is my log

----------IMAP----------
connect mailcore::IMAPSession:012FF5D0

  • OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot on host 137 ready
    TLS ssl connect ssl0.ovh.net 993 2
    OpenSSL version: OpenSSL 3.6.0 1 Oct 2025
    connect ok
    login
    1 LOGIN “***********@***.com ” *********
    1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE QUOTA] Logged in
    2 ENABLE QRESYNC
  • ENABLED QRESYNC
    2 OK Enabled (0.000 + 0.000 secs).
    3 NAMESPACE
  • NAMESPACE ((“INBOX.” “.”)) NIL NIL
    3 OK Namespace completed.
    login ok
    4 LIST “INBOX.” “*”
  • LIST (\HasNoChildren) “.” INBOX.Junk
  • LIST (\HasNoChildren) “.” INBOX.INBOX.Junk
  • LIST (\HasNoChildren) “.” INBOX.INBOX.Trash
  • LIST (\HasNoChildren) “.” INBOX.INBOX.Drafts
  • LIST (\HasNoChildren) “.” INBOX.INBOX.Sent
  • LIST (\HasChildren) “.” INBOX.Mailspring
  • LIST (\HasNoChildren) “.” INBOX.Mailspring.Snoozed
  • LIST (\HasNoChildren) “.” “INBOX.Stellar drift”
  • LIST (\HasNoChildren) “.” “INBOX.Deleted Messages”
  • LIST (\HasNoChildren) “.” INBOX.Drafts
  • LIST (\HasNoChildren) “.” INBOX.Trash
  • LIST (\HasNoChildren) “.” INBOX.Sent
  • LIST (\HasNoChildren) “.” “INBOX.Sent Messages”
    4 OK List completed (0.000 + 0.000 secs).
    5 LIST “” “INBOX”
  • LIST (\HasChildren) “.” INBOX
    5 OK List completed (0.000 + 0.000 secs).

----------SMTP----------
220 GARM-112S006 Thursday, January 29, 2026
OpenSSL version: OpenSSL 3.6.0 1 Oct 2025
init
EHLO XXXXXXXXXX (my computer name)
250-OVH SMTP PROXY Hello
250-SIZE 104857600
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME

SASL_PATH:

SMTP Last Response Code: 250
SMTP Last Response: OVH SMTP PROXY Hello
SIZE 104857600
ENHANCEDSTATUSCODES
AUTH LOGIN PLAIN
AUTH=LOGIN PLAIN
8BITMIME

mailsmtp Last Error Code: 296
mailsmtp Last Error Explanation: Unknown
mailsmtp Last Error Location: 10
mailsmtp Last Auth Type: 2