1.9 KiB
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 command.
docker run --rm -it -v protonmail:/root registry.karaolidis.com/karaolidis/protonmail-bridge init
Wait for the bridge to startup, then you will see a prompt appear for Proton Mail Bridge interactive shell. Use the login
command and follow the instructions to add your account into the bridge. Then use info
to see the configuration information (username and password). After that, use exit
to exit the bridge. You may need CTRL+C
to exit the docker entirely.
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.