maddy

by mjpitz

Helm chartv22.4.12App 0.7.1MITVerified publisher

Easily deploy and configure a maddy mail server. This chart handles a fair bit of setup, however, additional work needs to be done to properly configure all the DNS records. For a complete guide on setting up DNS for maddy, see the user guide: https://maddy.email/tutorials/setting-up/

About this chart

maddy

Easily deploy and configure a maddy mail server. This chart handles a fair bit of setup, however, additional work needs to be done to properly configure all the DNS records. For a complete guide on setting up DNS for maddy, see the user guide: https://maddy.email/tutorials/setting-up/

Maintainers

NameEmailUrl
Mya Pitzerusehttps://mya.sh

Source Code

Requirements

RepositoryNameVersion
https://mya.shlitestream22.4.4

Values

KeyTypeDefaultDescription
affinityobject{}Specify affinity rules for the pods.
autoscaling.enabledboolfalseEnable autoscaling for the deployment.
autoscaling.maxReplicasint100Specify the maximum number of replicas.
autoscaling.minReplicasint1Specify the minimum number of replicas.
autoscaling.targetCPUUtilizationPercentageint80Specify the percent CPU utilization that causes the pods to autoscale.
config.database.dsnstring""Configure the DSN used to connect to a Postgres database.
config.domains.mxstring""Configure the mx domain used by the system. This should align with the ingress address for the service.
config.domains.primarystring""Configure the primary email domain that is managed by this server.
config.tls.certPathstring""Configure the full chain certificate path for TLS.
config.tls.keyPathstring""Configure the private key path for TLS.
externalConfig.secretRef.namestring""Specify the name of the secret containing the raw configuration.
extraVolumeMountslist[]Add additional volume mounts to the pod.
extraVolumeslist[]Add additional volumes to the pod.
fullnameOverridestring""Override the full name of the release.
image.pullPolicystring"IfNotPresent"The pull policy to use for the image.
image.repositorystring"foxcpp/maddy"The repository hosting the email server image.
image.tagstring"0.7.1"Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]Specify the secret containing the registry credentials.
litestream.enabledboolfalseWhether to enable litestream for SQLite backup, recovery, and replication.
litestream.extraVolumeMounts[0].mountPathstring"/data"The path where the databases can be located.
litestream.extraVolumeMounts[0].namestring"data"The name of the data directory to mount. Defaults to the database volume created by persistence.enabled.
litestream.metrics.serviceMonitor.enabledboolfalseEnable metric collection for litestream.
litestream.metrics.serviceMonitor.intervalstring"10s"Configure the interval at which metrics are collected for litestream.
metrics.serviceMonitor.enabledboolfalseEnable metric collection for maddy.
metrics.serviceMonitor.intervalstring"10s"Configure the interval at which metrics are collected for maddy.
mta_sts.enabledboolfalseWhether to enable MTA-STS to proactively protect against attacks.
mta_sts.image.pullPolicystring"IfNotPresent"The pull policy to use for the nginx image.
mta_sts.image.repositorystring"nginx"The repository hosting the nginx server image.
mta_sts.image.tagstring"1.25-alpine"Configure the version of nginx to run.
mta_sts.ingress.annotationsobject{}Specify annotations for the ingress.
mta_sts.ingress.enabledboolfalseConfigure an ingress for the MTA-STS well-known configuration.
mta_sts.ingress.hosts[0].hoststring"chart-example.local"Specify the domain host for the ingress.
mta_sts.ingress.tlslist[]Configure TLS for the ingress.
nameOverridestring""Override the name of the release.
nodeSelectorobject{}Specify the node selector used to control which nodes registry pods are deployed to.
persistence.accessModestring"ReadWriteOnce"Configure the access mode of the volume.
persistence.enabledbooltrueEnable persistence for this deployment. This will configure a SQLite driver for storing information.
persistence.existingClaimstring""Specify the name of an existing PersistentVolumeClaim to use.
persistence.resources.storagestring"10Gi"Specify the size of the volume.
persistence.storageClassstring""Specify the storage class that should provision this claim.
podAnnotationsobject{}Annotations to add to the pod, typically used for assume roles.
podSecurityContextobject{}Specify the security context for the entire pod.
replicaCountint1The number of registry replicas to deploy.
resourcesobject{}Specify the resources for the pod.
rspamd.config."actions.conf"string""Override configuration in the actions.conf file.
rspamd.config."antivirus.conf"string""Override configuration in the antivirus.conf file.
rspamd.config."antivirus_group.conf"string""Override configuration in the antivirus_group.conf file.
rspamd.config."arc.conf"string""Override configuration in the arc.conf file.
rspamd.config."asn.conf"string""Override configuration in the asn.conf file.
rspamd.config."chartable.conf"string""Override configuration in the chartable.conf file.
rspamd.config."classifier-bayes.conf"string""Override configuration in the classifier-bayes.conf file.
rspamd.config."clickhouse.conf"string""Override configuration in the clickhouse.conf file.
rspamd.config."composites.conf"string""Override configuration in the composites.conf file.
rspamd.config."content_group.conf"string""Override configuration in the content_group.conf file.
rspamd.config."dcc.conf"string""Override configuration in the dcc.conf file.
rspamd.config."dkim.conf"string""Override configuration in the dkim.conf file.
rspamd.config."dkim_signing.conf"string""Override configuration in the dkim_signing.conf file.
rspamd.config."dmarc.conf"string""Override configuration in the dmarc.conf file.
rspamd.config."elastic.conf"string""Override configuration in the elastic.conf file.
rspamd.config."emails.conf"string""Override configuration in

Deploy maddy with OpenTenant

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