pmb-pf/PMB_README.md
finn dd21568531
Some checks are pending
Test / build (push) Waiting to run
prep for nonempty pp
2024-07-07 13:16:12 -07:00

41 lines
1.2 KiB
Markdown

# ProtonMailBridge plus PostFix
## Security:
* GPG stores in-container are set up in a wildly insecure way.
* Compose creates a volume for /root with these stores to preserve bridge cache.
* Therefore, entire setup is extremely insecure.
* All because GPG unlock handling in bridge is still broken upstream as of 2024.
## Setup
Note docker-compose.yaml contains a debian image. This is only for testing inter-container mailing/networking.
Build only seems to require `#usermod -aG docker username`. Not tested as root/sudo.
By default, `bridge` runs in non-interactive mode on container startup. You must set up the bridge initially:
cp .env.example .env
vi .env
docker-compose build
docker-compose up -d
docker-compose exec pmb bash
killall bridge
./bridge -c
When in bridge cli mode:
* `login` will activate account.
* `info` will show creds to input into host filesystem .env postfix values.
exit
docker-compose down
vi .env
docker-compose up -d
Note: docker-compose down && docker-compose up are necessary. "restart" will not reload .env
## msmtp test
vi ~/.msmtprc
echo "test" | msmtp -a pmb recipient@recipient.email