Start here
Postern documentation
The documentation of Postern, a self-hosted mail client for all your mailboxes. Install the Hub, connect your mailboxes and apps, write rules and run it safely.
Postern is a mail client for the web, your desktop and your phone, with a small server you run yourself. You install the Hub on your own machine, connect your mailboxes to it once, and every app signs in to your Hub. Your mail and your mailbox passwords never touch the project's servers.
Warning
Postern is in beta. Features are still missing, behaviour changes between versions, and no releases are published yet: you build it from source. Keep your mail at your provider; Postern never needs to be the only copy.
Where to start #
| If you want to | Read |
|---|---|
| Understand what you are about to install | How Postern works and Requirements |
| Install a Hub | Setup guide, with a selector for Docker Compose, Debian, Ubuntu, Fedora, Raspberry Pi OS or the desktop app |
| Let an AI coding agent install it | Set up with an AI agent |
| Reach the Hub from your phone and laptop | Reaching your Hub |
| Add Gmail, Outlook, iCloud or any IMAP mailbox | Connect mailboxes |
| Get the apps | Apps and Pairing a device |
| Filter, forward or redirect mail automatically | Rules |
| Look up a setting or command | Configuration and Command line |
| Fix something | Troubleshooting |
The sections #
- Start here: what Postern is, what you need, and the setup guide.
- Reaching your Hub: Tailscale, a reverse proxy with your own domain, Cloudflare Tunnel, LAN only, and HTTPS.
- Connect mailboxes: one page per provider, with the exact steps and server settings.
- Apps: web, desktop, iOS and Android, pairing, and what works offline.
- Using Postern: the unified inbox and Spaces, search, compose, snooze and send later, the screener, tags, shortcuts, notifications and settings.
- Rules: conditions, steps, Test mode, the activity log, the sending queue, limits, alerts and webhooks.
- Push relay: how notifications reach phones and how to run your own relay.
- Administration: users, sign-in methods, the admin panel, backups, upgrades, logs and
doctor. - Reference: every environment variable, every command, ports and paths, the HTTP API and capabilities, and building from source.
- Security: the threat model, encryption, how mail is displayed safely, and a hardening checklist.
For AI agents and scripts #
Every page is also available as plain Markdown at its address with .md instead of the
trailing slash, for example /docs/setup.md.
/llms.txt lists all pages and
/llms-full.txt holds all of them in one file.
Agents that set up a Hub should start with For AI agents.
Words used in these docs #
| Term | Meaning |
|---|---|
| Hub | The server program you run (postern-hub). It holds your account, your mailbox sign-ins (encrypted), settings and rules, and watches your inboxes. One Hub can hold several people. |
| App | The web, desktop, iOS or Android client. The desktop and phone apps connect to your mail providers directly and keep their own copy of your mail. |
| Mailbox | One connected email account, such as a Gmail address or an IMAP account. |
| Space | A group of mailboxes with its own unified inbox, such as "Work" or "Personal". |
| Push relay | A small service that forwards "new mail" wake-ups to phones through Apple and Google. Optional. |
| Pairing | Signing in a new device by scanning a QR code or typing a short code shown on a device that is already signed in. |
The source code is at github.com/TheOriUHD/postern.
These pages are built from the Markdown files in its docs/ folder.