What robinmail is
robinmail is a mail, calendar and contacts server in Go that is built around JMAP. It receives mail over SMTP, stores it, sends it, and serves it over JMAP (RFC 8620, RFC 8621) and IMAP. It serves calendars and address books over JMAP and over CalDAV and CardDAV, with invitations by email. A webmail in Angular, with mail, calendar and contacts, ships inside the binary.
It is built in public, by AI sessions, as an experiment: github.com/robinmail/robinmail.
In short
Section titled “In short”- One binary.
cmd/robinmailholds inbound SMTP, submission, the outbound queue, IMAP, JMAP, CalDAV and CardDAV, the web login and the webmail. It uses the Go standard library andgolang.org/x, plus etcd’s Raft library and a pure Go SQLite. - Metadata in SQLite, replicated with Raft inside robinmail. No database service runs next to it, and no port offers SQL.
- Messages as files. Each message is a file on the node’s own disk, encrypted with a key per account. There is no object store.
- Any node serves any account. A cluster is three or more robinmail nodes and nothing else. Nodes copy message files to each other over mutual TLS.
- Spam filtering, SPF, DKIM and DMARC are Rspamd’s, asked over HTTP.
What works
Section titled “What works”Built and tested, phase by phase:
- Inbound SMTP with Rspamd, aliases, catch-all addresses and forwarding with SRS.
- Sieve filters at delivery (RFC 5228), managed over JMAP (RFC 9661). Vacation replies.
- Submission on ports 465 and 587, an outbound queue with MTA-STS, retries and bounces.
- JMAP core, mail, submission, quota, Sieve and vacation response, with push over EventSource.
- IMAP4rev1 and IMAP4rev2 with IDLE and CONDSTORE.
- Calendars and contacts over JMAP and over CalDAV and CardDAV, with recurrence, sharing between accounts, and invitations by email (iTIP, iMIP).
- Logins with Argon2id passwords, TOTP, app passwords and optional OIDC for the webmail.
- Full-text search, quotas, MTA-STS policy serving, TLS reports, client autoconfig.
- Backup, restore, master key rotation, scrub and repair of message files.
- A three-node cluster, tested by killing and restarting nodes, the database leader included.
The full record, with what was left out and why, is PLAN.md in the repository.
Where to start
Section titled “Where to start”- To run it on your machine: A development instance.
- To understand how it works: Architecture.
- To set it up: Configuration and Commands.