stalwart-mail

by wrenix

Helm chartv2.1.8App 0.16.27Verified publisher

Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)

About this chart


title: "stalwart-mail"

description: "Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)"


stalwart-mail

Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)

Maintainers

NameEmailUrl
WrenIXhttps://wrenix.eu

Alpha

{{< callout type="warning" >}} Current stalwart is not stable and we are also not stable.

We have current known issues:

  • cluster setup is not fully supported (so please keep replicas=1), see more in issue for cluster
  • toml interpreter of stalwart and golang (helm) are different, so we remove all .0 in the rendering to be compatible with stalwart-toml {{< /callout >}}

Usage

Helm must be installed and setup to your kubernetes cluster to use the charts. Refer to Helm's documentation to get started. Once Helm has been set up correctly, fetch the charts as follows:

helm pull oci://codeberg.org/wrenix/helm-charts/stalwart-mail

You can install a chart release using the following command:

helm install stalwart-mail-release oci://codeberg.org/wrenix/helm-charts/stalwart-mail --values values.yaml

To uninstall a chart release use helm's delete command:

helm uninstall stalwart-mail-release

Requirements

RepositoryNameVersion
https://nats-io.github.io/k8s/helm/charts/nats2.15.2

Values

Observability

KeyTypeDefaultDescription
grafana.dashboards.annotationsobject{}label of configmap
grafana.dashboards.enabledboolfalsedeploy grafana dashboard in configmap
grafana.dashboards.labelsobject{"grafana_dashboard":"1"}label of configmap
nats.promExporter.enabledboolfalsedeploy prometheus exporter to NATS (in coordinator setup)
nats.promExporter.podMonitor.enabledboolfalsedeploy pod monitor for NATS prometheus exporter (in coordinator setup)
prometheus.servicemonitor.enabledboolfalsedeploy servicemonitor
prometheus.servicemonitor.labelsobject{}label of servicemonitor
secrets.env.METRICS_SECRETstring"scrape_metrics_password"basic auth metrics password in secret for stalwart-mail
secrets.env.METRICS_USERNAMEstring"scrape_metrics_user"basic auth metrics username in secret for stalwart-mail

Cluster

KeyTypeDefaultDescription
nats.configobject{}NATS configure
nats.enabledboolfalsedeploy a NATS and configure stalwart to use it as coordinator
replicaCountint1replicas
updateStrategyobject{}updateStrategy

Authentification

KeyTypeDefaultDescription
secrets.env.FALLBACK_ADMIN_SECRETstring"supersecret"password for fallback authentfication (env)

Bulwark Lite Webmail Client

KeyTypeDefaultDescription
webclients.bulwarkLite.enabledboolfalsedeploy a
webclients.bulwarkLite.image.pullPolicystring"IfNotPresent"This sets the pull policy for images. (could be overwritten by global.image.pullPolicy)
webclients.bulwarkLite.image.registrystring"ghcr.io"image registry (could be overwritten by global.image.registry)
webclients.bulwarkLite.image.repositorystring"bulwarkmail/webmail-lite"image repository
webclients.bulwarkLite.image.tagstring"1.20.0"image tag
webclients.bulwarkLite.service.ipFamilyPolicystring"SingleStack"other option is RequireDualStack
webclients.bulwarkLite.service.typestring"ClusterIP"service type
webclients.bulwarkLite.volumeMountslist[]Additional volumeMounts on the output Deployment definition.
webclients.bulwarkLite.volumeslist[]Additional volumes on the output Deployment definition.

Root-FR Webmail Client

KeyTypeDefaultDescription
webclients.rootFr.enabledboolfalsedeploy a
webclients.rootFr.image.pullPolicystring"IfNotPresent"This sets the pull policy for images. (could be overwritten by global.image.pullPolicy)
webclients.rootFr.image.registrystring"ghcr.io"image registry (could be overwritten by global.image.registry)
webclients.rootFr.image.repositorystring"root-fr/jmap-webmail"image repository
webclients.rootFr.image.tagstring"1.7.3"image tag
webclients.rootFr.service.ipFamilyPolicystring"SingleStack"other option is RequireDualStack
webclients.rootFr.service.typestring"ClusterIP"service type
webclients.rootFr.volumeMountslist[]Additional volumeMounts on the output Deployment definition.
webclients.rootFr.volumeslist[]Additional volumes on the output Deployment definition.

Twake Webmail Client

KeyTypeDefaultDescription
webclients.twake.enabledboolfalsedeploy a
webclients.twake.image.pullPolicystring"IfNotPresent"This sets the pull policy for images. (could be overwritten by global.image.pullPolicy)
webclients.twake.image.registrystring"ghcr.io"image registry (could be overwritten by global.image.registry)
webclients.twake.image.repositorystring"linagora/tmail-web"image repository
webclients.twake.image.tagstring"v0.41.0"image tag
webclients.twake.service.ipFamilyPolicystring"SingleStack"other option is RequireDualStack
webclients.twake.service.typestring"ClusterIP"service type
webclients.twake.volumeMountslist[]Additional volumeMounts on the output Deployment definition.
webclients.twake.volumeslist[]Additional volumes on the output Deployment definition.

