automx2

by OLED1

Helm chartv1.0.5App 2025.1.1Verified publisher

Mail User Agent (email client) configuration made easy.

About this chart

Automx2 Helm Chart

This Helm chart is a custom helm chart packaged by OLED1. This chart belongs to rseichter There is no official support from Automx2 (rseichter) itself. Active unofficial supported chart. If a new version will be released a new updated package will be created.

Prerequisites

  • Kubernetes installed
  • Helm installed and configured. See here
  • (Optional) Kubeapps (Helm GUI) installed. See here
  • (Optional) Lens installed. See here

Short app description

automx2 makes configuring email accounts easy. It unites methods for automated mailbox configuration from Apple's Mobileconfig, Microsoft's Autodiscover and Mozilla's Autoconfig in one tool. automx2 is successor to automx. It has been designed to be easier to set up, easier to configure and easier to use.

Documentation

  • The official documentation can be found here

Installation

This helm chart fully installs the Automx2 mail configuration App with default content. Just fill out the values.yaml file or use Visual Editor to deploy the application.

Configuration

The following table lists the configurable parameters of the Automx2 chart and their default values.

Image Configuration

ParameterDescriptionDefault
image.repositoryAutomx2 image repositoryoled01/automx2
image.pullPolicyImage pull policyAlways
image.tagImage tag (uses Chart appVersion if empty)""
imagePullSecretsImage pull secrets for private registries[]

General Configuration

ParameterDescriptionDefault
nameOverrideOverride the name of the chart""
fullnameOverrideOverride the fullname of the chart""
podAnnotationsPod annotations{}
podSecurityContextPod security context{}

Ingress Configuration

ParameterDescriptionDefault
ingress.enabledEnable ingressfalse
ingress.classNameIngress class name""
ingress.annotationsIngress annotations{}
ingress.create_autodiscover_subdomainCreate autodiscover subdomains for all configured domainstrue
ingress.create_autoconfig_subdomainCreate autoconfig subdomains for all configured domainstrue
ingress.tls_enabledEnable TLS for ingressfalse
ingress.existing_secretUse existing TLS secret""
ingress.extraHostsAdditional hosts configuration[]
ingress.extraTLSAdditional TLS configuration[]

Container Configuration

ParameterDescriptionDefault
container.timezoneContainer timezoneEurope/Vienna
container.replicaCountNumber of replicas1
container.resources.requests.memoryMemory request50M
container.resources.requests.cpuCPU request25m
container.resources.limits.memoryMemory limit100M
container.resources.limits.cpuCPU limit50m

Application Configuration

ParameterDescriptionDefault
app.use_automx2_defaultUse default automx2 configurationtrue
app.custom_automx2_configCustom automx2 configuration""
app.autoconfig.nameMail provider nameExample Inc.
app.autoconfig.domainsSupported email domains (creates subdomains for each)["example.com", "example.net", "example.org"]
app.autoconfig.imap_serverIMAP server addressimap.example.com
app.autoconfig.smtp_serverSMTP server addresssmtp.example.com
app.autoconfig.caldav_baseCalDAV server base URLnil
app.autoconfig.caldav_portCalDAV server port443
app.autoconfig.carddav_baseCardDAV server base URLnil
app.autoconfig.carddav_portCardDAV server port443

How Domains Work

Important: This chart automatically creates autoconfig and autodiscover subdomains for each domain listed in app.autoconfig.domains.

For example, with domains ["example.com", "example.org"], the chart creates:

  • Autoconfig: autoconfig.example.com, autoconfig.example.org
  • Autodiscover: autodiscover.example.com, autodiscover.example.org

All subdomains point to the same automx2 service, which serves the appropriate configuration based on the requested domain.

Example Configurations

Basic Configuration

ingress:
  enabled: true
  className: "nginx"
  create_autoconfig_subdomain: true
  create_autodiscover_subdomain: true
  tls_enabled: true
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"

app:
  autoconfig:
    name: "My Company"
    domains: 
      - "example.com"
      - "example.org"
    imap_server: "imap.example.com"
    smtp_server: "smtp.example.com"

