Skip to main content

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_id and all six shared secrets, register pods in servers, assign homeserver routing, 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​

ServiceProtocol / PortPurpose
Mail transferSMTP 25, SMTPS 465, Submission 587Inbound/outbound mail, SPF/DKIM/DMARC/ARC, MTA-STS
Mailbox accessIMAP 143, IMAPS 993, POP3 110, POP3S 995Standard mail clients, IDLE, CONDSTORE, ACL
Sieve filteringManageSieve 4190Server-side mail filtering scripts
Unified HTTPS doorGateway HTTPS 443, HTTP 80 (ACME / redirect)Webmail SPA, Admin Panel, Autodiscover, Autoconfig, MTA-STS
Exchange protocolsEWS, ActiveSync, MAPI/HTTP, RPC/HTTP, NSPI, OAB (443)Native Outlook desktop and mobile Exchange clients
Open PIM & modern mailCalDAV, CardDAV, JMAP (443)Calendar, contacts, and JMAP clients