ProtonMail IMAP/SMTP Bridge Docker container
Go to file
2020-11-19 20:40:52 -08:00
.github/workflows Rename deb workflow 2020-11-19 20:13:09 -08:00
build Migrate build to build-push-action@v2 (#11) 2020-11-19 19:11:35 -08:00
deb Bump deb version to 1.5.0-1 2020-11-20 04:11:33 +00:00
.gitignore Move deb packing under deb folder (#12) 2020-11-19 19:46:18 -08:00
LICENSE Update LICENSE 2020-04-23 17:23:13 -07:00
README.md Update README 2020-11-19 20:40:52 -08:00
update-check.sh Fix update checker (#13) 2020-11-19 20:11:20 -08:00

ProtonMail IMAP/SMTP Bridge Docker Container

version badge image size badge docker pulls badge build badge

This is an unofficial Docker container of the ProtonMail Bridge. Some of the scripts are based on Hendrik Meyer's work.

Docker Hub: https://hub.docker.com/r/shenxn/protonmail-bridge

GitHub: https://github.com/shenxn/protonmail-bridge-docker

ARM Support

We now support ARM devices (arm64 and arm/v7)! Use the images tagged with build. See next section for details.

Tags

There are two types of images.

  • deb: Images based on the official .deb release. It only supports the amd64 architecture.
  • build: Images based on the source code. It supports amd64, arm64, and arm/v7. Supporting to more architectures is possible. PRs are welcome.
tag description
latest latest deb image
[version] deb images
build latest build image
[version]-build build images

Initialization

To initialize and add account to the bridge, run the following command.

docker run --rm -it -v protonmail:/root shenxn/protonmail-bridge init

Wait for the bridge to startup, use 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 shenxn/protonmail-bridge

Kubernetes

If you want to run this image in a Kubernetes environment, #6 can be helpful.

Compatibility

The bridge currently only supports some of the email clients. More details can be found on the official website. I've tested this on a Synology DiskStation and it runs well. However, you may need ssh onto it to run the interactive docker command to add your account. The main reason of using this instead of environment variables is that it seems to be the best way to support two-factor authentication.

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.

Build

For anyone who want to build this container on your own (for development or security concerns), here is the guide to do so. First, you need to cd into the directory (deb or build, depending on which type of image you want). Then just run the docker build command

docker build .

That's it. The Dockerfile and bash scripts handle all the downloading, building, and packing. You can also add tags, push to your favorite docker registry, or use buildx to build multi architecture images.