Shared MariaDB 11.8 Cluster
All backend pods and edge proxy nodes in a multi-node hermEX deployment read and write shared directory metadata, server registries, ACME TLS certificates, centralized logs, and the outbound relay spool (SELECT ... FOR UPDATE SKIP LOCKED) in MariaDB 11.8. This guide configures a fault-tolerant 3-node MariaDB 11.8 Galera Cluster behind a virtual IP (10.0.0.5:3306) using either HAProxy + Keepalived or MariaDB MaxScale + Keepalived.
DNS Round-Robin (No Extra Proxy)
Every backend hermEX pod (Pod 0, Pod 1, Pod N) runs the full proxy-capable stack (gateway, imap, pop3, sieve, mta). When a user or remote SMTP sender connects to any pod, that pod reads users.homeserver and domains.homeserver from MariaDB and proxies traffic transparently to the owning pod. Because of that design, small and medium clusters can expose backend pods directly via DNS Round-Robin without deploying any separate front-end load balancer.
Stateless Edge Proxy Node
Instead of managing third-party proxy software in a DMZ, you can run dedicated stateless hermEX front-door edge nodes by setting "clusteredgeonly": true in /etc/hermex/config.json. An edge node opens public ports (25, 80, 110, 143, 443, 465, 587, 993, 995, 4190), stores zero local mailboxes, and proxies every client connection and SMTP delivery directly to the owning backend pod (Pod 0, Pod 1, ... Pod N) over the private cluster network.
L4 Load Balancer (HAProxy / Envoy / Keepalived / Cloud)
For production high availability with fast sub-second health eviction, place a Layer-4 TCP Passthrough Load Balancer in front of your hermEX backend pods (or stateless edge nodes). DNS hostnames (mail.example.com, autodiscover.example.com, mta-sts.example.com, MX) point to one highly available VIP (203.0.113.50), and the load balancer forwards raw TCP connections across healthy backend nodes.