Nomploy Nomad Packs

← All packs

mailpit v0.1.0

Dev tools

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).

nomad-pack run mailpit --registry nomploy
1 task ui 8025smtp 1025 image axllent/mailpit:latest
Variables 8
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run mailpit -f values.hcl --registry nomploy
# 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
  }
NameTypeDefaultDescription
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.
Readme

mailpit

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.

Usage

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.

Key variables

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.

Notes