Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
ProtonMail IMAP/SMTP Bridge Docker Container
An unofficial Docker container of the ProtonMail Bridge.
Initialization
To initialize and add account to the bridge, run the following commands.
docker run --rm -it -v protonmail:/root -v /path/to/fullchain.pem:/root/cert.pem:ro -v /path/to/privkey.pem:/root/key.pem:ro registry.karaolidis.com/karaolidis/protonmail-bridge init
cert import
/root/cert.pem
/root/key.pem
login
info
Run
To run the container, use the following command.
docker run -d --name=protonmail-bridge -v protonmail:/root -p 1025:25/tcp -p 1143:143/tcp --restart=unless-stopped registry.karaolidis.com/karaolidis/protonmail-bridge
Security
Please be aware that running the command above will expose your bridge to the network. Remember to use firewall if you are going to run this in an untrusted network or on a machine that has public IP address. You can also use the following command to publish the port to only localhost, which is the same behavior as the official bridge package.
docker run -d --name=protonmail-bridge -v protonmail:/root -p 127.0.0.1:1025:25/tcp -p 127.0.0.1:1143:143/tcp --restart=unless-stopped registry.karaolidis.com/karaolidis/protonmail-bridge
Besides, you can publish only port 25 (SMTP) if you don't need to receive any email (e.g. as an email notification service).
Bridge CLI Guide
The initialization step exposes the bridge CLI, so you can do things like switch between combined and split mode, change proxy, etc. The official guide gives more information on to use the CLI.