How to Self-Host listmonk for Free on Render & Neon (with Brevo SMTP & WordPress Forminator)

Post Published on

Running an independent newsletter shouldn’t lock you into expensive SaaS pricing tiers as your subscriber list grows. listmonk is a high-performance, open-source newsletter and mailing list manager built in Go, backed by PostgreSQL. Because it is lightweight enough to run comfortably inside 512 MB of RAM, you can host a complete, production-ready newsletter system for $0/month—without even needing a VPS or credit card.

In this guide, we will walk through the entire architecture from scratch:

  1. Setting up a free serverless PostgreSQL database on Neon
  2. Deploying listmonk on Render’s free tier
  3. Connecting a custom subdomain (://yourdomain.com) via Cloudflare
  4. Safely isolating your sending reputation with a subdomain (://yourdomain.com) on Brevo SMTP alongside Google Workspace
  5. Connecting a free WordPress Forminator form to listmonk via API

Architecture Overview

To keep the setup 100% free, fast, and isolated from your primary business email:

  • Database: Neon Free Tier (Serverless PostgreSQL, 1 GB storage, Singapore region for low latency in India)
  • Application Host: Render Free Web Service (Docker runtime, Singapore region, no credit card required)
  • DNS & SSL: Cloudflare DNS + Render managed TLS
  • Email Delivery (SMTP): Brevo Free Tier (300 emails/day) authenticated on a dedicated sending subdomain (://yourdomain.com)
  • Website Capture: WordPress + Forminator Free connected to listmonk’s REST API

Step 1: Create a Free PostgreSQL Database on Neon

Render’s free web services use an ephemeral filesystem, which means local files reset whenever a container restarts. Hosting your database externally on Neon ensures your subscribers, lists, and campaigns are permanently stored.

  1. Sign up for a free account at Neon (no credit card required).
  2. Click Create Project, name it listmonk, and pick the region closest to your audience (e.g., AWS Asia Pacific (Singapore) ap-southeast-1).
  3. Once created, open Connection Details on the dashboard and note down your direct (non-pooled) database credentials:
    • Host: ep-xxxx-xxxx.ap-southeast-1.aws.neon.tech (avoid the -pooler hostname so database schema migrations run smoothly)
    • Database: neondb
    • User: neondb_owner
    • Password: your_generated_neon_password

Step 2: Deploy listmonk on Render

  1. Create a free account at Render and click New + → Web Service.
  2. Choose Deploy an existing image from a registry and enter the official Docker image:textlistmonk/listmonk:latest Use code with caution.
  3. Configure your service settings:
    • Name: listmonk
    • Region: Singapore (Southeast Asia) (matches your Neon database region)
    • Instance Type: Free ($0/month)

Configure Environment Variables

Scroll down to Environment Variables and add the following keys using your Neon database details and your desired initial admin login:

KeyValue
LISTMONK_app__address0.0.0.0:9000
LISTMONK_app__admin_username[email protected]
LISTMONK_app__admin_passwordYourStrongAdminPassword123!
LISTMONK_db__hostyour-neon-host.ap-southeast-1.aws.neon.tech
LISTMONK_db__port5432
LISTMONK_db__userneondb_owner
LISTMONK_db__passwordyour_generated_neon_password
LISTMONK_db__databaseneondb
LISTMONK_db__ssl_moderequire

Initialize the Database Tables

listmonk’s Docker image requires a one-time --install command to create its tables in PostgreSQL. Because Render passes the Docker Command field directly to the container entrypoint without a shell wrapper, run it in two quick steps:

  1. Under Advanced → Docker Command, enter only:text./listmonk --install --idempotent --yes Use code with caution.
  2. Click Create Web Service. Watch the Logs tab—within ~15 seconds, listmonk will connect to Neon, create all required tables, and exit with status 0.
  3. Now go to Settings → Docker Command, clear the field completely so it is blank, and click Save Changes.

Render will restart using the image’s default command (./listmonk), and your logs will confirm:

text

⇨ http server started on [::]:9000

Use code with caution.

Security & v4+ Cleanup Note: Once you log into listmonk for the first time, return to Render’s Environment tab and delete LISTMONK_app__admin_username and LISTMONK_app__admin_password. listmonk v4+ automatically imports your admin user into the Neon database and manages users under Settings → Users.

Step 3: Connect a Custom Subdomain

  1. In Render, open your listmonk service and go to Settings → Custom Domains.
  2. Click Add Custom Domain and enter ://yourdomain.com.
  3. Copy the CNAME target Render provides (e.g., ://onrender.com).
  4. In Cloudflare DNS, add a new record:
    • Type: CNAME
    • Name: listmonk
    • Target: ://onrender.com
    • Proxy status: DNS only (Grey Cloud) (essential so Render can issue and renew your SSL certificate)
  5. Return to Render and click Verify. Within a few minutes, HTTPS will be active at https://yourdomain.com.

Step 4: Set Up Brevo SMTP on a Dedicated Subdomain

If your root domain (yourdomain.com) is already connected to Google Workspace for primary business communication, never send bulk newsletters from your root domain or Workspace SMTP. Instead, authenticate a dedicated subdomain like ://yourdomain.com on Brevo. This completely isolates your newsletter sender reputation from your main business inbox and avoids any DNS conflicts with Google’s SPF/DKIM records.

1. Authenticate ://yourdomain.com in Brevo

  1. Create a free account at Brevo (300 emails/day free).
  2. Go to Senders, Domains & Dedicated IPs → Domains → Add a domain and enter ://yourdomain.com.
  3. Brevo will provide two DKIM CNAME records and one DMARC TXT record. Add them to Cloudflare DNS:
    • DKIM 1 (CNAME): Name = brevo1._domainkey.mail | Proxy = DNS only (Grey Cloud)
    • DKIM 2 (CNAME): Name = brevo2._domainkey.mail | Proxy = DNS only (Grey Cloud)
    • DMARC (TXT): Name = _dmarc.mail | Content = v=DMARC1; p=none; rua=mailto:rua@://brevo.com (paste without surrounding double quotes)
  4. Click Authenticate this email domain in Brevo until all records turn green.
  5. Under the Senders tab, add your sender identity—for example, Your Name <hello@://yourdomain.com>.
  6. Go to SMTP & API → SMTP tab, note your SMTP Login ([email protected]), and click Generate a new SMTP key.

2. Configure SMTP & General Settings in listmonk

Log into https://yourdomain.com:

  1. Go to Settings → General:
    • Root URL: https://yourdomain.com (required so confirmation and unsubscribe links resolve properly)
    • Default “From” email: Your Name <hello@://yourdomain.com>
    • Click Save.
  2. Go to Settings → SMTP:
    • Enabled: Toggle ON
    • Host: ://brevo.com (do not include http:// or https://)
    • Port: 587 (Note: If your host blocks port 587 with an i/o timeout, use Brevo’s alternative port 2525)
    • Auth protocol: LOGIN
    • Username: Your Brevo SMTP Login ([email protected])
    • Password: Your generated Brevo SMTP key
    • TLS: STARTTLS
    • Custom Headers (Optional): Add Reply-To = [email protected] so subscriber replies go straight to your primary Google Workspace inbox.
    • Click Save, then send a test email at the bottom of the page.

Step 5: Connect WordPress (Forminator Free) to listmonk

While Forminator Pro includes built-in webhooks, you can connect Forminator Free directly to listmonk’s REST API using a lightweight WordPress code snippet.

1. Create an API User in listmonk

  1. In listmonk, go to Lists and note your target list’s numeric ID (usually 1).
  2. Go to Settings → Users → + New:
    • Name / Username: wordpress-form
    • Type: API
    • Permissions: Subscribers: manage (or Admin)
  3. Save and copy the generated API Token.

2. Add the Forminator Integration Snippet to WordPress

In WordPress, locate your Forminator form’s shortcode (e.g., ) to get its Form ID, and verify your field names (typically email-1 and name-1).

Install the free WPCode plugin (or add this to your child theme’s functions.php) and activate the snippet:

add_action('forminator_custom_form_submit_before_set_fields', function($entry, $form_id, $field_data_array) {
    // 1. Replace 452 with your Forminator Form ID
    if ((int) $form_id !== 452) {
        return;
    }

    $email = '';
    $name  = '';

    // 2. Match your Forminator field IDs
    foreach ($field_data_array as $field) {
        if ($field['name'] === 'email-1') {
            $email = sanitize_email($field['value']);
        }
        if ($field['name'] === 'name-1') {
            $name = sanitize_text_field($field['value']);
        }
    }

    if (empty($email)) {
        return;
    }

    // 3. Push subscriber to listmonk API
    wp_remote_post('https://yourdomain.com', [
        'timeout' => 15,
        'headers' => [
            'Authorization' => 'Basic ' . base64_encode('wordpress-form:YOUR_API_TOKEN'),
            'Content-Type'  => 'application/json',
        ],
        'body' => wp_json_encode([
            'email'                    => $email,
            'name'                     => !empty($name) ? $name : 'Subscriber',
            'status'                   => 'enabled',
            'lists'                    =>, // Replace 1 with your listmonk List ID
            'preconfirm_subscriptions' => false, // Sends double opt-in confirmation email
        ]),
    ]);
}, 10, 3);

Use code with caution.

Optional Production Polish

  • Prevent Render Cold Starts: Render’s free web services sleep after 15 minutes of inactivity. Set up a free monitor on UptimeRobot to ping https://yourdomain.com every 5–10 minutes so your subscriber forms and unsubscribe links always respond immediately.
  • External Media Storage: Because Render’s disk is ephemeral, configure Cloudflare R2 (10 GB/month free) or Amazon S3 under Settings → Media in listmonk before uploading images into your newsletter campaigns.

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.