Mailpit

Capture test emails in a web inbox with an API.

  • email
  • testing

Run it

briq run mailpit

Fields

NameTypeOptionsDefault
imagestring—"axllent/mailpit:latest"
envrecord{ key: string | { secret, value?, literal?, scope?, hosts?, locations? } }{}
cmdstring | string[]——
sizeenumnano, small"nano"
filesrecord{ key: string | { base64 } }—
egressobject{ hosts }—

Outputs

Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.

SMTP_HOST
mailpit.<stack>.internal
SMTP_PORT
1025
SMTP_URL
smtp://mailpit.<stack>.internal:1025
MAILPIT_UI
http://mailpit.<stack>.internal:8025
MAILPIT_API
http://mailpit.<stack>.internal:8025/api/v1/messages

What it runs

BriqImagePortsSizeVolume
mailpitaxllent/mailpit:latest1025, 8025nano—

When to use it

  • Your tests must assert on the emails your app sends: recipients, subject, body, attachments.
  • You want to see what a flow sends without sending anything real.

Point the app at SMTP_HOST/SMTP_PORT (no auth, no TLS).

Tips

  • Assert through the API at MAILPIT_API: search with /api/v1/search?query=to:alice@example.com, read one message at /api/v1/message/<id>.
  • Clear between tests: DELETE on MAILPIT_API.
  • Inbox for a human: briq_run({ recipe: "mailpit", expose: "private" }).

On this page

Free to try

Try briq, on us.

Every new account starts with €10 of credits. No card.

Start building

How can we help?

Message to the briq team