Reference
Capabilities and settings
The capabilities a Hub advertises in /api/v1/info, what each one means, what each mail provider supports, and how settings are stored for your account, each device and the whole Hub.
This page lists the features a Hub reports to the apps, the differences between mail providers that change how Postern behaves, and where every setting lives. Use it when a feature is missing in an app, when a mailbox acts differently from another one, or when you work with the HTTP API.
Hub capabilities #
Every Hub answers GET /api/v1/info with a capabilities list. The apps read it to decide which
features to show. The list is sorted alphabetically. The Hub builds it on every request, so a
change in configuration shows up after the restart that applies it.
curl -s http://127.0.0.1:8080/api/v1/info{
"name": "Postern",
"version": "0.1.0",
"apiVersion": 1,
"capabilities": [
"calendarInvites", "followUp", "imageProxy", "invites", "pairing", "passkeys",
"rules", "screener", "search", "sendLater", "sendWithDraft", "snooze", "splits",
"templates", "totp", "undoSend", "webPush"
],
"setupRequired": false,
"publicUrl": "https://mail.example.com",
"auth": { "password": true, "passkeys": true, "oidc": null, "registration": "invite" },
"webPushPublicKey": "BExample..."
}This example is shortened and its version number is made up. The full response is described on the HTTP API page.
Always present #
These capabilities are part of every Hub. Nothing in the configuration turns them off.
| Capability | Meaning |
|---|---|
totp |
Two-step sign-in with an authenticator app is available. |
pairing |
New devices can sign in by pairing (QR code or short code). See Pairing. |
invites |
Admins can invite people with an invite link. |
search |
Full-text search over the mail the Hub keeps. |
rules |
Rules (automation) are available. |
splits |
Split inbox tabs. |
screener |
The Screener for first-time senders. |
sendLater |
Scheduled sending. |
undoSend |
Sending waits a few seconds so you can take a message back. |
snooze |
Snoozing conversations. |
followUp |
Follow-up reminders on sent mail. |
templates |
Saved message templates. |
imageProxy |
Remote images are loaded through the Hub, so senders do not see your IP address. |
calendarInvites |
Calendar invitations in mail are shown and can be answered. |
sendWithDraft |
POST /api/v1/drafts/{id}/send accepts the draft contents in the same request. |
mailboxSets |
The mailbox parameter of GET /api/v1/threads and GET /api/v1/counts takes several mailbox ids joined by commas. A device engine always lists it, whatever its Hub does. |
companionDevices |
The iPhone app can sign in its Apple Watch directly (POST /api/v1/devices/current/companions). Without it the phone pairs the watch instead. |
Present only when configured #
| Capability | Present when | Configure it with |
|---|---|---|
passkeys |
The Hub's address is HTTPS with a domain name, or localhost (or a name ending in .localhost, or a loopback address). An IP address such as 192.168.1.20 never qualifies, because passkeys need a domain name. The address is POSTERN_PUBLIC_URL, or the address of the request when that is not set. |
POSTERN_PUBLIC_URL and HTTPS |
oidc |
Both POSTERN_OIDC_ISSUER and POSTERN_OIDC_CLIENT_ID are set. auth.oidc.name then carries the button label. |
Single sign-on |
webPush |
The Hub has a Web Push (VAPID) key pair. It creates one on first start and keeps it, so this is present on nearly every Hub. If creating or loading the key fails, the Hub logs web push unavailable and leaves it out. |
nothing |
relayPush |
POSTERN_RELAY_URL is set. |
Push relay |
gmailOAuth |
A Google OAuth client is set up: both POSTERN_GOOGLE_CLIENT_ID and POSTERN_GOOGLE_CLIENT_SECRET in the environment, or a client ID saved in the admin panel. |
Gmail |
microsoftOAuth |
A Microsoft client ID is set up: POSTERN_MICROSOFT_CLIENT_ID in the environment, or a client ID saved in the admin panel. |
Microsoft |
Not advertised #
| Capability | State |
|---|---|
ai |
Defined in the protocol for the optional AI assist (your own API key). The current Hub never adds it to the list: nothing in the code registers it. The web app therefore shows AI assist isn't turned on for your Hub in settings, and the AI buttons in the reading pane and the composer stay hidden. The /api/v1/ai/... endpoints exist, but the apps do not use them while the capability is missing. There is no setting or variable that turns it on. |
Note
The web app's message under AI assist isn't turned on for your Hub says that a Hub admin can turn it on. In the current version there is no way to do that.
What the apps read #
Most capabilities describe the Hub; the apps do not check each one. In the current apps:
| The app checks | To decide |
|---|---|
ai |
whether to show AI assist (together with your aiEnabled account setting) |
sendWithDraft |
whether to send the draft contents along with the send request. It is ignored when the app talks to a device engine (see below). |
auth.passkeys |
whether to offer passkeys in Settings → Account |
webPushPublicKey |
whether browser notifications can be turned on |
auth.oidc |
whether to show the single sign-on button |
Device engines #
The desktop and mobile apps run their own mail engine in direct mode. The engine answers
/api/v1/info too. It copies the capabilities list of the Hub it is attached to and adds
these fields:
| Field | Meaning |
|---|---|
mode |
"engine" (a Hub answers "hub" or leaves it out) |
hubUrl |
the Hub this engine belongs to |
engineVersion |
the engine's version |
hubOnline |
whether the Hub can be reached right now |
pendingChanges |
how many local changes wait to be sent to the Hub |
Mail providers #
Each mailbox is handled by one of four provider types. They differ in what the provider itself can store and how quickly the Hub learns about new mail.
| IMAP and SMTP | Gmail (Google API) | Microsoft (Graph) | JMAP | |
|---|---|---|---|---|
| A message can be in several folders (labels) | no | yes | no | yes |
| Provider saves sent mail itself | only Gmail's servers | yes | yes | yes |
| Live updates (watch) | IMAP IDLE; off when the server does not support IDLE | IMAP IDLE "doorbell" on imap.gmail.com:993; off when IMAP is disabled for the account |
IMAP IDLE "doorbell" on outlook.office365.com:993; off when IMAP is disabled for the mailbox or tenant |
push (EventSource) |
| Regular sync interval | 2 minutes | 10 seconds | 45 seconds | 5 minutes |
| Provider thread IDs | only Gmail's servers (X-GM-THRID) |
yes | yes | yes |
| Custom keywords (used for tags) | yes | no (tags use labels) | yes (categories) | yes |
| Create folders | yes | yes | yes | yes |
What this means for you:
- Moving and labels. Where a message can be in several folders, adding a folder keeps it in the others. On IMAP and Microsoft every message is in exactly one folder, so a move changes where it is.
- Sent mail. Where the provider does not save sent mail itself, the Hub uploads a copy to your Sent folder after sending. This is why a plain IMAP server gets the copy from Postern and Gmail does not.
- Live updates and the sync interval. The Hub syncs each mailbox at the regular interval in any case, with a little random spread. Live updates wake it earlier when new mail arrives. When live updates are off, the interval is the only way the Hub notices new mail. The "doorbell" for Gmail and Microsoft is a single connection that only watches the inbox; it does not download mail itself.
- Tags. Tags are written to the provider as keywords or labels when the provider supports one of them. Otherwise they stay on your Hub and other mail programs do not see them.
- Threads. Postern groups conversations by the provider's thread ID where there is one, and
always also by the
Message-ID,In-Reply-ToandReferencesheaders. The headers work across all your mailboxes, so a conversation can span several of them.
Provider setup pages: Gmail, Microsoft, JMAP, IMAP.
Settings model #
Settings are stored at four levels. The first two travel with the /api/v1/settings endpoint;
the others have their own endpoints.
| Level | Applies to | Stored | Changed by |
|---|---|---|---|
| Account settings | you, on every device | on the Hub, per user | you, in Settings in any app |
| Device settings | one signed-in device | on the Hub, per device | you, on that device |
| Your rule, AI and alert settings | you | on the Hub, per user | you |
| Hub settings | everyone on the Hub | on the Hub | an admin, or the environment |
| Desktop app preferences | one computer | desktop.json on that computer |
Desktop App Options |
How account and device settings are stored #
The Hub stores only the values you changed (overrides). It merges them over the defaults when an app asks.
GET /api/v1/settingsreturns{"account": {...}, "device": {...}}with every key filled in.PATCH /api/v1/settingstakes{"account": {...}, "device": {...}}with only the keys to change. Each key is checked; an invalid value fails the whole request with400and a message such asaccount.theme must be one of [system light dark].- Sending
nullfor a key removes your override, so the default applies again. - Unknown keys are ignored, so an older Hub accepts requests from a newer app.
- A stored value that is no longer valid (for example after a downgrade) is skipped and the default is used.
- Changes reach your other devices at once over the sync connection.
Account settings #
| Key | Values | Default | What it controls |
|---|---|---|---|
theme |
system, light, dark |
system |
Appearance |
accent |
hex color, #rgb or #rrggbb |
#3b6cf6 |
Accent color |
density |
comfortable, compact |
comfortable |
List density |
readingPane |
right, bottom, off |
right |
Where an open message is shown |
conversationView |
true or false | true |
Group messages into conversations |
markReadOnOpen |
immediately, delay, never |
immediately |
When an opened message is marked read (delay is 2 seconds) |
undoSendSeconds |
0, 5, 10, 20, 30 |
10 |
Undo send window in seconds |
remoteImages |
block, known, allow |
known |
Remote images: never, only from people you wrote to or allowed, always |
splitInbox |
true or false | false |
Split inbox |
screener |
true or false | false |
Screener for first-time senders |
swipeLeft |
archive, trash, read, flag, snooze, none |
archive |
What swiping a message to the left does |
swipeRight |
same as swipeLeft |
read |
What swiping a message to the right does |
shortcuts |
default, off |
default |
Keyboard shortcuts on or off |
customShortcuts |
object of action ID to key combination, at most 200 entries, each name and value at most 64 characters | {} |
Your own shortcut keys |
notifyMode |
all, vip, none |
all |
Which new mail notifies you |
quietHours |
{"enabled": bool, "start": "HH:MM", "end": "HH:MM"} in 24-hour time |
off, 22:00 to 07:00 |
No notifications in this window |
notifyPreviewOnMobile |
true or false | true |
Include sender and subject in phone notifications (they then pass through Apple or Google) |
defaultReply |
reply, replyAll |
reply |
Default reply action |
sendShortcut |
mod+enter, enter |
mod+enter |
Key that sends (enter only for plain-text quick replies) |
afterArchive |
next, previous, list |
next |
What opens after you archive a message |
language |
system or a language tag such as de or pt-BR |
system |
App language |
timeFormat |
system, 12h, 24h |
system |
Clock format |
aiEnabled |
true or false | false |
Use AI assist (needs the ai capability, see above) |
hubMailCopy |
auto, always |
auto |
Keep a full copy of my mail on my Hub. auto keeps a full copy only while you use the web app; otherwise the Hub only watches your inboxes. See Storage and sync. |
For where each setting appears in the app, see Settings.
Device settings #
Each signed-in device has its own set. A device can only read and change its own.
| Key | Values | Default | What it controls |
|---|---|---|---|
notifications |
true or false | true |
Notifications on this device |
sound |
true or false | true |
Notification sound |
cacheDays |
whole number from 1 to 3650 | 90 |
How many days of mail this device keeps for offline use |
appLock |
true or false | false |
Lock the desktop or mobile app with biometrics |
Rule settings #
Per user, at GET and PUT /api/v1/rules/settings. PUT takes only the fields to change.
| Field | Values | Default | What it controls |
|---|---|---|---|
timeZone |
an IANA time zone such as Europe/Berlin, or empty |
empty (the Hub's time zone; a device engine uses its own) | Time zone for time-based rule conditions. An unknown zone fails with Unknown time zone "...". |
limits.perRulePerDay |
1 to 10000 | 100 |
Messages one rule may send per day |
limits.perMailboxPerDay |
1 to 10000 | 200 |
Messages rules may send from one mailbox per day |
limits.breakerPerMinute |
1 to 1000 | 20 |
More rule sends than this in one minute pause rule sending for the mailbox |
limits.breakerPauseMinutes |
1 to 1440 | 15 |
How long that pause lasts |
custodyRetentionDays |
1 to 3650 | 30 |
How long redirected originals and permanently deleted mail are kept. Captured mail is kept until you delete it. |
activityRetentionDays |
1 to 3650 | 90 |
How long the rule activity log is kept |
See Limits and Captured mail.
AI settings #
Per user, at GET and PUT /api/v1/ai/config. The API key is stored encrypted and never
returned; the response says only hasKey.
| Field | Values | Notes |
|---|---|---|
provider |
anthropic, openai-compatible |
Anything else fails with provider must be "anthropic" or "openai-compatible". |
model |
model name | Required for openai-compatible. |
baseUrl |
URL | Required for openai-compatible. |
apiKey |
your key (write only) |
These settings have no effect while the Hub does not advertise ai.
Alert channels #
Per user, at GET and PUT /api/v1/alerts/channels. Alerts (for example a paused sending
queue or a mailbox that needs you to sign in again) can go to ntfy, Discord or Gotify in
addition to your devices. Secrets (tokens, the Discord webhook URL) are write only: leaving one
out keeps it, an empty string clears it. See Alerts.
| Channel | Fields |
|---|---|
ntfy |
enabled, server, topic, token |
discord |
enabled, webhookUrl |
gotify |
enabled, server, token |
Hub settings #
These apply to everyone on the Hub. Admins change them in the admin panel; see Admin panel.
| Setting | Values | Default | Endpoint |
|---|---|---|---|
| Hub name | 1 to 80 characters after trimming spaces | set during setup | PATCH /api/v1/admin/settings with hubName. Errors: Hub name must not be empty, Hub name is too long (max 80 characters). |
| Registration | invite, closed |
invite |
PATCH /api/v1/admin/settings with registration. Anything else fails with registration must be invite or closed. |
| Google OAuth client | client ID and secret | none | PUT /api/v1/admin/providers/google |
| Microsoft OAuth client | client ID and tenant | none | PUT /api/v1/admin/providers/microsoft |
For the OAuth clients, the environment wins: when POSTERN_GOOGLE_CLIENT_ID (or
POSTERN_MICROSOFT_CLIENT_ID) is set, that value is used and GET /api/v1/admin/providers
reports "source": "env". A client saved in the admin panel reports "admin", and "none"
means neither is set.
Everything else that applies to the whole Hub is set with environment variables. See the Configuration reference.
Desktop app preferences #
The desktop app keeps its own preferences in desktop.json in its data folder. They are not
synced and do not reach the Hub. You change them in Desktop App Options.
| Preference | Default | What it controls |
|---|---|---|
| Quick compose from anywhere | off, no shortcut | A global shortcut that opens a new message |
| Tray icon | on | Menu bar icon (macOS) or tray icon |
| Keep running | on | On Windows and Linux, closing the window keeps Postern running in the tray |
| Start hidden at login | on | When opened at login, start without a window |
| Spellcheck | on, system languages | Spellcheck and up to 8 languages |
| Zoom level | 0 (100 %) | Zoom of the app windows |
The same file also remembers the Hub you use, the connection mode, recent Hubs, window
positions and the local ports. Sign-in tokens are stored separately in hub-tokens.json. See
Desktop app.