Start here: Standalone installation → existing IMAP/SMTP account. KyIdentity, KyRecovery and the native clients are optional. Real mail access needs a working mailbox and sending service; a healthy web UI alone does not verify delivery.
KyPost is self-hosted email. Use it as a web client for the IMAP account you already have, or let it host your mailboxes as well. It encrypts with OpenPGP, so you can exchange end-to-end encrypted mail with anyone who uses PGP; interoperability depends on the correspondent’s PGP implementation and needs a real send/receive check for your configuration. A local Ollama model sorts your unencrypted mail into labels without it leaving your server, and encrypted mail is never sent to the model. The iOS, Android and Linux phone apps get native push notifications.
Hosting your own mailboxes is opt-in, and receiving mail for them is still in qualification. To rely on KyPost today, connect it to an existing IMAP server. The bundled SMTP receiver has configurable, bounded rate and concurrency limits; defaults preserve existing installs and require sizing for larger mail volumes.
KyPost polls unread mail, classifies each message, and applies IMAP keywords. It also gives you a web UI to read mail, change the configuration, manage notifications, view logs, and compose mail. Compose supports send and draft save.
Native direct outbound delivery is available as an explicit protected-API profile. It signs every message with a per-domain DKIM key, and Mail domain shows and checks the DKIM, SPF, DMARC and reverse DNS records; see direct delivery for configuration, recipient outcomes and qualification limits. Existing relay sending remains the default.
-
HR-driven work-email allocation: KyIdentity can reserve a unique native address before creating the employee’s SSO account. Reservations grant no mailbox access; normal activation and directory provisioning prepare it later. See HR address reservations.
-
IMAP web client: inbox reader with read/unread actions, conversation view (per-user switch, on by default), folders, compose with SMTP send, recipient rejection messages, scheduled send and draft save, plain-text signatures (the phone apps keep their own), an out-of-office reply with separate texts for the organisation and outside senders, filter rules (GUI and Sieve).
-
Sending quotas across immediate and scheduled mail: 60 messages an hour and 1000 recipients a day by default, adjustable by administrators per installation or account.
-
Automatic keyword labels from an on-device embedding sorter backed by a local Ollama model; each account keeps its own labels. Labels are a hint, not a security boundary — see Architecture.
-
PGP encryption and signing, recipient key discovery, Web Key Directory publishing and incoming encryption. A first sign-in step has each user create or import their own key with a recovery copy; administrators can require it (the default) but never see the key. Browser encryption, signing and signature trust require RSA keys of at least 2048 bits. Read Where your PGP private key lives before relying on it.
-
Contacts with CardDAV server and client, groups, CSV/vCard import and export, and Confirm key for keys learned from correspondents' mail. Mobile imports can opt in to omitting keys the existing validator refuses; ordinary edits stay strict.
-
Multi-user with admin and user roles; TOTP, recovery codes and push-approval MFA; OpenID Connect single sign-on; self-hosted proof-of-work login CAPTCHA by default.
-
Browser push, and native push for the mobile apps through the push relays.
-
Opt-in native mailboxes: KyIdentity provisioning across several domains, quotas, receiving through Cloudflare Email Routing or an operator-supplied receiver (both still in qualification), operator-owned relay sending, sender blocks, quarantine, and mail import and export. Users get plus addressing (
you+tag@) and, once an administrator picks a domain, their own masked and disposable addresses that never reveal the primary address. See plus and masked addresses. -
Optional KyCalendar pairing: KyCalendar sends invitations, cancellations and replies from a user's own mailbox, and receives the DKIM-verified invitations that arrive there; flagged mail becomes a KyCalendar task whose completion clears the flag; paired automatically through KyIdentity or by environment. See docs/KYCALENDAR.md.
-
Optional KyDrive pairing: send large files as organisation-only KyDrive links, attach or link files already in KyDrive, and save received attachments to KyDrive. See docs/KYDRIVE.md.
-
Optional KyPulse alert mail: KyPulse sends plain-text monitoring alerts from a member's mailbox, only after the member turns it on, and only to their own addresses and the extra ones they listed and that confirmed. See docs/KYPULSE.md.
-
Optional KyMessages pairing: Chat beside a sender or a contact who is in the organisation opens a direct chat in KyMessages. See docs/KYMESSAGES.md.
-
AI agent access over MCP: an agent such as OpenClaw, Hermes Agent or Claude Code searches, reads and organizes your mail and saves drafts, with a token you create and can revoke. It never sees encrypted mail and cannot send or delete. See Connect an AI agent.
-
Sealed configuration and state backups to KyRecovery or a local directory, with restic for mail databases.
-
SQLite by default, or one Postgres database (16 or newer) with
KYPOST_DATABASE_URL;migrate-to-postgresmoves an existing install. See Postgres. On Postgres, several containers can run on one Docker host behind HAProxy for restart continuity (not database or host high availability): Replicas on one host. -
Single Docker container managed by supervisord, with shared JSON logs.
The full list, with the trade-offs each feature carries, is in docs/FEATURES.md.
AI agents such as OpenClaw, Hermes Agent and Claude Code reach your mail over MCP at
https://<your host>/mcp. On Security → AI agents, create a token with an access level:
- Read only (the default): the agent lists folders and labels, searches, and reads messages and threads.
- Read and organize: it can also apply and remove your labels, move and archive mail, and save drafts.
No agent can send or delete mail, or move it to Trash or Junk: it saves a draft and you send it
from KyPost. End-to-end encrypted mail (PGP or S/MIME) reaches an agent as sender, recipients
and date only, never its subject or content. The page shows the token once, with config for
each agent that reads it from KYPOST_TOKEN, and the command to install the KyPost skill
(served at /agent/skills/kypost/SKILL.md), which teaches the agent the tools and when to ask
you first. You can change a token's access there later. A token unused for 90 days is revoked,
and a sealed-backup restore revokes them all; an agent token never works over CardDAV or the REST API,
nor a CardDAV password or device credential over MCP. Administrator accounts get no agent.
Mail is written by other people, and an agent may treat it as instructions. Give an agent Read and organize only if you trust everyone who can email you or message the agent.
KyPost is released under the MIT License.
Read the KyPost mdBook manual for the server and native clients.
For Identity-first or Notes-only standalone installs, bash scripts/ensure-network.sh creates only the KyPost-owned shared bridge; no mail server is installed. See network ownership and fixed-IP proxy setup.
- Running — Requirements, Quick Start, Ports.
- Architecture — Architecture, Project Structure.
- PGP keys — Where your PGP private key lives.
- Accounts — Session Behavior, Users and Roles.
- AI sorting — Environment Variables.
- Clients and push — Mobile App Pairing (Native), Push Relays (Cloudflare Workers).
- Storage and recovery — Persistence, Backup and Restore.
- Development — API Highlights, Build and Dev Checks.
- Operations — Operations, Updating KyPost, Troubleshooting.
- Verifying releases — Check a release image's signature and source commit, and rebuild its binary to the same bytes.
- Assurance case — Threat model, trust boundaries, and why the security requirements are met.
- Key strength — Key sizes KyPost accepts, the optional
GODEBUG=fips140=onTLS profile, and what it does not cover.