docker-mailserver
by jeboehm
Helm chartv0.2.65App 5.0.92Verified publisher
Docker Mailserver based on the famous ISPMail guide. All images are based on Alpine Linux and are so small as possible.
About this chart
docker-mailserver
Docker Mailserver based on the famous ISPMail guide. All images are based on Alpine Linux and are so small as possible.
Maintainers
| Name | Url | |
|---|---|---|
| jeboehm |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| oci://registry-1.docker.io/bitnamicharts | common | 2.31.4 |
| oci://registry-1.docker.io/bitnamicharts | mariadb | 20.5.9 |
| oci://registry-1.docker.io/bitnamicharts | redis | 20.13.4 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| commonAnnotations | object | {} | |
| commonLabels | object | {} | |
| config.admin.domain | string | "example.com" | |
| config.admin.name | string | "admin" | |
| config.admin.password | string | "" | |
| config.antivirus.enabled | bool | true | |
| config.filter.controllerPassword | string | "q1" | |
| config.mailname | string | "mail.example.com" | |
| config.postmaster | string | "[email protected]" | |
| config.recipientDelimiter | string | "-" | |
| externalDatabase.database | string | "mailserver" | |
| externalDatabase.existingSecret | string | "" | |
| externalDatabase.host | string | "" | |
| externalDatabase.password | string | "" | |
| externalDatabase.port | int | 3306 | |
| externalDatabase.user | string | "mailserver" | |
| externalRedis.enabled | bool | false | |
| externalRedis.existingSecret | string | "" | |
| externalRedis.existingSecretPasswordKey | string | "redis-password" | |
| externalRedis.host | string | "" | |
| externalRedis.password | string | "" | |
| externalRedis.port | int | 6379 | |
| externalRedis.selector | object | {} | |
| extraDeploy | list | [] | |
| fetchmail.affinity | object | {} | |
| fetchmail.containerSecurityContext.allowPrivilegeEscalation | bool | false | |
| fetchmail.containerSecurityContext.capabilities.drop[0] | string | "ALL" | |
| fetchmail.containerSecurityContext.enabled | bool | true | |
| fetchmail.containerSecurityContext.privileged | bool | false | |
| fetchmail.containerSecurityContext.readOnlyRootFilesystem | bool | true | |
| fetchmail.containerSecurityContext.runAsGroup | int | 65534 | |
| fetchmail.containerSecurityContext.runAsNonRoot | bool | true | |
| fetchmail.containerSecurityContext.runAsUser | int | 65534 | |
| fetchmail.containerSecurityContext.seLinuxOptions | object | {} | |
| fetchmail.containerSecurityContext.seccompProfile.type | string | "RuntimeDefault" | |
| fetchmail.customLivenessProbe | object | {} | |
| fetchmail.extraEnvVarsCM | string | "" | |
| fetchmail.extraEnvVarsSecret | string | "" | |
| fetchmail.extraEnvVars[0].name | string | "DEBUG" | |
| fetchmail.extraEnvVars[0].value | string | "true" | |
| fetchmail.extraVolumeMounts | list | [] | |
| fetchmail.extraVolumes | list | [] | |
| fetchmail.hostAliases | list | [] | |
| fetchmail.image.pullPolicy | string | "IfNotPresent" | |
| fetchmail.image.pullSecrets | list | [] | |
| fetchmail.image.registry | string | "ghcr.io" | |
| fetchmail.image.repository | string | "jeboehm/fetchmailmgr" | |
| fetchmail.image.tag | string | "0.3.21@sha256:26c4691b28a4d97f55fb3c4b4d1331478f9c1966d2d351293d7b8071f26e0654" | |
| fetchmail.initContainers | list | [] | |
| fetchmail.interval | int | 300 | |
| fetchmail.lifecycleHooks | object | {} | |
| fetchmail.livenessProbe.enabled | bool | true | |
| fetchmail.livenessProbe.failureThreshold | int | 5 | |
| fetchmail.livenessProbe.initialDelaySeconds | int | 15 | |
| fetchmail.livenessProbe.periodSeconds | int | 10 | |
| fetchmail.livenessProbe.successThreshold | int | 1 | |
| fetchmail.livenessProbe.timeoutSeconds | int | 15 | |
| fetchmail.nodeAffinityPreset.key | string | "" | |
| fetchmail.nodeAffinityPreset.type | string | "" | |
| fetchmail.nodeAffinityPreset.values | list | [] | |
| fetchmail.nodeSelector | object | {} | |
| fetchmail.pdb.create | bool | true | |
| fetchmail.pdb.maxUnavailable | string | "" | |
| fetchmail.pdb.minAvailable | string | "" | |
| fetchmail.podAffinityPreset | string | "" | |
| fetchmail.podAnnotations.checksum/config | string | `"{{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}"` |
| fetchmail.podAnnotations.checksum/credentials | string | `"{{ include "docker-mailserver.databaseEnvs" . | sha256sum }}"` |
| fetchmail.podAntiAffinityPreset | string | "soft" | |
| fetchmail.podLabels | object | {} | |
| fetchmail.podSecurityContext.enabled | bool | true | |
| fetchmail.podSecurityContext.fsGroup | int | 65534 | |
| fetchmail.podSecurityContext.fsGroupChangePolicy | string | "Always" | |
| fetchmail.podSecurityContext.supplementalGroups | list | [] | |
| fetchmail.podSecurityContext.sysctls | list | [] | |
| fetchmail.priorityClassName | string | "" | |
| fetchmail.resources | object | {} | |
| fetchmail.resourcesPreset | string | "micro" | |
| fetchmail.schedulerName | string | "" | |
| fetchmail.sessionAffinity | string | "None" | |
| fetchmail.sidecars | list | [] | |
| fetchmail.tolerations | list | [] | |
| fetchmail.topologySpreadConstraints | list | [] | |
| fetchmail.updateStrategy.type | string | "RollingUpdate" | |
| filter.affinity | object | {} | |
| filter.containerSecurityContext.allowPrivilegeEscalation | bool | false | |
| filter.containerSecurityContext.enabled | bool | true | |
| filter.containerSecurityContext.privileged | bool | false | |
| filter.containerSecurityContext.readOnlyRootFilesystem | bool | true | |
| filter.containerSecurityContext.runAsGroup | int | 101 | |
| filter.containerSecurityContext.runAsNonRoot | bool | true | |
| filter.containerSecurityContext.runAsUser | int | 100 | |
| filter.containerSecurityContext.seLinuxOptions | object | {} | |
| filter.containerSecurityContext.seccompProfile.type | string | "RuntimeDefault" | |
| filter.customLivenessProbe | object | {} | |
| filter.extraEnvVars | list | [] | |
| filter.extraEnvVarsCM | string | "" | |
| filter.extraEnvVarsSecret | string | "" | |
| filter.extraVolumeMounts | list | [] | |
| filter.extraVolumes | list | [] | |
| filter.hostAliases | list | [] | |
| filter.image.pullPolicy | string | "IfNotPresent" | |
| filter.image.pullSecrets | list | [] | |
| filter.image.registry | string | "docker.io" | |
| filter.image.repository | string | "jeboehm/mailserver-filter" | |
| filter.initContainers | list | [] | |
| filter.lifecycleHooks | object | {} | |
| filter.livenessProbe.enabled | bool | true | |
| filter.livenessProbe.failureThreshold | int | 5 | |
| filter.livenessProbe.initialDelaySeconds | int | 15 | |
| filter.livenessProbe.periodSeconds | int | 10 | |
| filter.livenessProbe.successThreshold | int | 1 | |
| filter.livenessProbe.timeoutSeconds | int | 15 | |
| filter.nodeAffinityPreset.key | string | "" | |
| filter.nodeAffinityPreset.type | string | "" | |
| filter.nodeAffinityPreset.values | list | [] | |
| filter.nodeSelector | object | {} | |
| filter.pdb.create | bool | true | |
| filter.pdb.maxUnavailable | string | "" | |
| filter.pdb.minAvailable | string | "" | |
| filter.podAffinityPreset | string | "" | |
| filter.podAnnotations.checksum/config | string | `"{{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}"` |
| filter.podAnnotations.checksum/credentials | string | `"{{ include "docker-mailserver.databaseEnvs" . | sha256sum }}"` |
| filter.podAntiAffinityPreset | string | "soft" | |
| filter.podLabels | object | {} | |
| filter.podSecurityContext.enabled | bool | true | |
| filter.podSecurityContext.fsGroup | int | 101 | |
| filter.podSecurityContext.fsGroupChangePolicy | string | "Always" | |
| filter.podSecurityContext.supplementalGroups | list | [] | |
| filter.podSecurityContext.sysctls | list | [] | |
| filter.priorityClassName | string | "" | |
| filter.replicaCount | int | 1 | |
| filter.resources | object | {} | |
| filter.resourcesPreset | string | "medium" | |
| filter.schedulerName | string | "" | |
| filter.sessionAffinity | string | "None" | |
| filter.sidecars | list | [] | |
| filter.tolerations | list | [] | |
| filter.topologySpreadConstraints | list | [] | |
| filter.unbound.image.digest | string | "" | |
| filter.unbound.image.pullPolicy | string | "IfNotPresent" | |
| filter.unbound.image.pullSecrets | list | [] | |
| filter.unbound.image.registry | string | "docker.io" | |
| filter.unbound.image.repository | string | "mvance/unbound" | |
| filter.unbound.image.tag | string | "1.22.0" | |
| filter.updateStrategy.type | string | "RollingUpdate" | |
| fullnameOverride | string | "" | |
| global.compatibility.openshift.adaptSecurityContext | string | "auto" | |
| global.defaultStorageClass | string | "" | |
| global.imagePullSecrets | list | [] | |
| global.imageRegistry | string | "" | |
| global.security.allowInsecureImages | bool | false | |
| ingress.annotations | object | {} | |
| ingress.apiVersion | string | "" | |
| ingress.enabled | bool | true | |
| ingress.extraHosts | list | [] | |
| ingress.extraPaths | list | [] | |
| ingress.extraRules | list | [] | |
| ingress.extraTls | list | [] | |
| ingress.extraTlsHostnames | list | [] | |
| ingress.hostname | string | "mail.example.com" | |
| ingress.ingressClassName | string | "" | |
| ingress.path | string | "/" | |
| ingress.pathType | string | "ImplementationSpecific" | |
| ingress.secrets | list | [] | |
| ingress.selfSigned | bool | true | |
| ingress.tls | bool | true | |
| kubeVersion | string | "" | |
| mariadb.architecture | string | "standalone" | |
| mariadb.auth.database | string | "mailserver" | |
| mariadb.auth.password | string | "" | |
| mariadb.auth.rootPassword | string | "" | |
| mariadb.auth.username | string | "mailserver" | |
| mariadb.enabled | bool | true | |
| mariadb.initdbScripts."mailserver.sql" | string | "SET NAMES utf8mb4;\nSET FOREIGN_KEY_CHECKS = 0;\nDROP TABLE IF EXISTS mail_aliases;\nCREATE TABLE mail_aliases(\n idint(11) NOT NULL AUTO_INCREMENT,\n domain_idint(11) DEFAULT NULL,\n namevarchar(255) NOT NULL,\n destination varchar(255) NOT NULL,\n PRIMARY KEY (id),\n UNIQUE KEY alias_idx (domain_id, name, destination),\n KEY IDX_85AF3A56115F0EE5 (domain_id),\n CONSTRAINT FK_5F12BB39115F0EE5FOREIGN KEY (\n domain_id\n ) REFERENCES mail_domains (id)\n) ENGINE = InnoDB;\nDROP TABLE IF EXISTS mail_domains;\nCREATE TABLE mail_domains(\n idint(11) NOT NULL AUTO_INCREMENT,\n namevarchar(255) NOT NULL,\n dkim_enabledtinyint(1) NOT NULL,\n dkim_selectorvarchar(255) NOT NULL,\n dkim_private_key longtext NOT NULL,\n PRIMARY KEY (id),\n UNIQUE KEY UNIQ_56C63EF25E237E06 (name)\n) ENGINE = InnoDB;\nDROP TABLE IF EXISTS mail_users;\nCREATE TABLE mail_users(\n idint(11) NOT NULL AUTO_INCREMENT,\n domain_idint(11) DEFAULT NULL,\n namevarchar(255) NOT NULL,\n passwordvarchar(255) NOT NULL,\n admintinyint(1) NOT NULL,\n enabledtinyint(1) NOT NULL,\n send_onlytinyint(1) NOT NULL,\n quota int(11) NOT NULL,\n PRIMARY KEY (id),\n UNIQUE KEY user_idx (name, domain_id),\n KEY IDX_20400786115F0EE5 (domain_id),\n CONSTRAINT FK_1483A5E9115F0EE5FOREIGN KEY (\n domain_id\n ) REFERENCES mail_domains (id)\n) ENGINE = InnoDB;\nDROP TABLE IF EXISTS migration_versions;\nCREATE TABLE migration_versions(\n versionvarchar(191) NOT NULL,\n executed_atDATETIME DEFAULT NULL,\n execution_time int(11) DEFAULT NULL,\n PRIMARY KEY (version)\n) ENGINE = InnoDB;\nINSERT INTO migration_versions(\n version, executed_at, execution_time\n) VALUES\n('DoctrineMigrations\\\\Version20180320164351', NOW(), 0),\n('DoctrineMigrations\\\\Version20180320171339', NOW(), 0),\n('DoctrineMigrations\\\\Version20180322081734', NOW(), 0),\n('DoctrineMigrations\\\\Version20180520173959', NOW(), 0),\n('DoctrineMigrations\\\\Version20190610121554', NOW(), 0);\n" | |
| mariadb.initdbScripts."webmail.sql" | string | "-- Roundcube Webmail initial database structure\n/*!40014 SET FOREIGN_KEY_CHECKS=0 */;\n-- Table structure for table session\nCREATE TABLE session (\nsess_id varchar(128) NOT NULL,\nchanged datetime NOT NULL DEFAULT '1000-01-01 00:00:00',\nip varchar(40) NOT NULL,\nvars mediumtext NOT NULL,\nPRIMARY KEY(sess_id),\nINDEX changed_index (changed)\n) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;\n-- Table structure for table users\nCREATE TABLE users (\nuser_id int(10) UNSIGNED NOT NULL AUTO_INCREMENT,\nusername varchar(128) BINARY NOT NULL,\nmail_host varchar(128) NOT NULL,\ncreated datetime NOT NULL DEFAULT '1000-01-01 00:00:00',\nlast_login datetime DEFAULT NULL,\nfailed_login datetime DEFAULT NULL,\nfailed_login_counter int(10) UNSIGNED DEFAULT NULL,\nlanguage varchar(5),\npreferences longtext,\nPRIMARY KEY(user_id),\nUNIQUE username (username, mail_host)\n) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;\n-- Table structure for table cache\nCREATE TABLE cache (\nuser_id int(10) UNSIGNED NOT NULL,\ncache_key varchar(128) BINARY NOT NULL,\nexpires datetime DEFAULT NULL,\ndata` long |
Deploy docker-mailserver with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has docker-mailserver 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 chartdocker-mailserver is pinned at v0.2.65 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