RustPost

Getting started

Introduction

What RustPost is, what works today, and the few concepts you need before installing it.

On this page

RustPost is a free and open-source mail suite in the style of Zimbra or mailcow. One program, written in Rust, runs the mail server (SMTP, submission, IMAP, ManageSieve) and serves a webmail and an admin console over HTTPS. Metadata lives in PostgreSQL and message bodies in a blob store on disk.

It is licensed under the AGPL, version 3 or later. There is no paid edition, no open core, no license key and no user limit.

Early development

RustPost is not ready for real mail yet. Its spam filter has no content analysis, its storage format may still change, and there are no stable releases: the published image follows the main branch. Use it to try things out, test it and report what you find.

What works today

Mail server

  • Inbound SMTP on port 25 with STARTTLS, recipient checks at RCPT and protection against SMTP smuggling.
  • Submission for mail clients on 587 (STARTTLS) and 465 (implicit TLS), with a login.
  • IMAP on 143 (STARTTLS) and 993 (implicit TLS), with IDLE, MOVE, UIDPLUS and SPECIAL-USE.
  • An outbound queue with retries for five days, delivery status notifications and optional smarthosts.
  • DKIM signing (RSA, and optionally Ed25519) with key rotation from the console.
  • SPF, DKIM and DMARC checks on inbound mail, an explainable spam score, DNS blocklists, and allowed and blocked senders.
  • A message is acknowledged only after it is durably stored: a kill -9 loses nothing that was accepted.

Webmail (in the browser)

  • Mail with folders, a reading pane, a rich-text composer, attachments, signatures, drafts and keyboard shortcuts.
  • Calendars with recurring events, sharing, invitations by email and free/busy. Also over CalDAV.
  • People: address books, groups, vCard import and export, sharing and the organization's directory. Also over CardDAV.
  • Rules (Sieve) and out-of-office replies. Also over ManageSieve.
  • OpenPGP and S/MIME end-to-end encryption, done in the browser.
  • English and Spanish, in an interface ready for right-to-left languages.

Admin console

  • Domains with a live DNS check, DKIM keys, users, aliases and admin roles.
  • Antispam settings, mail filter policy, a tracking center for every message, and the server log.

Clients

  • Autodiscover (Outlook), Mozilla autoconfig (Thunderbird and others) and an Apple configuration profile.

What is planned

These are part of the roadmap but are not built yet:

  • Built-in ACME certificates (today you use certbot or another ACME client).
  • Two-factor sign-in (TOTP, passkeys), app passwords and single sign-on with OIDC; LDAP and Active Directory.
  • POP3 and an LDAP directory server.
  • MTA-STS, DANE and TLS reporting for outbound mail.
  • CONDSTORE and QRESYNC in IMAP, and search filters, undo send and scheduled send in the webmail.
  • S3 blob storage, a cross-node notification bus, and several active nodes.
  • Content analysis (Bayes) and an optional rspamd adapter.
  • Server subcommands such as quickstart, doctor, backup and restore.

Concepts

Organization. The unit that owns domains, accounts and the directory. Adding a domain with the command line creates an organization for it.

Domain. A mail domain such as example.org. Each domain needs its own DNS records (see DNS records) and has its own DKIM keys.

Account (user). A mailbox with a primary address, a password, an optional quota (recorded, not enforced yet) and optional aliases. The login is the full email address.

Alias. Another address that delivers to an account.

Roles. An account can be a server_admin (everything) or a domain_admin of one or more domains (users and aliases of those domains). Ordinary users have no role and cannot open the console.

Directory. The organization's global address list, generated from its accounts. Users can be hidden from it. It appears in the webmail's People, in recipient suggestions and over CardDAV.

Blob. A message body or attachment, stored once per organization and addressed by its SHA-256 hash.

Where to go next