Golub

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: implicit for ports 993 and 465, starttls for 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_PROXY to its address.

Every configuration option →

compose.yaml
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
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.

On GitHub Packages →
TagPoints toUse it for
0.3.2Exactly this releaseProduction, with deliberate updates
0.3The newest patch of a minor versionGetting fixes without new features
stableThe newest releaseTrying Golub, small setups
betaThe newest beta or release candidateTesting 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
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.

Source archives for every release →

shell
git clone https://github.com/stefanpejcic/Golub.git
cd Golub/web && npm ci && npm run build && cd ..
go build -o golub ./cmd/golub

Your mail server deserves a better webmail.

The real interface with made-up mail. Nothing to install, no sign-up.

Golub showing the inbox with an open message