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

NameEmailUrl
jeboehm

Source Code

Requirements

RepositoryNameVersion
oci://registry-1.docker.io/bitnamichartscommon2.31.4
oci://registry-1.docker.io/bitnamichartsmariadb20.5.9
oci://registry-1.docker.io/bitnamichartsredis20.13.4

Values

KeyTypeDefaultDescription
commonAnnotationsobject{}
commonLabelsobject{}
config.admin.domainstring"example.com"
config.admin.namestring"admin"
config.admin.passwordstring""
config.antivirus.enabledbooltrue
config.filter.controllerPasswordstring"q1"
config.mailnamestring"mail.example.com"
config.postmasterstring"[email protected]"
config.recipientDelimiterstring"-"
externalDatabase.databasestring"mailserver"
externalDatabase.existingSecretstring""
externalDatabase.hoststring""
externalDatabase.passwordstring""
externalDatabase.portint3306
externalDatabase.userstring"mailserver"
externalRedis.enabledboolfalse
externalRedis.existingSecretstring""
externalRedis.existingSecretPasswordKeystring"redis-password"
externalRedis.hoststring""
externalRedis.passwordstring""
externalRedis.portint6379
externalRedis.selectorobject{}
extraDeploylist[]
fetchmail.affinityobject{}
fetchmail.containerSecurityContext.allowPrivilegeEscalationboolfalse
fetchmail.containerSecurityContext.capabilities.drop[0]string"ALL"
fetchmail.containerSecurityContext.enabledbooltrue
fetchmail.containerSecurityContext.privilegedboolfalse
fetchmail.containerSecurityContext.readOnlyRootFilesystembooltrue
fetchmail.containerSecurityContext.runAsGroupint65534
fetchmail.containerSecurityContext.runAsNonRootbooltrue
fetchmail.containerSecurityContext.runAsUserint65534
fetchmail.containerSecurityContext.seLinuxOptionsobject{}
fetchmail.containerSecurityContext.seccompProfile.typestring"RuntimeDefault"
fetchmail.customLivenessProbeobject{}
fetchmail.extraEnvVarsCMstring""
fetchmail.extraEnvVarsSecretstring""
fetchmail.extraEnvVars[0].namestring"DEBUG"
fetchmail.extraEnvVars[0].valuestring"true"
fetchmail.extraVolumeMountslist[]
fetchmail.extraVolumeslist[]
fetchmail.hostAliaseslist[]
fetchmail.image.pullPolicystring"IfNotPresent"
fetchmail.image.pullSecretslist[]
fetchmail.image.registrystring"ghcr.io"
fetchmail.image.repositorystring"jeboehm/fetchmailmgr"
fetchmail.image.tagstring"0.3.21@sha256:26c4691b28a4d97f55fb3c4b4d1331478f9c1966d2d351293d7b8071f26e0654"
fetchmail.initContainerslist[]
fetchmail.intervalint300
fetchmail.lifecycleHooksobject{}
fetchmail.livenessProbe.enabledbooltrue
fetchmail.livenessProbe.failureThresholdint5
fetchmail.livenessProbe.initialDelaySecondsint15
fetchmail.livenessProbe.periodSecondsint10
fetchmail.livenessProbe.successThresholdint1
fetchmail.livenessProbe.timeoutSecondsint15
fetchmail.nodeAffinityPreset.keystring""
fetchmail.nodeAffinityPreset.typestring""
fetchmail.nodeAffinityPreset.valueslist[]
fetchmail.nodeSelectorobject{}
fetchmail.pdb.createbooltrue
fetchmail.pdb.maxUnavailablestring""
fetchmail.pdb.minAvailablestring""
fetchmail.podAffinityPresetstring""
fetchmail.podAnnotations.checksum/configstring`"{{ include (print $.Template.BasePath "/configmap.yaml") .sha256sum }}"`
fetchmail.podAnnotations.checksum/credentialsstring`"{{ include "docker-mailserver.databaseEnvs" .sha256sum }}"`
fetchmail.podAntiAffinityPresetstring"soft"
fetchmail.podLabelsobject{}
fetchmail.podSecurityContext.enabledbooltrue
fetchmail.podSecurityContext.fsGroupint65534
fetchmail.podSecurityContext.fsGroupChangePolicystring"Always"
fetchmail.podSecurityContext.supplementalGroupslist[]
fetchmail.podSecurityContext.sysctlslist[]
fetchmail.priorityClassNamestring""
fetchmail.resourcesobject{}
fetchmail.resourcesPresetstring"micro"
fetchmail.schedulerNamestring""
fetchmail.sessionAffinitystring"None"
fetchmail.sidecarslist[]
fetchmail.tolerationslist[]
fetchmail.topologySpreadConstraintslist[]
fetchmail.updateStrategy.typestring"RollingUpdate"
filter.affinityobject{}
filter.containerSecurityContext.allowPrivilegeEscalationboolfalse
filter.containerSecurityContext.enabledbooltrue
filter.containerSecurityContext.privilegedboolfalse
filter.containerSecurityContext.readOnlyRootFilesystembooltrue
filter.containerSecurityContext.runAsGroupint101
filter.containerSecurityContext.runAsNonRootbooltrue
filter.containerSecurityContext.runAsUserint100
filter.containerSecurityContext.seLinuxOptionsobject{}
filter.containerSecurityContext.seccompProfile.typestring"RuntimeDefault"
filter.customLivenessProbeobject{}
filter.extraEnvVarslist[]
filter.extraEnvVarsCMstring""
filter.extraEnvVarsSecretstring""
filter.extraVolumeMountslist[]
filter.extraVolumeslist[]
filter.hostAliaseslist[]
filter.image.pullPolicystring"IfNotPresent"
filter.image.pullSecretslist[]
filter.image.registrystring"docker.io"
filter.image.repositorystring"jeboehm/mailserver-filter"
filter.initContainerslist[]
filter.lifecycleHooksobject{}
filter.livenessProbe.enabledbooltrue
filter.livenessProbe.failureThresholdint5
filter.livenessProbe.initialDelaySecondsint15
filter.livenessProbe.periodSecondsint10
filter.livenessProbe.successThresholdint1
filter.livenessProbe.timeoutSecondsint15
filter.nodeAffinityPreset.keystring""
filter.nodeAffinityPreset.typestring""
filter.nodeAffinityPreset.valueslist[]
filter.nodeSelectorobject{}
filter.pdb.createbooltrue
filter.pdb.maxUnavailablestring""
filter.pdb.minAvailablestring""
filter.podAffinityPresetstring""
filter.podAnnotations.checksum/configstring`"{{ include (print $.Template.BasePath "/configmap.yaml") .sha256sum }}"`
filter.podAnnotations.checksum/credentialsstring`"{{ include "docker-mailserver.databaseEnvs" .sha256sum }}"`
filter.podAntiAffinityPresetstring"soft"
filter.podLabelsobject{}
filter.podSecurityContext.enabledbooltrue
filter.podSecurityContext.fsGroupint101
filter.podSecurityContext.fsGroupChangePolicystring"Always"
filter.podSecurityContext.supplementalGroupslist[]
filter.podSecurityContext.sysctlslist[]
filter.priorityClassNamestring""
filter.replicaCountint1
filter.resourcesobject{}
filter.resourcesPresetstring"medium"
filter.schedulerNamestring""
filter.sessionAffinitystring"None"
filter.sidecarslist[]
filter.tolerationslist[]
filter.topologySpreadConstraintslist[]
filter.unbound.image.digeststring""
filter.unbound.image.pullPolicystring"IfNotPresent"
filter.unbound.image.pullSecretslist[]
filter.unbound.image.registrystring"docker.io"
filter.unbound.image.repositorystring"mvance/unbound"
filter.unbound.image.tagstring"1.22.0"
filter.updateStrategy.typestring"RollingUpdate"
fullnameOverridestring""
global.compatibility.openshift.adaptSecurityContextstring"auto"
global.defaultStorageClassstring""
global.imagePullSecretslist[]
global.imageRegistrystring""
global.security.allowInsecureImagesboolfalse
ingress.annotationsobject{}
ingress.apiVersionstring""
ingress.enabledbooltrue
ingress.extraHostslist[]
ingress.extraPathslist[]
ingress.extraRuleslist[]
ingress.extraTlslist[]
ingress.extraTlsHostnameslist[]
ingress.hostnamestring"mail.example.com"
ingress.ingressClassNamestring""
ingress.pathstring"/"
ingress.pathTypestring"ImplementationSpecific"
ingress.secretslist[]
ingress.selfSignedbooltrue
ingress.tlsbooltrue
kubeVersionstring""
mariadb.architecturestring"standalone"
mariadb.auth.databasestring"mailserver"
mariadb.auth.passwordstring""
mariadb.auth.rootPasswordstring""
mariadb.auth.usernamestring"mailserver"
mariadb.enabledbooltrue
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdocker-mailserver is pinned at v0.2.65 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