Free

listmonk: collect website subscribers and send newsletters

Prepare self-hosted listmonk, a signup form and website resource delivery. Choose a mail service and test delivery and stopping the newsletter.

Tools

Installation instructions · Packaged releases · Download source code (ZIP)

listmonk keeps email subscribers on your server and helps send newsletters. Use it to deliver a resource from a website and offer further emails. Codex can prepare the installation, form and integration; a separately chosen mail service handles delivery.

When to choose it

For example, a visitor gets a checklist from your website and separately agrees to further emails. listmonk manages the lists and mailings; the funnel plan covers the whole reader journey. It does not process Instagram comments itself: Manychat covers that branch.

Choose listmonk when you want control over the database and can maintain a server. For a managed dashboard without server administration, compare Brevo or keep a suitable existing service. Open-source software does not make delivery free: price hosting, email delivery and maintenance before moving contacts.

How to prepare

Start with a separate practice instance without your real subscriber database or mailings. Then check the form and one approved message.

  1. Find the environment. Work/Codex checks for an existing instance, server, Docker and available ports. For a new installation, it selects a stable release using the official guide. Options include Docker Compose or a packaged binary; PostgreSQL is required. The source ZIP is not an installer.
  2. Prepare startup. After installation approval, adapt the official Compose file: pin versions, replace the example database password, persist data and uploads, and avoid port conflicts. Bind the practice dashboard to localhost rather than every network interface. Create the administrator during first login; do not expose unfinished setup to the internet.
  3. Prepare delivery. In Settings, configure the approved SMTP service, sender address and external HTTPS address of the instance. Check the provider's domain requirements and sending limits. Prepare a draft with the actual resource link and unsubscribe option. Even a test email to your inbox needs confirmation of the address and permission to send.

The assistant runs these commands inside the directory containing the reviewed Compose file. config --quiet checks the configuration, while up -d starts the services. Before installation approval, prepare the files and explain the changes only:

docker compose config --quiet
docker compose up -d

The official example uses latest, exposes the application port and includes an example database password. Review it before running it on a working server. Uploads are separate from the database: backing up one does not back up the other. Before an upgrade, back up PostgreSQL. Rolling back the application also requires a compatible database backup, not just the previous image.

How to connect a website

For the first form, use public subscription as supported by the installed version. The current API accepts JSON with email, optional name and list_uuids; form encoding uses repeated l fields. Supply the public list's UUID, not its numeric ID. Public subscription must be enabled and the list must be public; inserting a private list's number does not make it accessible.

Administrative requests belong on the website's server, not in visitors' browsers. Create an API user in Admin → Users with a separate token and the required permissions only. The official interface here is the HTTP API, not a mandatory MCP server. Work/Codex can prepare a server-side handler or use an authorized dashboard; if access is missing, it asks for the specific login needed.

Check list permissions alongside global permissions: lists:get_all and lists:manage_all override per-list restrictions. campaigns:send separately permits sending, even when campaign preparation is already allowed. A basic form does not need user management or arbitrary SQL. See the permissions table.

A repeated form submission must not overwrite other lists, remove opt-out or send a second welcome message. Check existing contacts separately from new ones, retain consent history in the integration and limit repeated requests. Do not expose a token to fix a broken form.

Subscription and resource delivery

listmonk has a contact-level status and a separate membership status for each list. A double opt-in list waits for confirmation before sending ordinary campaigns to that membership. Single opt-in behaves differently. Choose these settings and concepts before connecting the form, rather than changing them to make a test pass.

In the email funnel branch, separate the resource from further emails. If the resource is offered without a subscription, show it on the result page. If confirmation is required, explain that an email is on its way. Do not set preconfirm_subscriptions in place of the person's action. Administrative contact creation and sending an opt-in email are separate operations; check both against the installed version.

For “confirmed → received resource → next email”, prepare and verify a separate trigger mechanism. A contact list alone does not create that sequence. Use an available n8n workflow where needed, but do not add another service when a form and one message suffice.

Testing and stopping

Run the whole-path check with an approved practice contact: new submission, confirmation email, resource link, repeat, unsubscribe and another repeat. An old consent must not be restored automatically after opt-out. Use a separate test list for an ordinary campaign, not your whole audience.

If no message arrives, compare logs and SMTP settings, the mail provider's result and the spam folder. HTTP success is not inbox delivery. In Settings → Bounces, configure appropriate bounce processing so invalid addresses do not keep receiving attempts. Check bounces and mailing complaints separately.

To stop, disable launches from the form or external automation first, then inspect running and scheduled campaigns. Pause a running campaign; return a future scheduled campaign to draft using its allowed transition. The campaign API documents these states. Already sent emails cannot be recalled. Do not delete contacts or Docker volumes to stop sending, or resume the queue automatically after recovery.

The result is one checked email branch: form, correct list, agreed resource delivery, confirmation and opt-out. Next: launch and measure the funnel.

Paste into Codex or Work:

Prepare my website's email branch using listmonk. Find the project, existing mail service, listmonk instance and agreed resource-delivery plan yourself. Do not migrate a working service without a reason: compare costs and maintenance. If installation is needed, propose a stable release and separate practice environment; prepare a reviewed Compose file, database and upload persistence, local access and a backup. Get approval before installation, new permissions, costs and each real send. Build a form for the correct public list or a server-side integration with minimal permissions; keep tokens out of the browser. Separate file delivery, subscription confirmation and further emails. Do not invent an automatic sequence: prepare the required trigger mechanism and explain how it starts. Check a new contact, confirmation, resource opening, repetition and refusal without restoring an opt-out or changing other memberships. With an approved practice address, verify the actual email rather than only an API response. Leave bulk sending off; show how to stop external triggers, running and future campaigns, and recover without duplicate emails.
In this article
Saved