I’m trying to use my Protonmail account through Nextcloud on Debian Buster and I think I’m making some good progress. I successfully followed this guide to build the Protonmail Bridge from source without a gui. I’m working on running it as a systemd service. I just can’t seem to get Nextcloud Mail to complete the configuration, I keep getting this error:
Creating account failed: Could not connect to IMAP host localhost:1143: Could not open secure TLS connection to the IMAP server.
I think I may have the same problem the guy writing that guide had, where Nextcloud isn’t trusting the self-signed certificate generated by the bridge app. I tried symlinking the certificate into /usr/lib/ssl/certs, same result. Any help would be appreciated.
For anyone looking to address this without resorting to a third-party app like hydroxide, the solution using the official Protonmail Bridge is as follows:
While not related to this specific question, note that the instructions in the article linked about building the protonmail bridge are outdated. You can directly build-nogui when building protonmail with latest releases. And there is no need to do the additional steps of creating folders for pass and gpg and adding to path.
And for anyone who is seeking it and comes here, if all you are after is setting it all up to use Protonmail for the standard smtp that can all be done without messing around with the config.php (at least in Nextcloud 20.0.4) as that will already work without checking for TLS verification if you select “None”.
Like @eganonoa said needs to be in the same machine but at this moment does not support terminal configuration, you need a GUI.
I received an email from the Protonmail bridge team where they say they are already looking into implementing a headless version for Bridge in the future.
Nextcloudpi does not have a GUI itself (like gnome or KDE). You can not use the GUI from the bridge.
Never installed one and and I prefer to stay without a GUI and wait for the Protonmail Bridge GUI-free version from Protonmail
And then you will have a proton-bridge binary built without a GUI and that you can run either run interactively ( ./proton-bridge -c) or without interaction so it can run automatically in future (./proton-bridge --noninteractive).
As per my comment below you can build with no gui. Absolutely no need for a GUI, the entire thing can be run headless, which will definitely help with performance.
Having said that, re the fact that you can build and run bridge without a gui now, I do not think there is an Arm build for Protonmail Bridge. So I don’t think you will be able to do this with a raspberry pi.
What I said is the information I have and what I’m going to do.
I’m not a developer, IT professional or a technical guy.
Build something and mantaine (sorry for my english) I don’t understand doesn’t make any sense to me.
I will use the tools I have available and anyone else can choose what they want to do.
If you know how/want to build good for you, you will be better than me.
@vascocb and @eganonoa
Thank you both - @eganonoa - Because I use RPi4 which is an ARM - I probably not able to have the Protonmail Bridge app.
Soon I may have my Nextcloud instance on a x86 at which time I will be able to install as you suggested.
Just one thing - how will i find the password from the Protonmail bridge without the gui?
You basically just run the bridge in the terminal. The easiest way is to load it in interactive mode (proton-bridge -c) and then follow the instructions to log in. It’ll then give you all you need.
I had the same issue with connecting protonmail bridge to Nextcloud and everytime I searched the issue online I would come across this post so I will post it here for anyone who wants to do the same (after you completely setup protonmail bridge with a password manager):
Basically you have to disable peer verification and allow local server.
to disable peer verification add this to Config.php