Self-host billion-mail
v4.9Open-source mail server with newsletter and email marketing
- Stars
- 16 383
- CPU
- 1Core
- RAM
- 1GB
- Storage
- 20GB
- Ports
- 25 (Postfix SMTP (unencrypted)), 465 (Postfix SMTPS (SSL/TLS)), 587 (Postfix mail submission (STARTTLS)), 143 (Dovecot IMAP), 993 (Dovecot IMAPS), 110 (Dovecot POP3), 995 (Dovecot POP3S), 80 (Web management console (HTTP) and free certificate verification), 443 (Web management console (HTTPS))
- Requires
- Dovecot, Postfix, PostgreSQL, Redis, Roundcube, Rspamd
billionmail/coreWhat is billion-mail?
BillionMail is an open-source mail server and email marketing platform you run on your own Linux server. It bundles Postfix, Dovecot, Rspamd, PostgreSQL and Redis behind a web management console, so you can host sending domains and mailboxes, send newsletters, promotional or transactional email, and track campaign metrics such as delivery rate, open rate and click-through rate. Marketing tools include subscriber groups and tags, HTML and drag-and-drop templates with variable substitution and spintax, scheduled sending, unsubscribe links, and a sending API with API keys. When port 25 is blocked by your host, outbound mail can be forwarded through SMTP relay providers such as AWS SES or Mailgun. Roundcube webmail is included at /roundcube/, free SSL certificates are applied automatically, and fail2ban guards the console. Install it with the bundled shell script, with Docker Compose, or one-click from aaPanel; minimum hardware is 1 CPU core, 1 GB RAM and 20 GB disk, and only Linux (amd64/arm64) is currently supported. It is licensed under AGPLv3 with no monthly fees, though a paid manual deployment package is offered.
billion-mail alternatives
BichonSelf-hosted, open-source email archiver written in Rust that pulls mail over IMAP or OAuth2, indexes it for full-text search, and serves a WebUI and REST API.CompareBichon with billion-mail
LanQin EmailLanQin Email is an open-source self-hosted webmail with multi-domain support, DKIM, anti-spam, and single-container Docker deployment.CompareLanQin Email with billion-mail
mailezA self-hosted email platform with SMTP, IMAP, POP3, CardDAV, CalDAV, a React webmail client, and admin console — all deployed via a single Docker Compose command.Comparemailez with billion-mail
notifuseOpen-source, self-hosted newsletter, email marketing and transactional email platform. Visual MJML editor, Liquid templating, 7 sending providers.Comparenotifuse with billion-mail
docker-mailserverSelf-hosted, open-source mail server image (Postfix, Dovecot, Rspamd, ClamAV, Fail2ban) with SMTP, IMAP, LDAP and OAuth2 login, configured by files only.Comparedocker-mailserver with billion-mail
MailFlowA self-hosted webmail app that merges multiple email accounts into one inbox with real-time sync, AI features, and offline-capable PWA.CompareMailFlow with billion-mail
rustmailerSelf-hosted email middleware unifying IMAP, SMTP, Gmail and Graph APIs into REST/gRPC with web client, webhooks, NATS, OAuth2. Single binary, no external deps.Comparerustmailer with billion-mail
ReloopReloop is a self-hosted, open-source email platform replacing Resend and SendGrid with a unified API for transactional emails, marketing campaigns, and SMTP relay.CompareReloop with billion-mail
Should you self-host billion-mail?
billion-mail scores 71/100 on selfhost.directory (how scoring works) and ranks #5 of 16 in Mail Server. It has 16 383 GitHub stars, +485 in the last 30 days.
It shipped 2 stable releases in the past year. The latest, v4.9, came out on 11 December 2025. New versions land roughly every 3 weeks.
Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Stalwart Mail Server (79/100, 15 976 stars). It scores higher overall, so compare the two before you pick. See billion-mail vs Stalwart Mail Server side by side.
Features
- Built-in webmail (Roundcube)
- Campaign analytics
- Contact & subscriber lists
- DNS setup guidance
- Email marketing campaigns
- Email Templates
- Fail2ban protection
- Free SSL Certificates
- Mail server (SMTP / IMAP / POP3)
- REST API
- Scheduled sending
- SMTP relay forwarding
- Unlimited email sending
- Unsubscribe links
More in Mail Server
- chasquidA simple, secure, and easy-to-operate SMTP email server designed for individuals and small groups, written in Go.
Courier MTACourier Mail Server is a self-hosted, integrated mail/groupware server that provides ESMTP, IMAP, POP3, webmail, and mailing list services using open commodity protocols like LDAP, SSL, and HTTP.
Cyrus IMAPSelf-hosted open-source IMAP server with CalDAV calendars, CardDAV contacts, and JMAP access. Production-ready since 1993.
docker-mailserverSelf-hosted, open-source mail server image (Postfix, Dovecot, Rspamd, ClamAV, Fail2ban) with SMTP, IMAP, LDAP and OAuth2 login, configured by files only.
DovecotSelf-hosted open-source IMAP/POP3 mail server for Linux with LMTP, ManageSieve, LDAP/PAM/OAuth2 auth, Sieve filtering, full-text search and official Docker images.
emailwizSelf-hosted mail server installer: one script sets up Postfix, Dovecot, SpamAssassin, OpenDKIM and fail2ban on Debian/Ubuntu and emits DKIM, SPF and DMARC records.- EximExim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public License.
HarakaA self-hosted, open-source Node.js SMTP server with a JavaScript plugin system: filtering MTA or submission host with DKIM signing, DNSBL checks and virus scanning.
Hermes-Secure-Email-GatewaySelf-hosted email security gateway and mail server with spam filtering, encryption, DKIM/DMARC/ARC, Dovecot mailboxes, Nextcloud, and Authelia SSO in one Docker stack.
hestiaOpen-source, self-hosted control panel for Debian and Ubuntu servers: manage web domains, mail, DNS zones, databases and free SSL from one dashboard.
iRedMailiRedMail is a self-hosted, open-source mail server bundling Postfix, Dovecot, Roundcube, SOGo, and anti-spam tools into a reproducible installer for Linux and BSD.
jolimailSelf-hosted open-source alternative to SendGrid and Mailgun. Create and preview email templates in the browser using MJML, with PostgreSQL storage and SMTP integration.






0 comments