maddy

by funkypenguin

Helm chartv3.2.0App v0.5.2Verified publisher

Maddy Mail Server

About this chart

maddy

Maddy Mail Server

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Source Code

Requirements

Kubernetes: >=1.16.0-0

Dependencies

RepositoryNameVersion
https://charts.bitnami.com/bitnamipostgresql11.6.12
https://library-charts.k8s-at-home.comcommon4.5.2

TL;DR

helm repo add geek-cookbook https://geek-cookbook.github.io/charts/
helm repo update
helm install maddy geek-cookbook/maddy

Installing the Chart

To install the chart with the release name maddy

helm install maddy geek-cookbook/maddy

Uninstalling the Chart

To uninstall the maddy deployment

helm uninstall maddy

The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.

Configuration

Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

helm install maddy \
  --set env.TZ="America/New York" \
    geek-cookbook/maddy

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.

helm install maddy geek-cookbook/maddy -f values.yaml

Custom configuration

After you have deployed the Helm chart you need to update your DNS. See Maddy initial setup instructions about how to do this.

Values

Important: When deploying an application Helm chart you can add more values from our common library chart here

KeyTypeDefaultDescription
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"foxcpp/maddy"image repository
image.tagstringchart.appVersionimage tag
maddy.auth.ldapobjectSee See Maddy authIf type is ldap the following options are required
maddy.auth.ldap."bind plain"string"\"cn=maddy,ou=people,dc=maddy,dc=test\" \"123456\""Specify initial bind credentials. Not required ('bind off') if DN template is used.
maddy.auth.ldap.base_dnstring"\"ou=people,dc=maddy,dc=test\""Specify base_dn to lookup DN.
maddy.auth.ldap.connect_timeoutstring"1m"Timeout for initial connection to the directory server.
maddy.auth.ldap.debugstring"off"Enable verbose logging. You don't need that unless you are reporting a bug.
maddy.auth.ldap.dn_templatestring"\"cn={username},ou=people,dc=maddy,dc=test\""Specify DN template to skip lookup.
maddy.auth.ldap.filterstring"\"(&(objectClass=posixAccount)(uid={username}))\""Specify filter to lookup DN.
maddy.auth.ldap.starttlsstring"off"Whether to upgrade connection to TLS using STARTTLS.
maddy.auth.ldap.urlsstring"ldap://maddy.test:389"URLs of the directory servers to use. First available server is used - no load-balancing is done.
maddy.auth.typestring"sql"Where to store authorised users. Valid values are sql and ldap
maddy.config_files.aliasstring"## Replace 'cat' with any domain to 'dog'.\n## E.g. [email protected] -> [email protected]\n# cat: dog\n\n## Replace [email protected] with [email protected].\n## Takes priority over the previous line.\n#[email protected]: [email protected]\n"Alias file used in smtp_rule See alias examples.
maddy.extra_settings.imapobject{}Additional settings for imap backend
maddy.extra_settings.local_mailboxesobject{}Additional settings for local_mailboxes storage
maddy.hostnamestring"mx.example.com"Hostname the service will listen to (incoming SMTP and IMAP)
maddy.primary_domainstring"example.com"Primary domain - will be included in SMTP protocol
maddy.secondary_domainsstringnilSpace separated list of additional domains this server handles
maddy.smtp_rulesobjectSee values.yamlThe main part of the configuration - rules for the smtp pipelines. You can define multiple blocks. Content comes from the chart when setting file (see files/smtp_rules folder) and/or the custom block
maddy.sql.postgres_dsnobjectSee Go DSNIf type is postgres configure the Data Source Name (DSN)
maddy.sql.postgres_dsn.dbnamestringDB name set in embedded postgres chartThe name of the DB
maddy.sql.postgres_dsn.hoststringhost of embedded postgres chartThe host to connect to
maddy.sql.postgres_dsn.passwordstringuser set in embedded postgres chartThe DB user password
maddy.sql.postgres_dsn.sslmodestring"disable"SSL model for the DB disable - No SSL require - Always SSL (skip verification) verify-ca - Always SSL (verify that the certificate presented by the server was signed by a trusted CA) verify-full - Always SSL (verify that the certification presented by the server was signed by a trusted CA and the server host name matches the one in the certificate)
maddy.sql.postgres_dsn.userstringuser set in embedded postgres chartThe DB user
maddy.sql.typestring"sqlite3"DB type to use. Supported are sqlite3 and postgres Database is used to store IMAP indexes and (when not using LDAP) authorized users
maddy.tls_secret_namestring"myTLSSecret"name of K8S secret containing the cert and key to use by maddy.
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
postgresqlobjectsee bellowBitnami postgres chart. For more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
postgresql.enabledboolfalseEnable if you want to use the embedded postgresql chart (not neeeded if you use your own postgres DB).
postgresql.persistence.enabledboolfalseif database is stored to a PVC. Set to true when you are done testing.
postgresql.postgresqlDatabasestring"postgres"Postgres database password
postgresql.postgresqlPasswordstring"changeme"Postgres database password
postgresql.postgresqlUsernamestring"postgres"Postgres database user name
serviceobjectSee values.yamlConfigures service settings for the chart.

Changelog

Version 3.1.2

Added

N/A

Changed

  • Upgraded common chart dependency to version 4.5.2

Fixed

N/A

Older versions

A historical overview of changes can be found on ArtifactHUB

Support


Autogenerated from chart metadata using helm-docs v0.1.1

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 v3.2.0 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