Mailtrain

Open source

Mailtrain is a self-hosted newsletter application on Node.js and MySQL or MariaDB, with lists, segments, templates, automation and a built-in mail server.

GitHub stars
5.8k
Last 30 days
-2(+0%)
Last commit
1 yr ago
Repository age
10 years
Version
v2.20210609.0
Licence
GPL-3.0
Self-hosted
Yes

About Mailtrain

Mailtrain is a self-hosted newsletter application built on Node.js (v14+) and MySQL (v8+) or MariaDB (v10+). This README covers version 2, a complete rewrite of version 1, so it has to be installed from scratch; the database from v1 can be backed up and upgraded to the new schema.

Features include subscriber lists, segmentation, custom fields, email templates including MJML-based ones, custom reports, and automation with triggered and RSS campaigns. Multiple users can work with granular permissions and sharing, and hierarchical namespaces target enterprise setups. A built-in Zone-MTA means mail delivery needs close to zero setup.

Mailtrain exposes three URL endpoints: trusted for logged-in users, sandbox for the WYSIWYG template editors, and public for subscribers. The recommended deployment points three DNS entries at one IP address. An install script for CentOS 7 or Ubuntu 18.04 also obtains a Let's Encrypt certificate. Recommended minimum hardware is 2 vCPU and 4096 MB RAM.

Key features

  • Subscriber lists, segmentation and custom fields
  • Triggered and RSS campaign automation
  • Hierarchical namespaces for enterprise use
  • Built-in Zone-MTA for mail delivery
  • Separate trusted, sandbox and public endpoints
  • Install script obtains a Let's Encrypt certificate

Good fit for

  • Self-hosted email newsletters
  • Triggered and RSS email campaigns
  • Multi-user marketing teams
Tags
newsletter
email marketing
self-hosted
nodejs
automation
mjml
mailing list

Mailtrain: questions and answers

What is Mailtrain used for?
Mailtrain is a self-hosted newsletter application on Node.js and MySQL or MariaDB, with lists, segments, templates, automation and a built-in mail server. It is a good fit for self-hosted email newsletters, triggered and RSS email campaigns, and multi-user marketing teams.
Is Mailtrain open source?
Yes. Mailtrain is open source under the GPL-3.0 licence. Its source code is on GitHub at Mailtrain-org/mailtrain and is written mainly in JavaScript.
Is Mailtrain free?
Yes. Mailtrain is open source, so the software itself is free to use.
Can I self-host Mailtrain?
Yes. Mailtrain can be self-hosted on your own server or infrastructure.
What is Mailtrain an alternative to?
Mailtrain is an open-source alternative to Mailchimp, MailerLite, Campaign Monitor and Kit (ConvertKit). Other open-source alternatives to Mailchimp include Notifuse, Listmonk and BillionMail.
Is Mailtrain actively maintained?
The most recent commit to Mailtrain was on 5 October 2025, and the latest release is v2.20210609.0, published on 9 June 2021. The project has 5.8k stars on GitHub.

Open-source alternatives to Mailtrain

See all

SaaS alternatives to Mailtrain

See all