Other Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
certificate.certmanager.dnsNames[0]string"chart-example.local"
certificate.certmanager.enabledbooltrue
certificate.certmanager.issuerRef.groupstring"cert-manager.io"
certificate.certmanager.issuerRef.kindstring"ClusterIssuer"
certificate.certmanager.issuerRef.namestring"letsencrypt-prod"
certificate.secretNamestringnilnot needed if certmanager is used
configobject{"@type":"","authSecret":{"@type":"Value","secret":""},"authUsername":"","database":"","host":""}json config for stalwart
envFromlist[]
env[0].namestring"STALWART_RECOVERY_MODE"
env[0].valuestring"1"
env[1].namestring"STALWART_RECOVERY_ADMIN"
env[1].valuestring"admin:$(FALLBACK_ADMIN_SECRET)"
fullnameOverridestring""
global.image.pullPolicystringnilif set it will overwrite all pullPolicy
global.image.registrystringnilif set it will overwrite all registry entries
image.pullPolicystring"IfNotPresent"This sets the pull policy for images. (could be overwritten by global.image.pullPolicy)
image.registrystring"ghcr.io"image registry (could be overwritten by global.image.registry)
image.repositorystring"stalwartlabs/stalwart"image repository
image.tagstring""image tag - Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"admin.chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.hosts[1].hoststring"chart-example.local"
ingress.hosts[1].paths[0].pathstring"/"
ingress.hosts[1].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
livenessProbe.httpGet.httpHeaders[0]object{"name":"X-Forwarded-For","value":"127.0.0.1"}send fake X-Forwarded-For for not generate warnings
livenessProbe.httpGet.pathstring"/healthz/live"
livenessProbe.httpGet.portstring"http"
livenessProbe.initialDelaySecondsint5
livenessProbe.periodSecondsint10
nameOverridestring""
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"accessMode
persistence.annotationsobject{}
persistence.enabledbooltrueEnable persistence using Persistent Volume Claims ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
persistence.existingClaimstringnilA manually managed Persistent Volume and Claim Requires persistence.enabled: true If defined, PVC must be created manually before volume will be bound
persistence.hostPathstringnilDo not create an PVC, direct use hostPath in Pod
persistence.sizestring"10Gi"size
persistence.storageClassstringnilPersistent Volume Storage Class If defined, storageClassName: If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack)
podAnnotationsobject{}
podLabelsobject{}
podSecurityContextobject{}
readinessProbe.httpGet.httpHeaders[0]object{"name":"X-Forwarded-For","value":"127.0.0.1"}send fake X-Forwarded-For for not generate warnings
readinessProbe.httpGet.pathstring"/healthz/ready"
readinessProbe.httpGet.portstring"http"
readinessProbe.initialDelaySecondsint30
readinessProbe.periodSecondsint10
resourcesobject{}
secrets.createbooltrueenables env secret creation from secrets.env values NOTE: The env variables below should be manually passed in the pod if disabled.
securityContextobject{}
service.annotationsobject{}
service.externalTrafficPolicystringnil
service.ipFamilies[0]string"IPv4"
service.ipFamilyPolicystring"SingleStack"other option is RequireDualStack
service.ports.httpint80
service.ports.httpsint443
service.ports.imapint143
service.ports.imaptlsint993
service.ports.pop3int110
service.ports.pop3sint995
service.ports.sieveint4190
service.ports.smtpint25
service.ports.submissionint587
service.ports.submissionsint465
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountbooltrueAutomatically mount a ServiceAccount's API credentials?
serviceAccount.createboolfalseSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]
traefik.enabledboolfalse
traefik.ports.https.entrypointstring"websecure"
traefik.ports.https.matchstringnil
traefik.ports.https.passthroughTLSbooltrue
traefik.ports.https.proxyProtocolbooltrue
traefik.ports.imaptls.entrypointstring"imaps"
traefik.ports.imaptls.matchstringnil
traefik.ports.imaptls.passthroughTLSbooltrue
traefik.ports.imaptls.proxyProtocolbooltrue
traefik.ports.pop3s.entrypointstring"pop3s"
traefik.ports.pop3s.matchstringnil
traefik.ports.pop3s.passthroughTLSbooltrue
traefik.ports.pop3s.proxyProtocolbooltrue
traefik.ports.sieve.entrypointstring"sieve"
traefik.ports.sieve.matchstringnil
traefik.ports.sieve.passthroughTLSbooltrue
traefik.ports.sieve.proxyProtocolbooltrue
traefik.ports.smtp.entrypointstring"smtp"
traefik.ports.smtp.matchstringnil
traefik.ports.smtp.proxyProtocolbooltrue
traefik.ports.submissions.entrypointstring"smtps"
traefik.ports.submissions.matchstringnil
traefik.ports.submissions.passthroughTLSbooltrue
traefik.ports.submissions.proxyProtocolbooltrue
volumeMountslist[]Additional volumeMounts on the output Deployment definition.
volumeslist[]Additional volumes on the output Deployment definition.
webclients.bulwarkLite.affinityobject{}
webclients.bulwarkLite.configJSON.allowCustomJmapEndpointboolfalse
webclients.bulwarkLite.configJSON.appNamestring"Bulwark Webmail"
webclients.bulwarkLite.configJSON.demoModebool`fals

Deploy stalwart-mail with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has stalwart-mail 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 chartstalwart-mail is pinned at v2.1.8 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