This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
protonmail-bridge-docker/README.md
2024-02-15 23:27:45 +00:00

39 lines
1.6 KiB
Markdown

# ProtonMail IMAP/SMTP Bridge Docker Container
An unofficial Docker container of the [ProtonMail Bridge](https://protonmail.com/bridge/).
## Initialization
To initialize and add account to the bridge, run the following commands.
```bash
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.
```bash
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.
```bash
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](https://protonmail.com/support/knowledge-base/bridge-cli-guide/) gives more information on to use the CLI.