Mailpit — a developer SMTP server that captures outgoing email into a web UI instead of delivering it, so you can test transactional mail safely. Deployed as a stateless host-networked Nomad service (messages held in memory).
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "mailpit"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The Mailpit container image. Pin a tag in production.
image = "axllent/mailpit:latest"
# Host port for the Mailpit web UI / API.
ui_port = 8025
# Host port for the SMTP listener — point your app's SMTP client here.
smtp_port = 1025
# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources.
resources = {
cpu = 200
memory = 128
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "mailpit" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "axllent/mailpit:latest" | The Mailpit container image. Pin a tag in production. |
| ui_port | number | 8025 | Host port for the Mailpit web UI / API. |
| smtp_port | number | 1025 | Host port for the SMTP listener — point your app's SMTP client here. |
| constraints | list | [] | Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 200
memory = 128
} | The task resources. |
No variables match.
Mailpit — a developer/test SMTP server that captures outgoing email into a web UI (with a searchable inbox, HTML/source view, and API) instead of delivering it. Point your apps at it in staging so test emails never reach real inboxes. Stateless host-networked Nomad service.
nomad-pack registry add nomploy github.com/Nomploy/nomad-packs
nomad-pack run mailpit --registry nomploy
In nomploy: create a Compose service, type Nomad Pack, pack mailpit, custom registry
github.com/Nomploy/nomad-packs, then Deploy.
http://<node-ip>:8025<node-ip>:1025 (no auth/TLS needed) — set this as your app's mail host/port.| Variable | Default | Notes |
|---|---|---|
image |
axllent/mailpit:latest |
Pin a tag in production. |
ui_port |
8025 |
Web UI / API. |
smtp_port |
1025 |
SMTP listener. |
constraints |
[] |
Placement. |
resources |
cpu 200 / mem 128 |
Lightweight. |
MP_DATABASE; not configured here).