Quickstart
Run the container or the binary behind HTTPS, with a master key and storage.
Read What every deployment needs first.
Run it
Docker
# 1. Generate a master key once, and keep a copy of master.key somewhere safe
test -s master.key || (umask 077 && docker run --rm postkeep/postkeep generate-key > master.key)
# 2. From the folder with master.key, start the server behind your HTTPS proxy
docker run -d --name postkeep -p 127.0.0.1:8080:8080 \
-v postkeep:/data \
-e POSTKEEP_PUBLIC_URL=https://mail.example.com \
-e POSTKEEP_MASTER_KEY="$(cat master.key)" \
-e POSTKEEP_ALLOWED_EMAILS=alice@example.com \
postkeep/postkeepDocker Compose
# App plus Caddy, which gets the HTTPS certificate for you
git clone https://github.com/postkeep/postkeep.git
cd postkeep/deploy/compose
cp -i .env.example .env && chmod 600 .env
# Generate MASTER_KEY once, and keep a copy somewhere safe
docker run --rm postkeep/postkeep generate-key
# edit .env: PUBLIC_URL, MASTER_KEY, ALLOWED_EMAILS, DOMAIN, CLIENT_IP_HEADER
docker compose --profile caddy up -dBinary
# Rust 1.94 or newer
cargo build --release
# Generate a master key once, and keep a copy of master.key somewhere safe
test -s master.key || (umask 077 && ./target/release/postkeep generate-key > master.key)
export POSTKEEP_BIND=127.0.0.1:8080
export POSTKEEP_PUBLIC_URL=https://mail.example.com
export POSTKEEP_MASTER_KEY_FILE=$PWD/master.key
export POSTKEEP_ALLOWED_EMAILS=alice@example.com
./target/release/postkeep serveConnect your agent app
Add https:// to your agent app and sign in with your
mailbox: the Agent apps page has the steps for each app.