Docker
The Docker image runs the SMTP server and Web UI in one container.
Pull the image
Section titled “Pull the image”Published images are available from GitHub Container Registry:
docker pull ghcr.io/shuaixr/inbrx:latestRun inbrx
Section titled “Run inbrx”Run inbrx with file-backed storage mounted at /data:
docker run --rm \ -p 2525:2525 \ -p 3000:3000 \ -v inbrx-data:/data \ ghcr.io/shuaixr/inbrx:latestThen open http://127.0.0.1:3000 and configure your application to send SMTP mail to 127.0.0.1:2525.
Storage
Section titled “Storage”The image sets these defaults:
| Setting | Value |
|---|---|
| SMTP bind host | 0.0.0.0 |
| Web UI bind host | 0.0.0.0 |
| File storage directory | /data |
Mount a Docker volume or host directory to /data to keep captured messages across container restarts:
docker run --rm \ -p 2525:2525 \ -p 3000:3000 \ -v "$PWD/inbrx-data:/data" \ ghcr.io/shuaixr/inbrx:latestUse memory storage for disposable runs:
docker run --rm \ -p 2525:2525 \ -p 3000:3000 \ ghcr.io/shuaixr/inbrx:latest \ --storage memoryBuild locally
Section titled “Build locally”Build the image from this repository:
docker build -t inbrx .Run the local image:
docker run --rm \ -p 2525:2525 \ -p 3000:3000 \ -v inbrx-data:/data \ inbrxDocker Compose
Section titled “Docker Compose”Use Compose when you want inbrx to run with the rest of your development stack.
For a standalone inbrx service that accepts SMTP from your host machine, expose both ports:
services: inbrx: image: ghcr.io/shuaixr/inbrx:latest ports: - "2525:2525" - "3000:3000" volumes: - inbrx-data:/data restart: unless-stopped
volumes: inbrx-data:This example is also available at examples/docker-compose.yml.
When your application is in the same Compose project, the application can connect to inbrx by service name. In that case, expose only the Web UI port to your host:
services: app: image: your-app environment: SMTP_HOST: inbrx SMTP_PORT: "2525" depends_on: - inbrx
inbrx: image: ghcr.io/shuaixr/inbrx:latest ports: - "3000:3000" volumes: - inbrx-data:/data
volumes: inbrx-data:Inside a Compose network, use inbrx:2525 as the SMTP server address. Use 127.0.0.1:2525 only for applications running on the host machine.