Wino-Mail icon indicating copy to clipboard operation
Wino-Mail copied to clipboard

Cannot connect to Proton Mail Bridge

Open rafirafirafi opened this issue 1 year ago • 20 comments

It doesn't seems like Wino Mail is able to connect to proton bridge (protonmail uses an IMAP bridge with SSL) While adding the account, Wino says the server doesnt respond. Turning on the logs doesn;t give any info

Thanks

rafirafirafi avatar Jan 17 '24 00:01 rafirafirafi

Having the same issue, nothing showing up in either of the logs as well.

Error: image Proton Bridge settings: image image

kareigu avatar Mar 26 '24 14:03 kareigu

I think @Benjin had a fix for this issue. It was caused by some certification issue and he stepped in for help.

image

@rafirafirafi @kareigu could you please try this solution to see if it works for you?

bkaankose avatar Apr 12 '24 23:04 bkaankose

Worth noting that it worked for me after I tried that on the beta preview; it’s possible that I also needed some of the fixes between the latest public and the preview.

Benjin avatar Apr 12 '24 23:04 Benjin

I tried exporting the certs from Proton Bridge and adding them as personal keys in certmgr, but didn't change anything.

I'm not understanding how to go about setting the auth to "none". Can't seem to find any setting for this in Proton Bridge nor Wino.

kareigu avatar Apr 13 '24 08:04 kareigu

@kareigu try with the beta in this release; that's where I was able to get ProtonMail to work.

You'll have to enable Developer Mode and install the app dev certificate on your system for it to install.

Benjin avatar Apr 13 '24 17:04 Benjin

Aight, with the beta release I can get a bit further where it seemingly connects to Proton Bridge but then fails during "Preparing folders" image Nothing in the logs this time either. Tried setting auth to none as well but no luck.

kareigu avatar Apr 13 '24 18:04 kareigu

@kareigu Did you set both IMAP and SMTP to "none" auth? They're two different tabs in the configuration view.

Benjin avatar Apr 15 '24 03:04 Benjin

Yes

kareigu avatar Apr 15 '24 06:04 kareigu

I'm out of ideas now. If you're comfortable building it yourself, can you stick a breakpoint here and see what the full error message/stacktrace is?

Benjin avatar Apr 22 '24 16:04 Benjin

Okay, from building and running I managed to get to the same error message about TLS you had in your Discord message.

However, setting the "Connection security" to None seems to make it able to connect normally. On 1.6 and beta 1.7 releases this doesn't seem to work, only on the current master version.

kareigu avatar Apr 22 '24 19:04 kareigu

Still doesn't work for me on the current release. I get the same error with the IMAP client pool failure. Anything possible to do about that?

ItsPasi avatar Jun 17 '24 12:06 ItsPasi

Still doesn't work for me on the current release. I get the same error with the IMAP client pool failure. Anything possible to do about that?

There was a problem with testing the IMAP connectivity in this release. I am preparing a hotfix release that will fix and help you guys to share IMAP protocol log easily for further potential problems with IMAP.

1.7.3 is expected to go live in few hours/tomorrow depending on the certification delay on Microsoft Store.

bkaankose avatar Jun 17 '24 13:06 bkaankose

Just chiming in to confirm that this issue is still open. I tested it just now using the Store app and the 1.8.0 beta, and in both cases I was unable to connect to Proton Bridge. Setting auth to none for both IMAP and SMTP has no effect. I also enabled IMAP logging but this always produced a log file with a length of 0 bytes.

mdfarragher avatar Aug 12 '24 21:08 mdfarragher

Just chiming in to confirm that this issue is still open. I tested it just now using the Store app and the 1.8.0 beta, and in both cases I was unable to connect to Proton Bridge. Setting auth to none for both IMAP and SMTP has no effect. I also enabled IMAP logging but this always produced a log file with a length of 0 bytes.

All synchronization and authentication is handled in the server companion in Beta version. So UWP has no restriction in this case. Using Proton Bridge with proper configuration must work without any blockers.

For Store version, I believe somebody shared in Discord that you must except Wino Mail from the localhost loopback. Described here

https://stackoverflow.com/questions/33259763/uwp-enable-local-network-loopback

bkaankose avatar Aug 12 '24 22:08 bkaankose

Thanks for replying! I noticed that the beta is distributed as an msixpackage so I think it has the same restrictions as the store app (it gets installed in the UWP sandbox). So I followed the advice in the link to enable loopback, and it worked!

For anyone who had the same issues as me, an extra required step is to export the TLS certificate from Proton Bridge (you'll find the option in the advanced settings) and then install the cert.pem file in the Windows root certificate store. Instructions on how to do that are here: https://www.incredigeek.com/home/import-cert-pem-on-windows/

After I installed the TLS certificate and enabled loopback for the Wino UWP container, everything worked and I was able to access my Proton emails.

mdfarragher avatar Aug 13 '24 12:08 mdfarragher

@bkaankose feel free to mark this issue as closed. With the new 1.8.0.0 version, enabling loopback and installing the TLS certificate, it should work for everyone who uses Proton now.

mdfarragher avatar Aug 15 '24 07:08 mdfarragher

Loopback should not be required for Wino beta anymore. Server is WPF app, which doesn't have the same restrictions like UWP.

Tiktack avatar Aug 15 '24 08:08 Tiktack

Thanks for replying! I noticed that the beta is distributed as an msixpackage so I think it has the same restrictions as the store app (it gets installed in the UWP sandbox). So I followed the advice in the link to enable loopback, and it worked!

For anyone who had the same issues as me, an extra required step is to export the TLS certificate from Proton Bridge (you'll find the option in the advanced settings) and then install the cert.pem file in the Windows root certificate store. Instructions on how to do that are here: https://www.incredigeek.com/home/import-cert-pem-on-windows/

After I installed the TLS certificate and enabled loopback for the Wino UWP container, everything worked and I was able to access my Proton emails.

I'm glad that you figured it out. Thank you for providing the steps for others.

Even though server companion is in the same bundle, it shouldn't be blocked for loopback. UWP sandboxing should only apply for the client, not the server. I will check if something is wrong with the capabilities.

Personally never used Proton Mail. I may run some tests to make this work all fine.

bkaankose avatar Aug 15 '24 09:08 bkaankose

@mdfarragher

After I installed the TLS certificate and enabled loopback for the Wino UWP container, everything worked and I was able to access my Proton emails.

I don't recall having to enable loopback when I was testing this, so maybe that step isn't actually necessary as @Tiktack and @bkaankose have said.

Benjin avatar Aug 16 '24 05:08 Benjin

@bkaankose Perhaps it'd be a good idea to embed some instructions about exporting the TLS cert that get displayed if Wino is getting configured to point to 127.0.0.1? Otherwise, it's not a particularly discoverable solution.

Benjin avatar Aug 16 '24 05:08 Benjin