automx2
by OLED1
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
| Parameter | Description | Default |
|---|---|---|
image.repository | Automx2 image repository | oled01/automx2 |
image.pullPolicy | Image pull policy | Always |
image.tag | Image tag (uses Chart appVersion if empty) | "" |
imagePullSecrets | Image pull secrets for private registries | [] |
General Configuration
| Parameter | Description | Default |
|---|---|---|
nameOverride | Override the name of the chart | "" |
fullnameOverride | Override the fullname of the chart | "" |
podAnnotations | Pod annotations | {} |
podSecurityContext | Pod security context | {} |
Ingress Configuration
| Parameter | Description | Default |
|---|---|---|
ingress.enabled | Enable ingress | false |
ingress.className | Ingress class name | "" |
ingress.annotations | Ingress annotations | {} |
ingress.create_autodiscover_subdomain | Create autodiscover subdomains for all configured domains | true |
ingress.create_autoconfig_subdomain | Create autoconfig subdomains for all configured domains | true |
ingress.tls_enabled | Enable TLS for ingress | false |
ingress.existing_secret | Use existing TLS secret | "" |
ingress.extraHosts | Additional hosts configuration | [] |
ingress.extraTLS | Additional TLS configuration | [] |
Container Configuration
| Parameter | Description | Default |
|---|---|---|
container.timezone | Container timezone | Europe/Vienna |
container.replicaCount | Number of replicas | 1 |
container.resources.requests.memory | Memory request | 50M |
container.resources.requests.cpu | CPU request | 25m |
container.resources.limits.memory | Memory limit | 100M |
container.resources.limits.cpu | CPU limit | 50m |
Application Configuration
| Parameter | Description | Default |
|---|---|---|
app.use_automx2_default | Use default automx2 configuration | true |
app.custom_automx2_config | Custom automx2 configuration | "" |
app.autoconfig.name | Mail provider name | Example Inc. |
app.autoconfig.domains | Supported email domains (creates subdomains for each) | ["example.com", "example.net", "example.org"] |
app.autoconfig.imap_server | IMAP server address | imap.example.com |
app.autoconfig.smtp_server | SMTP server address | smtp.example.com |
app.autoconfig.caldav_base | CalDAV server base URL | nil |
app.autoconfig.caldav_port | CalDAV server port | 443 |
app.autoconfig.carddav_base | CardDAV server base URL | nil |
app.autoconfig.carddav_port | CardDAV server port | 443 |
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.comandautoconfig.example.orgautodiscover.example.comandautodiscover.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
-
Domain Configuration: Each domain in
app.autoconfig.domainsautomatically gets bothautoconfig.domainandautodiscover.domainsubdomains created. -
DNS Setup: You must configure DNS to point all the autoconfig/autodiscover subdomains to your Kubernetes ingress controller.
-
Resource Limits: The default resource limits follow Kubernetes formatting:
- Memory: Use
Mi(Mebibytes) orGi(Gibibytes) - CPU: Use
m(millicores) or whole numbers
- Memory: Use
-
TLS: When enabling TLS, ensure your cluster has a certificate manager or provide existing certificates. All subdomains will be included in the certificate.
-
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartautomx2 is pinned at v1.0.5 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