maddy
by mjpitz
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
| Name | Url | |
|---|---|---|
| Mya Pitzeruse | https://mya.sh |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| https://mya.sh | litestream | 22.4.4 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Specify affinity rules for the pods. |
| autoscaling.enabled | bool | false | Enable autoscaling for the deployment. |
| autoscaling.maxReplicas | int | 100 | Specify the maximum number of replicas. |
| autoscaling.minReplicas | int | 1 | Specify the minimum number of replicas. |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | Specify the percent CPU utilization that causes the pods to autoscale. |
| config.database.dsn | string | "" | Configure the DSN used to connect to a Postgres database. |
| config.domains.mx | string | "" | Configure the mx domain used by the system. This should align with the ingress address for the service. |
| config.domains.primary | string | "" | Configure the primary email domain that is managed by this server. |
| config.tls.certPath | string | "" | Configure the full chain certificate path for TLS. |
| config.tls.keyPath | string | "" | Configure the private key path for TLS. |
| externalConfig.secretRef.name | string | "" | Specify the name of the secret containing the raw configuration. |
| extraVolumeMounts | list | [] | Add additional volume mounts to the pod. |
| extraVolumes | list | [] | Add additional volumes to the pod. |
| fullnameOverride | string | "" | Override the full name of the release. |
| image.pullPolicy | string | "IfNotPresent" | The pull policy to use for the image. |
| image.repository | string | "foxcpp/maddy" | The repository hosting the email server image. |
| image.tag | string | "0.7.1" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | Specify the secret containing the registry credentials. |
| litestream.enabled | bool | false | Whether to enable litestream for SQLite backup, recovery, and replication. |
| litestream.extraVolumeMounts[0].mountPath | string | "/data" | The path where the databases can be located. |
| litestream.extraVolumeMounts[0].name | string | "data" | The name of the data directory to mount. Defaults to the database volume created by persistence.enabled. |
| litestream.metrics.serviceMonitor.enabled | bool | false | Enable metric collection for litestream. |
| litestream.metrics.serviceMonitor.interval | string | "10s" | Configure the interval at which metrics are collected for litestream. |
| metrics.serviceMonitor.enabled | bool | false | Enable metric collection for maddy. |
| metrics.serviceMonitor.interval | string | "10s" | Configure the interval at which metrics are collected for maddy. |
| mta_sts.enabled | bool | false | Whether to enable MTA-STS to proactively protect against attacks. |
| mta_sts.image.pullPolicy | string | "IfNotPresent" | The pull policy to use for the nginx image. |
| mta_sts.image.repository | string | "nginx" | The repository hosting the nginx server image. |
| mta_sts.image.tag | string | "1.25-alpine" | Configure the version of nginx to run. |
| mta_sts.ingress.annotations | object | {} | Specify annotations for the ingress. |
| mta_sts.ingress.enabled | bool | false | Configure an ingress for the MTA-STS well-known configuration. |
| mta_sts.ingress.hosts[0].host | string | "chart-example.local" | Specify the domain host for the ingress. |
| mta_sts.ingress.tls | list | [] | Configure TLS for the ingress. |
| nameOverride | string | "" | Override the name of the release. |
| nodeSelector | object | {} | Specify the node selector used to control which nodes registry pods are deployed to. |
| persistence.accessMode | string | "ReadWriteOnce" | Configure the access mode of the volume. |
| persistence.enabled | bool | true | Enable persistence for this deployment. This will configure a SQLite driver for storing information. |
| persistence.existingClaim | string | "" | Specify the name of an existing PersistentVolumeClaim to use. |
| persistence.resources.storage | string | "10Gi" | Specify the size of the volume. |
| persistence.storageClass | string | "" | Specify the storage class that should provision this claim. |
| podAnnotations | object | {} | Annotations to add to the pod, typically used for assume roles. |
| podSecurityContext | object | {} | Specify the security context for the entire pod. |
| replicaCount | int | 1 | The number of registry replicas to deploy. |
| resources | object | {} | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmaddy is pinned at v22.4.12 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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