Another foundational release for the COOLJAPAN ecosystem on February 25.
Today we shipped RusMES 0.1.0 — a next-generation, fully distributed enterprise mail server written entirely in Rust.
It ports the battle-tested Apache JAMES architecture into pure Rust while adding modern protocols, AI intelligence, and memory-safe distributed storage.
No JVM. No garbage collection. No memory bloat.
Just a single static binary that can handle 50,000+ messages/second.
Why RusMES is a game changer
Enterprise mail servers have been stuck in the Java world for decades (Apache JAMES, Postfix + Dovecot hybrids, etc.).
These solutions suffer from:
- JVM startup and GC pauses
- 500 MB–2 GB memory footprint
- Complex deployment and security patching
RusMES ends that era completely.
It is 100% pure Rust (14 crates, zero unsafe in core paths) and delivers 1/10th the memory usage with full enterprise features.
Technical Deep Dive: Apache JAMES Architecture in Rust
The core design faithfully ports JAMES’ famous Mailet + Matcher pipeline:
-
Protocol Layer (SMTP, IMAP, JMAP, POP3)
RFC-compliant handlers with STARTTLS, AUTH, PIPELINING, and JMAP HTTP/JSON API. -
Mailet Container
Configurablematcher → mailetchains executed in strict order.- Matchers filter mail (e.g., “recipient in domain X”)
- Mailets mutate or route (delivery, filtering, archiving, AI tagging)
- State-based re-routing for complex workflows
-
Storage Abstraction
Pluggable backends: Filesystem (Maildir), PostgreSQL, and AmateRS (FHE-enabled distributed DB). -
AI Integration
OxiFY mailet allows real-time classification, summarization, spam detection, and smart routing — all running inside the pipeline.
What’s inside 0.1.0
- Full protocol stack: SMTP (RFC 5321), IMAP (RFC 9051), JMAP (RFC 8620), POP3
- 9 built-in mailets + 5 matchers (expandable via traits)
- Authentication: LDAP, OAuth2, PAM
- Full-text search powered by Tantivy
- Legal archiving via Legalis-RS
- Prometheus metrics (18 key metrics)
- CLI + Kubernetes + Docker ready
- 1,918 tests (Clippy0 + fail0 enforced)
This is the foundation
RusMES is now the official mail layer for the entire COOLJAPAN stack:
- RusMES + OxiMedia = AI-powered PDF invoice generation & delivery
- RusMES + OxiRS = knowledge-graph-aware smart mailboxes
- RusMES + OxiLean = mathematically verified mail routing rules
- RusMES + AmateRS = fully homomorphic encrypted mailboxes
Repository: https://github.com/cool-japan/rusmes
Star the repo if you want enterprise mail that is fast, safe, and actually intelligent.
The JVM-based mail server era is over.
Pure Rust mail processing is here — and it’s ridiculously efficient.
— KitaSan at COOLJAPAN OÜ
February 25, 2026