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
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
Notifuse
Email Marketing
Open-source, self-hosted newsletter, email marketing and transactional email platform. Vis
OSSvs Mailchimp★ 2.3k
Listmonk
Email Marketing
High performance, self-hosted, newsletter and mailing list manager with a modern dashboard
AGPL-3.0vs Mailchimp★ 24k
BillionMail
Email Marketing
BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-ho
AGPL-3.0vs Mailchimp★ 16k
phpList
Email Marketing
Fully functional Open Source email marketing manager for creating, sending, integrating, a
AGPL-3.0vs Mailchimp★ 883
Mautic
Email Marketing
Mautic: Open Source Marketing Automation Software.
OSSvs HubSpot★ 11k
Plunk
Email Marketing
The Open-Source Email Platform
AGPL-3.0vs SendGrid★ 5.6k
SaaS alternatives to Mailtrain
See all
Mailchimp
Email Marketing
Mailchimp is an email and SMS marketing platform with automations, templates, AI tools, audience management and reporting for small and mid-size businesses.
SaaS
MailerLite
Email Marketing
Email newsletter and automation tool with a drag-and-drop editor
SaaS
Campaign Monitor
Email Marketing
Email design and sending platform for marketers and agencies
SaaS
Kit (ConvertKit)
Email Marketing
Email marketing and audience platform for creators, formerly ConvertKit
SaaS
Brevo
Email Marketing
Email, SMS and marketing automation platform formerly known as Sendinblue
SaaS
Constant Contact
Email Marketing
Email campaign tool for small businesses with event and survey features
SaaS

AWeber
Moosend
Benchmark Email
EmailOctopus
Zoho Campaigns
Sendy
MailUp
Campaigner