# Mailu Helm values — managed via Helm (NOT kubectl apply) # Chart: mailu 2.7.1 (appVersion 2024.06.51) # Install/upgrade commands in Email/README.md # Edit here, then: helm upgrade mailu mailu/mailu -n mailu --version 2.7.1 -f Email/mailu.values.yaml # ----------------------------- # Identity # ----------------------------- hostnames: - mail.mariushome.lt # primary mail hostname (PTR target) domain: mariushome.lt timezone: Europe/Vilnius logLevel: INFO postmaster: postmaster # ----------------------------- # Secrets (out-of-band, see README.md) # ----------------------------- existingSecret: mailu-secret # holds secret-key + initial-admin-password initialAccount: enabled: true username: admin domain: mariushome.lt existingSecret: mailu-secret existingSecretPasswordKey: initial-admin-password mode: ifmissing # ----------------------------- # Mail storage — single PVC on Hetzner block storage # hcloud-volumes is NOT the default SC (slow/SMB is) — set explicitly per AGENTS.md # ----------------------------- persistence: single_pvc: true storageClass: hcloud-volumes size: 10Gi accessModes: [ReadWriteOnce] # ----------------------------- # External PostgreSQL — reuse the existing postgres-hetzner instance # (database namespace, Service postgres.database.svc.cluster.local:5432) # The mailu + roundcube databases and users must be created manually first; # see Email/README.md "Create the Mailu databases on the existing PostgreSQL". # ----------------------------- postgresql: enabled: false # do NOT deploy the bundled postgres subchart externalDatabase: enabled: true type: postgresql host: postgres.database.svc.cluster.local port: 5432 existingSecret: mailu-db-secret # keys: database, username, password, roundcube-password existingSecretDatabaseKey: database existingSecretUsernameKey: username existingSecretPasswordKey: password # Roundcube DB lives in the same external PG; chart does NOT create it for # externalDatabase mode — must be created manually (see README.md). global: database: roundcube: database: roundcube username: roundcube existingSecret: mailu-db-secret existingSecretPasswordKey: roundcube-password # ----------------------------- # Web UIs (admin + webmail) — behind Cilium Ingress # Upstream Cloudflare terminates TLS; no cert-manager in this repo # ----------------------------- ingress: enabled: true ingressClassName: cilium pathType: Prefix annotations: ingress.cilium.io/loadbalancer-mode: "dedicated" # matches gitea/immich pattern tls: false # Cloudflare terminates TLS upstream selfSigned: false realIpHeader: CF-Connecting-IP # Cloudflare CIDRs — must be trusted or front will rate-limit/ban CF edge IPs # Source: https://www.cloudflare.com/ips/ (re-check periodically) realIpFrom: >- 103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/13,104.24.0.0/14, 108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13, 173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17, 2400:cb00::/32,2606:4700::/32,2803:f800::/32,2405:b500::/32,2405:8100::/32, 2a06:98c0::/29,2c0f:f248::/32 # ----------------------------- # Mail ports (SMTP/IMAP/Submission/ManageSieve) — Cilium LoadBalancer # NOT hostPort (chart default assumes bare-metal); NOT through Cloudflare # IP pinned via lbipam.cilium.io/ips to 10.4.0.122 (mailu-pool, see mailu_lbippool.yaml) # ----------------------------- front: hostPort: enabled: false # chart default true — must disable for k8s LB externalService: enabled: true type: LoadBalancer externalTrafficPolicy: Local annotations: lbipam.cilium.io/ips: "10.4.0.122" ports: smtp: true smtps: true submission: true imap: true imaps: true pop3: false # POP3 disabled per requirement pop3s: false manageSieve: true # ----------------------------- # Mailu app version pin (stable line) # ----------------------------- mailuVersion: "2024.06"