Repository navigation
Installation
Inboxora ships as two container images — ghcr.io/dragonk/inboxora-backend and
ghcr.io/dragonk/inboxora-frontend — plus PostgreSQL and Redis. Docker Compose is the
supported deployment method.
Use a tagged release image for a stable deployment. The mutable :dev images are build
candidates for testing only and must not be used for a server people depend on.
- A host with Docker Engine and the Docker Compose plugin.
- Persistent storage for PostgreSQL and Redis.
- An existing reverse proxy for browser access and TLS termination. Do not expose additional
public host ports for Inboxora. The proxy must pass WebSocket upgrades for
/ws(live updates) and for the UnifiedPush paths/up…and/v1/(Android instant notifications). - A hostname and TLS certificate.
APP_URLmust be the external HTTPS URL whenever you use invitations, OAuth callbacks or browser cookies. - Outbound network access to your mail and calendar providers. For Microsoft 365, the host must
be able to reach
login.microsoftonline.com.
-
Create a directory and download the deployment files from the release you are installing:
mkdir inboxora && cd inboxora curl -O https://raw.githubusercontent.com/Dragonk/Inboxora/v4.3.3/docker-compose.ghcr.yml mv docker-compose.ghcr.yml docker-compose.yml curl -O https://raw.githubusercontent.com/Dragonk/Inboxora/v4.3.3/.env.example cp .env.example .env
-
Set a pinned
INBOXORA_VERSIONin.env(4.3.3) instead of relying on a mutable tag. -
Generate unique secrets and write them into
.env:openssl rand -hex 32 # SESSION_SECRET openssl rand -hex 16 # DB_PASSWORD openssl rand -hex 32 # ENCRYPTION_KEY
Keep
.envoutside source control. Changing or losingENCRYPTION_KEYmakes every stored mail and DAV credential unreadable — users then have to re-enter passwords and re-consent OAuth accounts. -
Set
APP_URLto the external HTTPS URL and configure the reverse proxy to forward HTTPS requests with the appropriate forwarded-proto header (X-Forwarded-Proto: https), otherwise session cookies are rejected. -
Start the stack and check health before directing users to it:
docker compose up -d docker compose ps curl -fsS "$APP_URL/api/health"
The stack includes ntfy, the built-in UnifiedPush transport for Android instant notifications. It is published by the same frontend on the same domain — no second hostname and no second certificate:
Inboxora: ${APP_URL}
UnifiedPush: ${APP_URL} (enter this origin in the ntfy app — no /push path)
Android users install the ntfy app and point it at ${APP_URL} (the origin,
no path — the ntfy app rejects a base URL with a path); see
Notifications and background delivery. No additional configuration is
required for the default setup. To use your own external ntfy instead, set PUSH_BASE_URL and
start with docker-compose.external-ntfy.yml (download it alongside the compose file).
The first account you register becomes an administrator; additional users join through invitations or open registration, depending on your settings.
Every push to the dev branch can be published as ghcr.io/dragonk/inboxora-backend:dev and
ghcr.io/dragonk/inboxora-frontend:dev by the Publish to GHCR workflow. The dev tag always
points at one immutable commit, and /api/version reports both the tag and the SHA the image was
built from, so you can confirm exactly what you are running.
To test a development build, set the tag in .env and recreate the stack:
INBOXORA_VERSION=dev
docker compose pull
docker compose up -d
curl -sk https://localhost/api/versionUse a separate database volume for a dev deployment. Development builds run the same automatic
migrations as a release, and rolling back to an older image is not supported.
| Variable | Required | Purpose |
|---|---|---|
APP_URL |
Yes in production | Public URL used in invitation links, OAuth callbacks and cookies. |
SESSION_SECRET |
Yes | Signs session cookies. |
DB_PASSWORD |
Yes | Password for the bundled PostgreSQL. |
ENCRYPTION_KEY |
Yes | Encrypts stored mail and DAV credentials at rest. |
INBOXORA_VERSION |
Recommended | Pins the image tag. |
APP_PORT / APP_HTTP_PORT / APP_HTTP_BIND
|
No | HTTPS port plus the internal HTTP reverse-proxy listener. HTTP defaults to 127.0.0.1:80; bind it only to a trusted private interface and forward X-Forwarded-Proto: https. |
VAPID_PUBLIC_KEY / VAPID_PRIVATE_KEY / VAPID_SUBJECT
|
No | Enables Web Push. Generate once with npx web-push generate-vapid-keys. |
PUSH_BASE_URL |
No | Advanced: an external ntfy origin (path-less). Defaults to ${APP_URL}. |
PUSH_ALLOW_PRIVATE_ENDPOINTS |
No | Allow a private/LAN (http) UnifiedPush endpoint. Off by default (SSRF guard). |
NTFY_CACHE_DURATION |
No | How long the bundled ntfy keeps an undelivered event (default 12h). |
NTFY_DATA |
No | Host path for the bundled ntfy data (a Docker named volume by default). |
FCM_SERVICE_ACCOUNT_JSON |
No | Optional/experimental FCM transport for custom Android builds. Not required. |
DOMAIN / ACME_EMAIL
|
No | Only for the bundled Caddy profile that terminates TLS itself. |
IMAP_MAX_PERSISTENT_PER_HOST |
No | Caps always-on IMAP connections per host when one mail server limits them. |
MAIL_MAX_MESSAGE_BYTES |
No | The fallback ceiling on one composed message, in bytes, used for a transport that declares none of its own (SMTP). Default 25 MiB. It does not raise a provider's own limit and does not cap a provider that declares a larger one. |
MAIL_MAX_ATTACHMENT_BYTES |
No | The hard ceiling, in bytes, on one attachment and on all attachments of one message, applied to every transport. Defaults to the largest file a supported provider carries (Microsoft Graph's 150 MB upload-session file), so leaving it unset does not cap Graph. Set it lower when a reverse proxy in front of Inboxora has a smaller body limit. |
PROVIDER_INTEGRATIONS_ENABLED |
No |
0 disables the whole provider layer, including the API authorization flows and the sync paths. |
PROVIDER_SYNC_INTERVAL_MINUTES |
No | How often already-pulled provider collections are refreshed (default 15; 0 leaves syncing to the user). |
MS_CLIENT_ID / MS_TENANT_ID / MS_CLIENT_SECRET / MS_REDIRECT_URI
|
No | The Entra application for Microsoft mailbox sign-in and the Graph connector (browser method). |
MS_PROVIDER_REDIRECT_URI |
No | The Graph connector's own callback; derived from APP_URL when unset. |
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET / GOOGLE_REDIRECT_URI
|
No | The Google OAuth client for the Gmail, Calendar and People APIs. Optional: Google mail keeps working over IMAP/SMTP with an app password without it. |
POSTGRES_DATA / REDIS_DATA / PUID / PGID
|
No | Bind mounts and ownership for Unraid-style deployments. |
MCP_ENABLED |
No | Enables the native Streamable HTTP MCP endpoint and OAuth discovery. Disabled by default. |
MCP_ALLOWED_ORIGINS |
No | Exact comma-separated browser origins allowed for MCP requests that send an Origin header. Do not use wildcards. |
UPDATE_CHECK_DISABLED |
No | Disables the server-side GitHub release check. |
VITE_EMAIL_DIV_RENDER is an experimental renderer switch; leave it unset.
The supplied Caddy profile is an alternative only when Inboxora itself owns public ports 80/443. Do not enable it behind an existing reverse proxy.
docker compose -f docker-compose.yml -f docker-compose.https.yml --profile https up -dIt requires DOMAIN, ACME_EMAIL and APP_URL, and ports 80/443 open to the internet.
Point the proxy at the frontend container's internal HTTP port and forward the original scheme. The supplied Compose files bind that host port to 127.0.0.1 by default. If the TLS proxy runs on another host, set APP_HTTP_BIND only to the trusted private address that the proxy can reach and firewall it from clients; do not publish the HTTP listener to the internet.
X-Forwarded-Proto: https-
X-Forwarded-ForandHostas usual - WebSocket upgrade for
/wsand the UnifiedPush paths, plus a long idle timeout so the UnifiedPush connection is not dropped
MCP and its OAuth endpoints reject the internal HTTP hop unless X-Forwarded-Proto is exactly https, so bearer tokens and OAuth client secrets are never intentionally accepted over direct cleartext HTTP. Leave the Caddy profile off in this setup.
All three are configured inside the application after startup:
- Mail accounts — Settings → General → Accounts. Gmail uses an app password; Microsoft 365 uses OAuth and needs an administrator to register an Azure application under Settings → Integrations.
- DAV access — Settings → DAV access. Generate an application password per device for CardDAV/CalDAV. See Contacts and DAV.
-
External AI / MCP — Settings → AI Features → External AI integrations (MCP), after an
administrator enables
MCP_ENABLED=true. See External AI applications (MCP). - Web Push — Settings → Notifications, once the VAPID key pair is present in the environment.
-
Android instant notifications — install the ntfy app on the phone and set its server
to
${APP_URL}(the origin, no path). Inboxora detects the app and registers automatically; the status appears under Settings → Notifications. See Notifications and background delivery. No Firebase project is involved.
Never paste deployment secrets, app passwords or OAuth credentials into issue reports, Wiki pages or source control.
Push-assisted synchronisation is off by default. To use it, make Inboxora reachable over HTTPS at APP_URL
and set PROVIDER_PUSH_ENABLED=true; for Gmail, also create a Cloud Pub/Sub topic and push subscription as
described in Provider setup. Both the Graph and the Calendar callbacks are derived from APP_URL, so no
per-account URL is ever configured. Without a public URL the installation synchronises by polling, which is
the supported default — no account is treated as broken for lacking push.
Back up the PostgreSQL volume and .env before every upgrade. Then update the pinned image
version, pull and recreate:
docker compose pull
docker compose up -dDatabase migrations run automatically on backend start. Review the release notes and Upgrading before a major version change.
Replacing an existing MailFlow deployment — rather than installing fresh — is a different procedure with its own traps around database and volume names: see Migrating from MailFlow. Only MailFlow 3.3.0 is supported as a migration source.
The 4.3.3 release provides a Windows installer, Linux DEB/RPM packages for x64 and ARM64, and Android APK/AAB files. These clients connect to your server. Install the APK directly on Android; the AAB is for distribution tooling. The Android versionCode is 4030300, above 4.3.2, and uses the existing release identity. Checksums and their detached GPG signature accompany the downloads. No macOS package is published.
Stable backend/frontend tags are 4.3.3, v4.3.3 and latest, with both AMD64 and ARM64 in
each manifest. The versioned tag is preferable for a controlled rollout. See
Upgrading before replacing an existing deployment.
- Home — documentation for 4.3.3
- Installation
- Getting started
- Workspace
- Operations
- Reference
- Releases