Download Golub
Golub ships as a signed container image for amd64 and arm64. The current release is 0.3.2, published 29 November 2026.
Docker Compose
The recommended way to run Golub. Set the name of your mail server as it appears on its TLS certificate, and a secret key.
- GOLUB_IMAP_TLS and GOLUB_SMTP_TLS:
implicitfor ports 993 and 465,starttlsfor 143 and 587. - GOLUB_SECRET_KEY encrypts sessions. Create one with
openssl rand -base64 32. - Put Golub behind your reverse proxy for HTTPS and set
GOLUB_TRUST_PROXYto its address.
services:
golub:
image: ghcr.io/stefanpejcic/golub:stable
restart: unless-stopped
ports:
- "8080:8080"
environment:
GOLUB_IMAP_HOST: mail.example.com
GOLUB_IMAP_TLS: implicit
GOLUB_SMTP_TLS: implicit
GOLUB_SECRET_KEY: "..."
docker run -d --name golub -p 8080:8080 \
-e GOLUB_IMAP_HOST=mail.example.com \
-e GOLUB_IMAP_TLS=implicit -e GOLUB_SMTP_TLS=implicit \
-e GOLUB_SECRET_KEY="$(openssl rand -base64 32)" \
ghcr.io/stefanpejcic/golub:stable
Image tags
All images live at ghcr.io/stefanpejcic/golub. Pin an exact version in production.
| Tag | Points to | Use it for |
|---|---|---|
0.3.2 | Exactly this release | Production, with deliberate updates |
0.3 | The newest patch of a minor version | Getting fixes without new features |
stable | The newest release | Trying Golub, small setups |
beta | The newest beta or release candidate | Testing what is coming |
Platforms: linux/amd64 and linux/arm64. Image size about 7 MB to download. GET /healthz reports the running version.
Verify the image
Every release is built on GitHub Actions, signed with keyless cosign, and carries an SBOM and build provenance. Check the signature before you run it:
cosign verify ghcr.io/stefanpejcic/golub:0.3.2 \
--certificate-identity-regexp \
'^https://github.com/stefanpejcic/Golub/\.github/workflows/release\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Build from source
You need Go and Node.js. The web interface is built first, then embedded in the Go binary.
git clone https://github.com/stefanpejcic/Golub.git
cd Golub/web && npm ci && npm run build && cd ..
go build -o golub ./cmd/golub
Next steps
Installation guide
Connecting to your mail server, HTTPS and reverse proxies, step by step.
Single sign-on
Log users in from a control panel without a second password.
Branding
Your own name, logo and accent colour.
Updating
Pull the new image and recreate the container. Nothing to migrate, ever.
There are no native mobile apps: Golub is made to work well in the phone's browser.



