# Setup Proton Bridge This uses the docker container from `shenxn` [Link to shenxn/protonmail-bridge-docker](https://github.com/shenxn/protonmail-bridge-docker) ## Setting up user Setup user `protonmail` ``` sudo adduser protonmail sudo usermod -aG docker protonmail ``` ## Run ``` docker run --rm -it -v protonmail:/root shenxn/protonmail-bridge init ``` If bridge is already in the docker-compose.yml, use this ``` docker compose run protonmail-bridge init ``` This command will map the ports, if ufw is allowing requests to port 25/143 ``` docker run -d --name=protonmail-bridge -v protonmail:/root -p 1025:25/tcp -p 1143:143/tcp --restart=unless-stopped shenxn/protonmail-bridge ```