---
title: Deploy Listmonk with AI on Blossom
url: "/deploy/listmonk/"
canonical_url: https://blossom88.com/deploy/listmonk/
markdown_url: https://blossom88.com/deploy/listmonk.md
summary: Deploy Listmonk with AI on Blossom. Manage newsletter subscribers and campaigns
  with managed PostgreSQL and S3-compatible media storage.
categories:
- deployment
- marketing
stack:
- Go
- Vue
- PostgreSQL
---

# Deploy Listmonk with AI on Blossom

[Listmonk](https://listmonk.app/) manages email newsletters, subscriber lists,
and campaigns. You write the message, choose a list, and send through your
SMTP provider.

## Ask Your Agent

> **Ask your AI agent:** Deploy Listmonk on Blossom and help me send a test newsletter.
>
> Follow this guide: https://blossom88.com/deploy/listmonk/

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

## Your Newsletter Setup

| Part | Purpose |
|---|---|
| Listmonk Service | Newsletter dashboard and campaign sender |
| Managed PostgreSQL | Subscribers, campaigns, settings, and accounts |
| Your S3-compatible bucket | Newsletter images |
| Your SMTP provider | Delivers email |

Bring an SMTP provider and an S3-compatible bucket with a public image URL.
Keep administration private while allowing subscription, unsubscribe and
tracking routes. Keep **one active campaign runner**, including during updates.

![Listmonk showing a completed sample newsletter campaign.](/deploy/assets/images/listmonk/campaign.png)

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

Upstream requirements: [deployment requirements](https://listmonk.app/docs/installation/).

Keep administration behind **Blossom Account access** and require native
Listmonk sign-in. Allow the subscriber-facing subscription, unsubscribe, and
tracking routes through Blossom's access policy. Your agent can use
[Listmonk's route reference](https://listmonk.app/docs/configuration/#http-routes)
to keep administrative APIs private.

[Source code](https://github.com/knadh/listmonk).

Create a prebuilt-image Environment, then create and link PostgreSQL:

    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom database_instance:create --data postgres.yml --follow
    blossom environment_link:create --data database-link.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom service:create --data listmonk-service.yml
    blossom environment:deploy --id environment-100 --follow

Map the linked database connection to Listmonk's database settings, preserving
its case-sensitive `LISTMONK_db__*` variable names. Use the private endpoint's
connection settings. Listen on `0.0.0.0:9000` and run with `--config ''` when
configuration comes from environment variables.

Run the selected release's idempotent install/upgrade commands in a **Release
Phase Hook**. Create a strong owner password privately, then configure the
public root URL, SMTP, and media storage in Listmonk's settings.

For R2, set the S3 API endpoint and region, bucket-scoped credentials, and a
public media delivery URL. Use the S3 provider's private bucket mode to avoid
sending an unsupported `public-read` object ACL; the separate media delivery
URL controls how recipients view the images.

For a stop-before-start update, wait for each command to finish:

    blossom service:scale --id service-100 --desired-size 0 --follow
    blossom environment:deploy --id environment-100 --follow
    blossom service:scale --id service-100 --desired-size 1 --follow

</details>

## Send a Test Newsletter

Create a list using addresses you control. Upload an image, preview a campaign
and check its unsubscribe link. Configure your sender, SPF, DKIM and bounce
handling before sending real newsletters.

<details class="optional-reading" markdown="1">
<summary>Updates and storage</summary>

Keep one active Listmonk campaign runner. Finish or pause campaigns and prevent
scheduled sends during an update; don't add replicas merely because media is
in R2. Use a stop-before-start update: scale the web Service to zero, wait for it to
stop, deploy the saved update, then scale back to one. This has a short outage.
Keep PostgreSQL and the bucket, then check the saved campaign and its image.

</details>

## What You Get

- A private newsletter dashboard
- Subscribers and campaign history in managed PostgreSQL
- Newsletter images delivered from your bucket
- Public subscription and unsubscribe pages
