For the complete documentation index, see llms-docs.txt or the site index llms.txt. Full docs corpus: llms-full-docs.txt. Prefer the markdown version of this page at /docs/setup/backend/inbox.md. Product capabilities: skill.md. Docs MCP: /docs/mcp. Site MCP: /mcp.

Inbox

Set up, configure, and run the Reloop inbox microservice locally.

Agent Inbox API — mailboxes, threads, and messages from inbound email via NATS.

Run bun setup once from the monorepo root. That starts Docker including inbound for live MX on port 25.

Overview

PropertyValue
Directoryapps/backend/inbox
Port8021
Local URLhttps://local.reloop.sh/api/inbox
Swagger UIhttps://local.reloop.sh/api/inbox/openapi
StackElysiaJS · PostgreSQL · Redis · NATS

Quick start

bun be:inbox:dev

Or bun backend:dev / bun dev.

Environment

apps/backend/inbox/.env — from bun setup / bun env:setup.

PG_URL=postgresql://reloop:reloop123@localhost:5432/reloop
REDIS_URL=redis://:reloop123@localhost:6379
PORT=8021
BASE_URL="https://local.reloop.sh"
NATS_URL=nats://localhost:4222
NODE_ENV=development
VariableRequiredDefault
PG_URLYESpostgresql://...
REDIS_URLYESredis://...
PORTYES8021
NATS_URLYESnats://localhost:4222

Commands

CommandDescription
bun be:inbox:devStart dev server with hot reloading
bun run --filter=be-inbox buildCompile production bundle
bun run --filter=be-inbox startRun compiled production build
bun run --filter=be-inbox check-typesTypeScript type-check

Architecture

LayerDetail
Inbound flowinbound MTA → NATS → inbox persistence
AttachmentsFile storage via upload (no direct S3 config on inbox)
Dashboard APIMailboxes, threads, and messages at /api/inbox

Next

Was this page helpful?

Edit this page