Madmail is a chatmail server for Delta Chat. It is not a messenger.
It is the layer that creates accounts, holds mail, moves it between relays, and sets up calls. It ships as one binary.
It started as Maddy: we patched that Go mail server for conditions in Iran so it would come up on a public IP, with no domain.
That fork became Madmail.
The current version is a Rust rewrite.
That is the use it had during Iran’s internet shutdowns. When international connectivity is cut, WhatsApp, Telegram, and anything whose servers sit outside the border go dark. If the relay is inside the country and on the national network, Delta Chat still works between people inside.
The bottleneck was standing the relay up. We built Madmail for that bottleneck: one file, an IP is enough, a running server can hand the installer to the next person, and the docs stay on the box.
The features come from that need. Accounts are created on first use; there is no separate signup form. Only PGP mail is accepted. SMTP, IMAP, and HTTP federation on `/mxdeliv` run in the same process; SMTP is the fallback. The relay’s site issues a QR code and an invite link, speaks Persian, English, and Russian, and can host a WebXDC app store. TURN and Iroh are built in for calls and mini-apps. There is an admin API and a web panel. Linux and Windows. A domain is optional.
When two relays cannot reach each other blocked port, split DNS, filtering an exchanger moves the same messages over HTTPS between those servers and does not open the PGP lock. It does not bring the outside internet back. It only carries mail between chatmail relays.
https://madmail.chat
https://github.com/themadorg/madmail
https://github.com/themadorg/madexchanger