This creates ingress entries for:

  • autoconfig.example.com and autoconfig.example.org
  • autodiscover.example.com and autodiscover.example.org

Advanced Configuration with CalDAV/CardDAV

app:
  autoconfig:
    name: "Corporate Mail"
    domains: ["company.com", "subsidiary.com"]
    imap_server: "mail.company.com"
    smtp_server: "mail.company.com"
    caldav_base: "https://caldav.company.com"
    caldav_port: 443
    carddav_base: "https://carddav.company.com"
    carddav_port: 443

container:
  replicaCount: 3
  resources:
    requests:
      memory: "256Mi"
      cpu: "250m"
    limits:
      memory: "512Mi"
      cpu: "500m"

ingress:
  enabled: true
  className: "nginx"
  tls_enabled: true
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
    nginx.ingress.kubernetes.io/from-to-www-redirect: "true"

Custom Automx2 Configuration

app:
  use_automx2_default: false
  custom_automx2_config: |
    [automx2]
    loglevel = WARNING
    db_echo = no
    db_uri = mysql://username:[email protected]/automx2
    proxy_count = 1

  autoconfig:
    name: "Custom Setup"
    domains: ["mydomain.com"]
    imap_server: "imap.mydomain.com"
    smtp_server: "smtp.mydomain.com"

Multi-Domain Setup

app:
  autoconfig:
    name: "Multi-Domain Provider"
    domains: 
      - "company.com"
      - "company.org"
      - "company.net"
      - "subsidiary.com"
    imap_server: "mail.company.com"
    smtp_server: "mail.company.com"

ingress:
  enabled: true
  className: "nginx"
  tls_enabled: true

This automatically creates 8 ingress entries:

  • autoconfig.company.com, autoconfig.company.org, autoconfig.company.net, autoconfig.subsidiary.com
  • autodiscover.company.com, autodiscover.company.org, autodiscover.company.net, autodiscover.subsidiary.com

Usage

After installation, the service will be available for each domain you configured:

Testing the Configuration

Test your configuration with curl (replace yourdomain.com with your actual domain):

# Test autoconfig
curl 'https://autoconfig.yourdomain.com/mail/[email protected]'

# Test autodiscover
curl -X POST 'https://autodiscover.yourdomain.com/autodiscover/autodiscover.xml' \
  -H 'Content-Type: text/xml' \
  -d '<?xml version="1.0"?><Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>[email protected]</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema></Request></Autodiscover>'

Important Notes

  1. Domain Configuration: Each domain in app.autoconfig.domains automatically gets both autoconfig.domain and autodiscover.domain subdomains created.

  2. DNS Setup: You must configure DNS to point all the autoconfig/autodiscover subdomains to your Kubernetes ingress controller.

  3. Resource Limits: The default resource limits follow Kubernetes formatting:

    • Memory: Use Mi (Mebibytes) or Gi (Gibibytes)
    • CPU: Use m (millicores) or whole numbers
  4. TLS: When enabling TLS, ensure your cluster has a certificate manager or provide existing certificates. All subdomains will be included in the certificate.

  5. Scaling: The chart supports multiple replicas since automx2 is stateless (when using default in-memory SQLite).

Feature or documentation missing or bug found

Please tell me by opening a github issue: oleds-helm-charts.

Documentation

FAQ

Q: How do I add a new domain? A: Simply add it to the app.autoconfig.domains array. The chart will automatically create the corresponding autoconfig and autodiscover subdomains.

Q: Can I disable autoconfig or autodiscover for specific domains? A: You can disable them globally using ingress.create_autoconfig_subdomain: false or ingress.create_autodiscover_subdomain: false. For per-domain control, use ingress.extraHosts.

Q: Do I need to configure DNS for each subdomain? A: Yes, you need DNS entries pointing autoconfig.domain.com and autodiscover.domain.com to your Kubernetes ingress controller for each domain you configure.

If you have a feature request or found a bug, open a github issue here.

Deploy automx2 with OpenTenant

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