Mailspring does not work with a custom Zimbra server

Description
At my workplace we have our own email server that uses the Zimbra project. The Zimbra server can only be accessed if connected to a VPN provided by my workplace. I am not sure if this is an issue with Mailspring not being able to use the VPN connection to connect to the Zimbra server or if it is an issue with the Zimbra server itself.

To Reproduce…
Steps to reproduce the behavior:

  1. Setup a Zimbra email server.
  2. Create an account on the Zimbra email client.
  3. Try to connect to it on Mailspring.
  • Optionally make the Zimbra email client only accessible through a VPN.

Expected Behavior
Zimbra email account would connect and work as expected on Mailspring.

Setup

  • OS and Version: Manjaro Linux x86_64 Kernel 5.10.26-1-MANJARO, Windows 10
    • Installation Method: AUR for Manjaro, .exe file for Windows
  • Mailspring Version: Manjaro 1.8.0-1, Windows 1.8.0-8983dca2

Additional Context
I think the fact that my workplace’s email client is accessible only with a VPN may cause the issue, but that should be fixed, other email clients like Geary are able to connect to that account of mine.

Edit: Had to remove the headings(## Title) to let this forum let me post this because it only allows new users to post 2 links and apparently headings are considered links.

May be related. Mailspring with VPN

Still, I think this needs to be investigated.

If it helps, these are the logs I am getting:

----------IMAP----------
connect <mailcore::IMAPSession:0x7ffd223e9a20>
ssl connect server_domain_here 143 43
connect error 43

Edit: The error above might be because of the Zimbra server’s SSL certificate
But I tried with Security set to none for both IMAP and SMTP and now the error is:

----------IMAP----------
connect <mailcore::IMAPSession:0x7ffc3fc8c1e0>
socket connect server_domain_here 143
* OK IMAP4rev1 proxy server ready
socket connect 2
1 CAPABILITY
* CAPABILITY ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ESORT I18NLEVEL=1 ID IDLE IMAP4rev1 LIST-EXTENDED LIST-STATUS LITERAL+ MULTIAPPEND NAMESPACE QRESYNC QUOTA RIGHTS=ektx SASL-IR SEARCHRES SORT THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN XLIST STARTTLS LOGINDISABLED
1 OK completed
connect ok
login
2 LOGIN "myemail@domain.com" "*********"
NO cleartext logins disabled
2 BAD invalid command
----------IMAP----------
connect <mailcore::IMAPSession:0x7ffc3fc8c1e0>
socket connect server_domain_here 143
* OK IMAP4rev1 proxy server ready
socket connect 2
1 CAPABILITY
* CAPABILITY ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ESORT I18NLEVEL=1 ID IDLE IMAP4rev1 LIST-EXTENDED LIST-STATUS LITERAL+ MULTIAPPEND NAMESPACE QRESYNC QUOTA RIGHTS=ektx SASL-IR SEARCHRES SORT THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN XLIST STARTTLS LOGINDISABLED
1 OK completed
connect ok
login
2 LOGIN "myemail@domain.com" "*********"
NO cleartext logins disabled
2 BAD invalid command
1 Like