IMAP connection fails (university server)

Hi everyone,

I’m trying to connect my university email account to Mailspring on Windows 10.

Connection fails with the following log:

----------IMAP---------- connect <mailcore::IMAPSession:001DF970> * OK [CAPABILITY IMAP4rev1 LITERAL+ AUTH=PLAIN ID ACL RIGHTS=kxten QUOTA NAMESPACE UIDPLUS XLIST SPECIAL-USE IDLE BM-ROCKS] perdition ready on bm-perdition.univ-montp3.fr 000387f1 ssl connect jade.univ-montp3.fr 993 2 OpenSSL version: OpenSSL 1.1.0f 25 May 2017 Verification failed: X509_verify_cert_error_string: unable to get local issuer certificate X509_get_subject_name: ssl connect certificate ERROR 2

Until recently I was using thunderbird to read my emails and the connection to this email adresse worked there. But I don’t know how to make it work on mailspring, that I would like to use from now on.

Thanks in advance for any help :folded_hands:
Laura

I’m honestly not sure what your issue is. I was able to use curl and connect without any certificate issues.

curl -v imaps://jade.univ-montp3.fr
* Host jade.univ-montp3.fr:993 was resolved.
* IPv6: (none)
* IPv4: 193.52.142.211
*   Trying 193.52.142.211:993...
* schannel: disabled automatic use of client certificate
* Connected to jade.univ-montp3.fr (193.52.142.211) port 993
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
< * OK [CAPABILITY IMAP4rev1 LITERAL+ AUTH=PLAIN ID ACL RIGHTS=kxten QUOTA NAMESPACE UIDPLUS XLIST SPECIAL-USE IDLE BM-ROCKS] perdition ready on bm-perdition.univ-montp3.fr 000387f1
> A001 CAPABILITY
< * CAPABILITY IMAP4rev1 LITERAL+ AUTH=PLAIN ID ACL RIGHTS=kxten QUOTA NAMESPACE UIDPLUS XLIST SPECIAL-USE IDLE BM-ROCKS
< A001 OK CAPABILITY
> A002 LIST "" *
< A002 BAD Unrecognised command, mate
* shutting down connection #0
curl: (21) Quote command returned error

Thank so much for trying it! Could you let me know how you configured it please ?

I’m going to be honest, I wouldn’t use Mailspring for anything outside of Gmail, Yahoo, Outlook, or other services. Outside of that, Mailspring is not great in terms of compatibility IMHO. If it doesn’t work out of the box, I would try Thunderbird, which has more active support and a larger community.

The error unable to get local issuer certificate typically means your university’s mail server uses a certificate signed by an internal/private CA that Mailspring’s sync engine doesn’t trust. Mailspring uses its own certificate store (from the underlying Rust/OpenSSL libraries) rather than the system certificate store, so even if the system trusts your university’s CA, Mailspring may not. Unfortunately there’s no built-in UI to add custom CAs to Mailspring’s trust store. The most practical solution for now is to use the system-level certificate import to add your university’s root CA to the OS certificate store — on some systems Mailspring will pick this up; on others it won’t. This is a known limitation we’d like to address. Thunderbird tends to handle non-standard CAs better because it uses the system cert store on most platforms.