Cannot connect to gmail

Description

I am trying to connect my Gmail account, but I receive the following error:

“Connection error - could not connect to the server / port you provided (IMAP”

To Reproduce…

Steps to reproduce the behavior:

  1. From the “Connect an email account” scren, select Gmail.

  2. Sign in, approve permissions.

Expected Behavior

Mailspring opens and syncs with Gmail.

Screenshots

Setup

  • OS and Version:
    • Pop_OS 22.04
  • Mailspring Version:
    • 1.14, 1.15, 1.16 (I tried them all).

Additional Context

I’m wondering if there is any way to obtain further diagnostic information for this problem. The error message is not very helpful. As far as I can see, the OAuth procedure completes successfully. Searching around online there are suggestions to adjust the server port and connection settings, but Mailspring does not surface any such configuration options.

Small update. I’m not sure why, but the problem seems to have been localised to a particular network (I was travelling for a conference). When connecting to other networks (including at home), I was able to get Mailspring working as normal. I could not diagnose the problem further.

I think this issue can be closed.