RustPost
Free and open-source mail suite

Your own mail server, with everything around it

RustPost is a complete mail system in one Rust binary: SMTP and IMAP, an Outlook-style webmail with calendars and contacts, Sieve filters, end-to-end encryption and a web admin console. It runs on PostgreSQL and is built to grow from one server to several.

Once its configuration is in place, the whole suite starts with one command

docker compose up -d
InboxInbox

What is in the box

Everything below exists in the code today unless it says otherwise. Planned work is marked.

  • Mail server

    Inbound SMTP, submission on 587 and 465 and IMAP on 143 and 993, with TLS 1.2 and 1.3. A message is acknowledged only after it is stored durably. A queue retries outbound mail and sends delivery reports.

  • Outlook-style webmail

    Folders, a fast message list, a reading pane on the right or bottom, a rich-text composer with attachments, signatures and drafts, and keyboard shortcuts for everything. Works on phones.

  • Calendars

    Day, week and month views, recurring events, free/busy, invitations by email with replies, and sharing with colleagues to view or edit. CalDAV for Apple Calendar, Thunderbird and DAVx5.

  • Contacts and directory

    Address books and groups, vCard import and export, sharing, and a global address list of everyone in the organization. CardDAV for phones and desktop clients.

  • Filters and out of office

    A visual rules editor that writes Sieve, raw Sieve scripts for experts, ManageSieve on port 4190, running rules on existing folders, and automatic replies.

  • Antispam and tracking

    SPF, DKIM and DMARC checks, an explainable score, DNS blocklists and sender lists, all managed from the console. A tracking center shows what happened to every message.

  • End-to-end encryption

    OpenPGP and S/MIME in the browser: keys are created and used on your device and the server never sees them. Keys are published by WKD and found through the directory.

  • Admin console

    Domains, users, aliases and roles, a live DNS check with the exact records to publish, DKIM key rotation, antispam, mail filter policy, message tracking and logs.

  • Many languages

    The webmail and the console are translated into English and Spanish, and the interface is ready for right-to-left languages. Translations live in standard catalogs.

  • In progress

    PostgreSQL and scale-out design

    Metadata in PostgreSQL, message bodies in a content-addressed blob store, and one change sequence behind IMAP and the webmail. Built so that more nodes can share one database.

  • Docker images

    A published image contains the server, the webmail and the console. A compose file runs it next to PostgreSQL. Client autoconfiguration answers Outlook, Thunderbird and Apple devices.

Planned, not built yet

  • Built-in ACME certificates, managed from the console
  • Sign-in with TOTP, passkeys, app passwords and single sign-on (OIDC)
  • LDAP for the directory, and POP3
  • MTA-STS, DANE and TLS reporting for outbound mail
  • S3 blob storage and several active nodes
  • Content analysis and an optional rspamd adapter

See it

Screenshots of the current webmail and admin console, with demonstration data.

Reading a messageReading a message
Reading a message
Writing a messageWriting a message
Writing a message
CalendarCalendar
Calendar
PeoplePeople
People
RulesRules
Rules
EncryptionEncryption
Encryption
Admin overviewAdmin overview
Admin overview
DNS checkDNS check
DNS check
Tracking centerTracking center
Tracking center

Free software, with no catch

RustPost is licensed under the GNU Affero General Public License, version 3 or later. All of it: there is no open core and no paid edition.

  • No license keys, no user limits, no features held back for a commercial version.

  • Contributions are signed off under the Developer Certificate of Origin, not a CLA, so no company can relicense your work.

  • A provenance policy keeps code from other mail servers out of the repositories.

Where the code is

The repositories are in the Rust-Post organization on GitHub. Some may still be private while the project prepares its first public release; the links will work once they open.

Roadmap

The plan is a series of milestones towards version 1.0. Some later features (calendars, contacts, encryption, autoconfiguration) were brought forward and already work.

  1. M0

    Foundations

    Done

    Repositories, DCO, dependency and license policy, PostgreSQL store, provenance checks.

  2. M1

    Vertical slice

    Done

    Inbound SMTP to storage to IMAP; a kill -9 loses nothing that was acknowledged.

  3. M2

    Sync

    Done

    IMAP IDLE, CONDSTORE and QRESYNC, and JMAP with /changes; imaptest passes, and IMAP and JMAP converge under random operations.

  4. M3

    Outbound

    In progress

    Submission, queue, DKIM, delivery reports and smarthosts are done; DANE is done; MTA-STS is planned.

  5. M4

    Inbound trust

    In progress

    SPF, DKIM, DMARC, blocklists, Sieve and vacation replies are done; content analysis and rspamd are planned.

  6. M5

    Installable alpha

    In progress

    Docker image and client autoconfiguration are done; built-in ACME certificates, doctor and POP3 are planned.

  7. M6

    Identity

    Planned

    Local passwords and admin roles exist; TOTP, passkeys, app passwords, OIDC and Active Directory are planned.

  8. M7

    Global address list

    In progress

    The directory works in the webmail and over CardDAV; LDAP is planned.

  9. M8

    Admin console

    In progress

    Domains, users, aliases, DNS, DKIM, antispam, filters, tracking and logs are done; server settings are planned.

  10. M9

    Base webmail

    Done

    Interface, list, reader, compose and languages, with a layout ready for right-to-left scripts.

  11. M10

    Full webmail

    In progress

    Rules, signatures and the directory picker are done; search filters, undo send and scheduled send are planned.

  12. M11

    Scale readiness

    Planned

    S3 blob storage, store migration and a two-node test under load.

  13. M12

    1.0

    Planned

    Security audit, upgrade and restore drills, reviewed translations.

Try it

You need a Linux host with Docker, a domain whose DNS you control, and a TLS certificate. The installation guide walks through every step, from the compose file to the first administrator.

Open the installation guide