Mailspring’s sync engine doesn’t currently pick up system proxy settings, especially on Windows and Linux, but it should. This makes it unusable when used behind a proxy, including with Tor (Socks5) and behind Corporate proxies.
The overall problem is that “proxy” means a lot of different things (SOCKS, proxies only for HTTP traffic, etc.) Chromium has a /ton/ of code for proxy autodiscovery across platforms (like tens of thousands of lines of code, which is wild…) and I’ve been hoping that Electron will expose an API for reading the auto-discovered proxy settings, which would allow us to apply them to the C++ sync engine easily. Unfortunately I asked about this again recently and the response wasn’t too promising:
Even the curl
page about proxies talks about a whole bunch of different topics (https://ec.haxx.se/usingcurl-proxies.html). I think we could probably support SOCKS and HTTPS CONNECT
proxies (where the certificates and SSL are not broken by the proxy), but it’s a gonna be a lot of work
(Originally posted by bengotow on GitHub.)
First of all, thank you for the feedback Ben. Better late than ever, right?
Like you said, proxies might mean a lot of different things to different people.
In that case, how about taking the MVP route and aim to provide http proxy support at first, then implement the other types of proxies later on?
Taking the MVP way, I would start out by implementing http proxy support at first, with all data required [proxy address, port, username and password] being manually inputed by the user.
Later on I would add support for discovery, environment methods, scripts and other authentication methods.
Thanks.
(Originally posted by luizlinux on GitHub.)
As suggested by Jason on GitHub, I’m replying to the issue so the moderators can make an effort to reassign the post to me.
Thanks for not letting this die.
Why do we need internet access when the app starts up? It says it is trying to get to getmailspring.com, but should that actually be necessary? SMTP and IMAP traffic don’t actually go through HTTP anyway, so could it be possible to not require that HTTP communication anyway?
Do I need to have a mailspring account to use it or something along those lines?
Hi @zicklag,
Yes, Mailspring ID is required at this time. We’re considering making it optional in a later release.
(Also, OMW, hi!! Long time no chat!)
For people who use Gmail in China like me, this proxy support is very much needed, hope it will come true soon
Any update for this? the proxy should apply to mailspring itself and IMAP/SMPT/POP connect. I’m from China, and I can not add my Gmail account to mailspring, because it’s blocked, I try to use proxychains, but it doesn’t work.
Me too!Or we’d choose transparent proxy(although it sometimes feels like a kick on the ass)
+1
Or anyone has some alternative methods?
+1 Is there any workaround method for now?
I used clashx enhanced mod, but doesn’t work when sending a email
+1
I started to use Portmaster as firewall which let’s you choose a secure DNS provider that is different from your ISP one. And it blocks trackers and mallware. I am a bit surprised that Mailspring does recognizes the DNS settings from portmaster (I am on opensuse/linux) and just fails to connect to a office 365 account with:
***
*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"https://login.microsoftonline.com/common/oauth2/v2.0/token","key":"Couldn't resolve host name","retryable":true,"what":"std::exception"}
***
Connecting to my personal email account hosted elsewhere works, so it seems specifically for O365? It seems it cannot use the DNS to reach the microsoft website.
When using a VPN, is also does not want to connect:
***
*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID (heavy)","key":"ErrorConnection","retryable":true,"what":"std::exception"}
***
Other email clients that works with office 365 and oauth2 like Evolution do work in combination with Portmaster. So it seems the issue is related to the implementation of Office 365 in Mailspring or not?