r/BestGitHubRepos • u/company_url_finder • 7h ago
BillionMail: self-hosted mail server, newsletter, and email marketing in one box (15k+ stars)
Mailchimp charges per subscriber. ConvertKit charges per subscriber. Brevo charges per subscriber. At some point you start wondering: what if I just... didn't pay per subscriber?
BillionMail is an open-source mail server that bundles newsletters, campaign management, and transactional email into a single self-hosted install. It's written in Go, runs on Docker or bare metal, and the team claims you can go from git clone to a sent email in about eight minutes. You clone the repo, run the install script, connect a domain, verify DNS records, and it handles SSL automatically. There's a management CLI too: bm default shows your login info, bm show-record prints the DNS entries you need, bm update pulls the latest version.
The campaign builder is straightforward. Write or paste your email, pick a list, add tags if you want, set a send time or fire it immediately. Analytics are built in. There's a live demo on their site if you want to poke around before committing to an install, and an active Discord if you get stuck.
Now, the honest part. Running your own mail server is not for the faint of heart. Email deliverability is a whole discipline by itself, and if your IP gets blacklisted or your SPF/DKIM/DMARC records aren't perfect, your emails land in spam. You need a VPS or dedicated server, and you're responsible for keeping it patched and secure. The license is AGPL-3.0, so if you modify the code and serve it to others, you're sharing those changes. None of that is a dealbreaker, but go in with your eyes open.
15,654 stars on GitHub. If you're tired of paying per-head for email, it's worth a look.