listmonk

by HelmForge

Helm chartv1.2.5App 6.2.0Apache-2.0Verified publisher

Listmonk self-hosted newsletter and mailing list manager with PostgreSQL

About this chart

Listmonk Helm Chart

Deploy Listmonk, a self-hosted newsletter and mailing list manager, on Kubernetes with the official docker.io/listmonk/listmonk:v6.2.0 image, a PostgreSQL backend, persistent uploads, and optional S3-compatible database backups.

Features

  • Ready on first start: init containers run listmonk --install --idempotent and --upgrade, and create the superadmin from a Secret
  • Hardened pod: non-root uid 65534, read-only root filesystem, no privilege escalation, every capability dropped, RuntimeDefault seccomp
  • PostgreSQL backend: HelmForge PostgreSQL subchart or an external server
  • Configurable listener: listmonk.port changes the real HTTP listener
  • Persistent uploads mounted at /listmonk/uploads
  • Exposure: Ingress or Gateway API HTTPRoutes
  • S3 backups: scheduled pg_dump archives uploaded to S3-compatible storage
  • External Secrets Operator integration for credentials

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install listmonk helmforge/listmonk

OCI registry:

helm install listmonk oci://ghcr.io/helmforgedev/helm/listmonk

Quick Start

helm install listmonk helmforge/listmonk
kubectl rollout status deploy/listmonk --timeout=300s
kubectl get secret listmonk-admin -o jsonpath='{.data.admin-password}' | base64 -d; echo
kubectl port-forward svc/listmonk 9000:80

Open http://localhost:9000/admin and log in as admin with the password above, then configure SMTP under Settings > SMTP. A release whose name contains listmonk uses it as the resource prefix; other releases use <release>-listmonk.

Architecture

The pod runs wait-for-postgresql (pg_isready with a timeout), db-init (idempotent install, superadmin creation on a fresh database, and upgrade), and the listmonk container. See DESIGN.md, docs/architecture.md, and docs/operations.md.

Configuration

Application

KeyDefaultDescription
image.repositorydocker.io/listmonk/listmonkListmonk image
image.tag"v6.2.0"Pinned Listmonk image tag
replicaCount1Keep 1: several active instances process the same campaigns
listmonk.port9000HTTP listener (LISTMONK_app__address), 1024-65535
listmonk.extraEnv[]Extra LISTMONK_* variables for the app and db-init
listmonk.admin.usernameadminSuperadmin created by the first install
listmonk.admin.password""Superadmin password (8+ characters); generated once when empty
listmonk.admin.existingSecret""Existing Secret with the superadmin password
listmonk.admin.existingSecretPasswordKeyadmin-passwordKey in that Secret
setup.waitImagedocker.io/library/postgres:18.6-alpineImage for the PostgreSQL wait
setup.databaseWaitTimeoutSeconds300Seconds to wait for PostgreSQL

Database

KeyDefaultDescription
database.modeautoauto, external, or postgresql
postgresql.enabledtrueDeploy the HelmForge PostgreSQL subchart
database.external.host / port"" / 5432External PostgreSQL endpoint
database.external.name / usernamelistmonkExternal database and user
database.external.password""Inline password, stored in a chart Secret
database.external.existingSecret""Existing Secret with the database password
database.external.sslModedisablePostgreSQL SSL mode

External databases must let the Listmonk user create objects and the pgcrypto extension, or provide it beforehand.

Exposure, probes, storage, and backups

KeyDefaultDescription
service.type / service.portClusterIP / 80Service type and port
ingress.enabledfalseRender an Ingress
gatewayAPI.enabledfalseRender Gateway API HTTPRoutes
gatewayAPI.httpRoutes[]HTTPRoutes; each requires parentRefs
startupProbe.path / livenessProbe.path / readinessProbe.path/healthProbe paths
storage.enabled / storage.sizetrue / 5GiUploads PVC
backup.enabledfalseScheduled pg_dump upload to S3
backup.images.postgresqldocker.io/library/postgres:18.6-alpinepg_dump image; must not be older than the server
backup.s3.existingSecret""Existing S3 credential Secret
externalSecrets.enabledfalseRender ExternalSecret resources

Every key is documented in values.yaml and validated by values.schema.json.

Examples

  • examples/simple.yaml: bundled PostgreSQL with persistent uploads
  • examples/ingress.yaml: TLS Ingress and explicit resources
  • examples/external-db.yaml: managed external PostgreSQL
  • examples/backup.yaml: S3-compatible PostgreSQL backups

Security

  • The pod runs as uid 65534 with a read-only root filesystem, no privilege escalation, no capabilities, RuntimeDefault seccomp, and no ServiceAccount token. /tmp and /listmonk/uploads are the only writable paths.
  • The superadmin is created from a Secret on a fresh database, so the instance never exposes the first-run admin setup page.
  • Credentials accept existing Secrets or ExternalSecret resources.
  • The generated superadmin password is read back with lookup on upgrade. Renderers without cluster access (client-side GitOps rendering) generate a new value on every render; set listmonk.admin.password or listmonk.admin.existingSecret in those setups.
  • Add NetworkPolicies for your cluster; the chart does not render them.

Troubleshooting

SymptomCheck
Pod stuck in Init:0/2kubectl logs deploy/<name> -c wait-for-postgresql; the database is unreachable
Pod stuck in Init:1/2kubectl logs deploy/<name> -c db-init; credentials or privileges are wrong
Login rejected after reinstallThe password applies only to a fresh database; read <name>-admin from the first install
Backup job fails with a version mismatchSet backup.images.postgresql to a client at least as new as the server

More Information

Security Scan: listmonk

FrameworkScore
MITRE + NSA + SOC290.90909%

Security posture acceptable.

Deploy listmonk with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has listmonk on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlistmonk is pinned at v1.2.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply