hermEX Documentation
hermEX is a modular, native Microsoft Exchange Server replacement written in Go. It implements the Exchange wire protocols and open mail standards inside a single self-hosted stack so Outlook, mobile ActiveSync clients, IMAP/POP3/SMTP clients, CalDAV/CardDAV apps, and webmail connect without modification.
Start Here
- Single-Node Installation: Prepare a standalone Linux server, run
install.sh, publish DNS records (Cloudflare or any DNS provider), enable DKIM signing, and verify all 14 daemons. - Multi-Node Installation: Deploy a multi-pod cluster sharing MariaDB, configure
node_idand all six shared secrets, register pods inservers, assignhomeserverrouting, and verify cross-pod delivery. - Single-to-Multi Migration: Convert an existing single-node server into
Pod 0, share or migrate MariaDB, join new backend pods, monitor multi-pod health in Live status, and move populated mailboxes live between pods. - Shared MariaDB 11.8 Cluster: Build a 3-node MariaDB 11.8 Galera cluster behind a Keepalived VIP (
10.0.0.5:3306) using HAProxy or MaxScale. - Ingress Topologies: Choose DNS Round-Robin (no extra proxy), Stateless Edge Proxy Node (
cluster_edge_only: true), or L4 TCP Load Balancer (HAProxy, Envoy, Keepalived VIP, or Cloud NLB). - Quick Exchange Setup: Configure a complete multi-tenant organization and domain in the Admin Panel, including users, domain administrators, shared mailboxes, delegates, aliases, mailing lists, rooms, external contacts, and public folders.
- HA & Rolling Updates: Architecture and operations guide for multi-pod horizontal scaling, signed inter-pod HTTP routing, Active-Passive failover pods, shared MariaDB outbound relay spool (
relay_database_dsn), and Expand-and-Contract rolling updates.
Supported Protocols
| Service | Protocol / Port | Purpose |
|---|---|---|
| Mail transfer | SMTP 25, SMTPS 465, Submission 587 | Inbound/outbound mail, SPF/DKIM/DMARC/ARC, MTA-STS |
| Mailbox access | IMAP 143, IMAPS 993, POP3 110, POP3S 995 | Standard mail clients, IDLE, CONDSTORE, ACL |
| Sieve filtering | ManageSieve 4190 | Server-side mail filtering scripts |
| Unified HTTPS door | Gateway HTTPS 443, HTTP 80 (ACME / redirect) | Webmail SPA, Admin Panel, Autodiscover, Autoconfig, MTA-STS |
| Exchange protocols | EWS, ActiveSync, MAPI/HTTP, RPC/HTTP, NSPI, OAB (443) | Native Outlook desktop and mobile Exchange clients |
| Open PIM & modern mail | CalDAV, CardDAV, JMAP (443) | Calendar, contacts, and JMAP clients |