---
title: Deploy Mailpit with AI on Blossom
url: "/deploy/mailpit/"
canonical_url: https://blossom88.com/deploy/mailpit/
markdown_url: https://blossom88.com/deploy/mailpit.md
summary: Deploy Mailpit with AI on Blossom. Capture and inspect sample emails in a
  private test inbox.
categories:
- deployment
- developer-tools
stack:
- Go
- Vue
- SQLite
---

# Deploy Mailpit with AI on Blossom

[Mailpit](https://mailpit.axllent.org/) captures test emails so you can
inspect the subject, recipients, and body in a browser.

![Mailpit shows a sample workshop confirmation in its test inbox.](/deploy/assets/images/mailpit/message.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Mailpit on Blossom and help me capture a sample email.
>
> Follow this guide: https://blossom88.com/deploy/mailpit/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Capture a Sample Email

Send a sample through Mailpit's local SMTP listener and open it in the
private inbox. Leave delivery and relaying disabled for this setup.

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Use the [official Mailpit image](https://mailpit.axllent.org/docs/install/docker/).
Mount a Volume at `/data` and set `MP_DATABASE=/data/mailpit.db`.
Keep the UI behind Blossom Account access and SMTP bound to loopback for
the local example. Send the sample through Blossom Shell.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom service:create --data service.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow
    blossom shell --container container-100

</details>

## What You Get

- A private web inbox for test email
- A Persistent Service Volume for captured messages
