mailpit

by jouve

Helm chartv0.39.1App 1.34.0GPL-3.0-or-laterVerified publisher

An email and SMTP testing tool with API for developers

About this chart

mailpit

usage

Prefered using oci:

helm install mailpit oci://ghcr.io/jouve/charts/mailpit

Charts pushed to oci:// are signed keyless via cosign and GitHub Actions OIDC. Verify with:

cosign verify ghcr.io/jouve/charts/mailpit:<version> \
  --certificate-identity-regexp 'https://github.com/jouve/charts/\.github/workflows/release\.yaml@.*' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Or legacy repo:

helm repo add jouve https://jouve.github.io/charts/
helm install mailpit jouve/mailpit

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common

NameDescriptionValue
clusterDomainKubernetes Cluster Domaincluster.local
image.registryimage registrydocker.io
image.repositoryimage repositoryaxllent/mailpit
image.tagimage tag (immutable tags are recommended)v1.34.0
image.digestimage digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended)""
image.pullPolicyimage pull policyIfNotPresent
image.pullSecretsimage pull secrets[]
image.debugEnable image debug modefalse
commonLabelsLabels to add to all deployed objects{}
podLabelsExtra labels for pods{}
updateStrategy.typestatefulset strategy typeRollingUpdate
podSecurityContextSecurityContext for pods{}
containerSecurityContextSecurityContext for pods{}
replicaCountNumber of replicas to deploy1
revisionHistoryLimitThe number of old history to retain to allow rollback10
resourcesPresetSet container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).nano
priorityClassNameName of the priority class to assign to the pods""
resourcesThe resources for the containers{}
affinityPod affinity{}
argsOverride default container args (useful when using custom images)[]
extraEnvVarsArray with extra environment variables to add to nodes[]
extraEnvVarsSecretName of existing Secret containing extra env vars for containers""
extraVolumesOptionally specify extra list of additional volumes for the pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for the containers[]
livenessProbeEnables the livenessProbe for mailpit{}
readinessProbeEnables the readinessProbe for mailpit{}
nodeSelectorNode labels for pod assignment{}
tolerationsexpects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#toleration-v1-core[]
enableServiceLinksenabled by default https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26true
mailpit.webrootSet the webroot for web UI & API/
mailpit.ui.authFile.enabledAdding basic authentication to web UIfalse
mailpit.ui.authFile.htpasswdhtpasswd content""
mailpit.ui.authFile.existingSecretSecret containing htpasswd content{}
mailpit.ui.tls.enabledEnable tls for web UIfalse
mailpit.ui.tls.secretNametls secret for web UI""
mailpit.smtp.authFile.enabledAdding SMTP authenticationfalse
mailpit.smtp.authFile.htpasswdhtpasswd content""
mailpit.smtp.authFile.existingSecretSecret containing htpasswd content{}
mailpit.smtp.tls.enabledEnable TLS for SMTPfalse
mailpit.smtp.tls.methodTLS certificate source: generated by Mailpit (auto), cert-manager (cert-manager) or an existing Secret (secret)secret
mailpit.smtp.tls.secretNameExisting TLS Secret for SMTP when method is secret""
mailpit.smtp.tls.auto.dnsNamesDNS names included in the certificate generated by Mailpit. Defaults to the SMTP Service names[]
mailpit.smtp.tls.certManager.dnsNamesDNS names included in the certificate. Defaults to the SMTP Service names[]
mailpit.smtp.tls.certManager.issuerRefcert-manager issuer for the certificate{}
mailpit.relay.enabledenable SMTP Relay configurationfalse
mailpit.relay.configMailpit SMTP relay configuration

Deploy mailpit with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mailpit 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 chartmailpit is pinned at v0.39.1 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