# 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.

Source: https://docs.posternmail.app/

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](https://docs.posternmail.app/how-it-works/) and [Requirements](https://docs.posternmail.app/requirements/) |
| Install a Hub | [Setup guide](https://docs.posternmail.app/setup/), 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](https://docs.posternmail.app/setup-with-ai/) |
| Reach the Hub from your phone and laptop | [Reaching your Hub](https://docs.posternmail.app/reach/) |
| Add Gmail, Outlook, iCloud or any IMAP mailbox | [Connect mailboxes](https://docs.posternmail.app/providers/) |
| Get the apps | [Apps](https://docs.posternmail.app/apps/) and [Pairing a device](https://docs.posternmail.app/apps/pairing/) |
| Filter, forward or redirect mail automatically | [Rules](https://docs.posternmail.app/rules/) |
| Look up a setting or command | [Configuration](https://docs.posternmail.app/configuration/) and [Command line](https://docs.posternmail.app/reference/cli/) |
| Fix something | [Troubleshooting](https://docs.posternmail.app/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`](https://docs.posternmail.app/setup.md).
[`/llms.txt`](https://docs.posternmail.app/llms.txt) lists all pages and
[`/llms-full.txt`](https://docs.posternmail.app/llms-full.txt) holds all of them in one file.
Agents that set up a Hub should start with [For AI agents](https://docs.posternmail.app/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](https://github.com/TheOriUHD/postern).
These pages are built from the Markdown files in its `docs/` folder.
