Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

madmail

> 编程语言
Open source

Bringing the madness to mail delivery. #deltachat

178 stars0 likes1 views
WebsiteGitHub

About

Bringing the madness to mail delivery. #deltachat

Madmail-V2

A rust-based mail relay server for Delta Chat, encrypted, federated, one binary. batteries included.

Quick Setup · Features · Documentation · Deployment

Madmail is a server relay for the Delta Chat app, users message through the Chatmail protocol, while Madmail handles delivery, storage, federation, and real-time services on the server side.

A Rust rewrite of Madmail v1: SMTP, IMAP, encryption enforcement, and real-time relay built in.

Quick Setup

Download the release binary for your architecture, then install and start the service:

bash
ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
curl -fsSL "https://github.com/themadorg/madmail/releases/latest/download/madmail-linux-${ARCH}" \
  -o madmail
chmod +x madmail

With a public IP (no domain)

Trusted TLS via Let's Encrypt IP certificate (~6-day renewal, port 80 required):

bash
sudo ./madmail install --simple --ip YOUR_IP \
  --auto-ip-cert \
  --acme-email [email protected] \
  --lang en
sudo systemctl enable madmail
sudo systemctl start madmail

Replace YOUR_IP with your server's public IPv4 or IPv6 address.

Self-signed TLS (testing / internal — omit --auto-ip-cert):

bash
sudo ./madmail install --simple --ip YOUR_IP --lang en
sudo systemctl enable madmail
sudo systemctl start madmail

With a domain

Standard Let's Encrypt certificate (90-day renewal, DNS must point to your server):

bash
sudo ./madmail install --simple --domain mail.example.org \
  --acme-email [email protected] \
  --lang en
sudo systemctl enable madmail
sudo systemctl start madmail

Replace mail.example.org with your hostname and [email protected] with a valid contact email.

More detail:

  • Quick start (full guide)
  • DNS, SPF, DKIM, federation
  • Simple IP + ACME install
  • IP vs domain deployment
  • Local development

Community

  • Contributing — setup, tests, PR expectations
  • Security policy — how to report vulnerabilities privately
  • Code of Conduct

Documentation

Documentation is organized by audience and purpose.

For Server Operators and End Users

  • User & Operator Guide — Practical, human-friendly documentation covering accounts & registration, privacy model, federation, calls (TURN/Iroh), administration, deployment scenarios, and troubleshooting.

For Developers and Contributors

  • Project Documentation — Technical tour of architecture, crates, runtime wiring, data flows, build system, and contribution notes.
  • Technical Design Document (TDD) — Design specifications for major components.
  • RFC Reference Library — Collection of relevant protocol specifications (SMTP, IMAP, HTTP, TLS, TURN, etc.).

Quick References

  • Simple IP + ACME Installation — IP-based install with Let's Encrypt TLS
  • Local Development Guide — Developer setup, build, and testing workflow

Documentation lives in the repository alongside the source code.

Credits

Madmail v2 stands on many open-source projects.

During how we built Madmail v2, dozens of those trees were used as context while implementing the Rust server, for behavior parity with Madmail v1, protocol study, client E2E testing, TLS/ACME patterns, and real-time relay integration. What each repository contributed (and related notes) is in Context & reference projects.

This codebase was also developed with Cursor (coding agent) and Gemini 3.1 Pro (Google AI Studio) for planning and implementation assistance. See AI-assisted development for how those tools fit into the workflow (more detail to be added there).

Disclaimer

The product vision, architecture, phase plan, and acceptance criteria were defined and reviewed by humans. Most of the Rust (and related) source in this repository was written with AI assistance under that direction, not as an unattended dump of generated code, but as an iterative, human-guided process.

Use at your own risk. Madmail v2 is AGPL software under active development; run it on production systems only after you have validated it for your threat model and workload.

We always welcome criticism, bug reports, and discussion, please use GitHub Discussions.

Resources

  • GitHub Releases
  • Telegram Channel
  • Delta Chat
  • Download Delta Chat Apps

License

AGPL-3.0-or-later

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustchatmailcommunicationdeltachatdeltachat-relay

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言