Fouad Salkini
Fouad SalkiniTech Lead & Architect
Published on 2026-11-15 20:38•159 views•Part 66 of Autonomous Engineering Systems

BillionMail: Self-Hosted Mailboxes and Campaigns, Not Guaranteed Delivery

BillionMail combines a real mail-server stack with newsletter campaigns, subscriber management and application sending. This source review explains the components, deployment choices, tracking controls and operational responsibilities—and why owning the server does not guarantee inbox placement.

#Email#BillionMail#Self Hosting#DevOps#Open Source
BillionMail: Self-Hosted Mailboxes and Campaigns, Not Guaranteed Delivery

If your business sends a newsletter, runs customer campaigns and needs mailboxes on its own domain, BillionMail puts those jobs on one self-hosted stack.[1][2] You operate the software and its data instead of buying only a hosted campaign interface.[2]

The README markets “unlimited sending” and an eight-minute installation.[1] I would not read those as inbox-placement guarantees: Gmail still applies its own authentication, reputation and sending requirements.[4]

I reviewed the BillionMail repository at commit fc36c76c050c3775c5e899faf7403cf0262d2744, together with its setup documentation and Gmail’s sender requirements. I did not install BillionMail, send test messages or measure deliverability. This is a source and deployment review, not a production mail-flow test.

It really includes a mail server

BillionMail is not merely a mailing-list dashboard connected to somebody else’s SMTP service.[2] The pinned Docker Compose file includes these components:[2]

Component Role in this deployment
Postfix SMTP sending and receiving, including submission ports.[2]
Dovecot Mail storage access through IMAP and POP3.[2]
Roundcube Browser-based webmail, exposed under the documented /roundcube/ path.[1][2]
Rspamd Mail filtering in the stack, connected to the mail services.[2]
PostgreSQL and Redis Supporting data and service state.[2]
BillionMail core Administration and the campaign/application interface.[1][2]

Mailbox management is present in the source, not only in screenshots: its API defines create, update, delete and list operations, with domain, active status and quota fields.[11] That makes ordinary mailbox hosting part of the product’s scope.

It does not establish that every migration, client, anti-spam configuration or recovery procedure is ready for your organization. Those need acceptance tests against your actual requirements.

Where the campaign layer adds value

The project combines newsletters, reusable templates, subscriber management and campaign reporting with that mail stack.[1] The campaign/API schemas include subjects, templates, contact groups, send times and open/click tracking fields.[12][13]

For a small product team, the appeal is practical: keep subscriber groups, templates and application-triggered messages near the infrastructure you control.[1][12] A developer can integrate the API while an operator manages campaigns from the web interface.[10]

The general API guide describes bearer authentication and an optional Swagger interface, while the application-sending schema specifically includes an x-api-key header.[10][12] Follow the actual endpoint contract rather than assuming every route uses the same credential. Keep credentials server-side; do not paste them into public frontend code just because a documentation example uses fetch.

In the reviewed single-send controller, API success means queued, not delivered: it inserts a pending record with status zero and no send time, then returns a success message.[16] Monitor the eventual sending result and recipient/provider response separately.

Unsubscription also has executable handling.[14] The reviewed handler validates a token, disables the matching contact within its group and records the unsubscribe event.[14] The handler acts on the specified group; it is not proof that every outgoing campaign has the correct one-click headers or that unsubscribing from one group excludes someone from all other lists.[14]

Before a real campaign, I would inspect the actual message headers against the receiving provider’s published unsubscribe requirements.[4] I would also verify that an unsubscribed recipient cannot be reintroduced by an import or another sending path.

Tracking is a choice, not a privacy guarantee

Release v4.9 documents controls to disable open and click tracking at campaign or global level.[5] The API schema also exposes tracking fields.[12]

Those controls matter because self-hosted reporting is still reporting about recipients.[12] Storing it on your server does not make tracking disappear or automatically satisfy consent and privacy obligations; Gmail still publishes subscription and unsubscribe requirements for senders.[4]

I would start with tracking off unless there is a clear reason to collect it. When reporting is enabled, define who can access the data and how long it should remain.

Also, an open rate is not an inbox-placement measurement.[4] Google’s own guidance says it cannot verify third-party open rates and that low open rates are not necessarily an accurate signal of delivery or spam-classification problems.[4] A dashboard number should not replace bounce analysis, real recipient tests and provider feedback.

Installation: choose the host before the command

The project’s quick-start lists Linux on amd64 or arm64, with a stated minimum of 1 CPU core, 1 GB RAM and 20 GB disk.[3] Treat that as the project’s baseline, not a measured capacity plan for large mailboxes, high concurrency or a large subscriber database.

The repository offers an installation script and a Docker Compose route; aaPanel also has an installation path.[1] The script is not just an isolated app launcher: its RPM branch includes disabling SELinux, and it installs or adjusts host packages.[6] Review it before using it on an existing production machine.

Given its exposed mail services and management privileges, I would evaluate it on a dedicated test server rather than beside unrelated applications.[2] You can inspect a pinned checkout before any privileged setup step:

git clone https://github.com/Billionmail/BillionMail.git
cd BillionMail
git checkout fc36c76c050c3775c5e899faf7403cf0262d2744

This is an inspection-first starting point, not a claim that I ran the installation. Before using the documented env_init to .env setup and starting Compose, replace shipped example credentials, set the hostname, review published ports and confirm the data paths.[1][2]

The source pin is not a reproducible-binary guarantee.[2] At review time, the latest GitHub release entry was v4.9, while the pinned Compose file selected the core image tag 4.9.3.[2][5] Compose uses image tags rather than a complete digest-pinned image set, so record the actual image digests you deploy.[2]

Containers do not remove host responsibility

The core service mounts the Docker socket, marked :ro, and requests NET_ADMIN and NET_RAW in addition to binding network services.[2] A read-only socket mount is not a read-only Docker API authorization policy; Docker documents daemon access as a host-level trust boundary.[15] Treat that management service as highly privileged, restrict its exposure and keep unrelated workloads away from it.

Compose also persists mail, database, configuration and other state in host directories.[2] A container restart is not a backup.[2] Plan consistent database/mail backups and prove a restore on a separate machine before moving business-critical mail.

The reviewed updater follows upstream main, can overwrite local changes and runs Compose down/pull/up.[17] Schedule downtime and retain recoverable copies before updating. Log-retention settings are not a complete backup and restore procedure.

DNS and delivery are still your work

The domain guide covers A, MX, SPF, DKIM, DMARC and PTR records; it notes that PTR is normally configured through the server provider or network operator.[8] Creating a domain in the dashboard does not give the application control over every one of those systems.

For direct server-to-server delivery, port 25 must be available.[3] The setup guide documents that prerequisite and an SMTP-relay alternative.[3] Outbound relay can solve a sending-path restriction; it does not by itself make an inbound mailbox server reachable.[3][9]

BillionMail documents external relay providers such as Amazon SES and Mailgun.[9] That can be a sensible design, but it changes the cost and data path: the relay sees outbound messages, applies its own limits and policies, and may charge for usage. Owning the campaign software does not remove the relay’s rules.[9]

For messages to personal Gmail accounts, Google’s published requirements include authentication, valid forward/reverse DNS and TLS.[4] Its bulk-sender requirements add SPF and DKIM, DMARC alignment and one-click unsubscribe for marketing/subscription messages.[4]

Do not interpret those as optional optimizations.[4] Google says messages that fail the requirements may be blocked or marked as spam.[4] It also recommends sending only to people who want the messages and monitoring domain/IP reputation and spam reports.[4]

I would keep a marketing sending stream distinct from critical business correspondence where possible. That reduces avoidable coupling, but a separate subdomain is not a guarantee against every domain- or IP-reputation effect.

A rollout I would trust

Before a production cutover, I would require these outcomes:

  1. Mailbox tests: sending and receiving work with TLS, the intended desktop/mobile clients and the correct account restrictions.
  2. DNS tests: the live records and PTR match the deployed host, and received messages pass the expected authentication checks.[4][8]
  3. Campaign tests: a small consented list receives correctly formatted mail; unsubscribe, suppression and bounce handling are verified across the sending paths you use.
  4. Security checks: initial credentials are replaced, administrative access is restricted, unnecessary services are not exposed, and the image/update process is documented.
  5. Recovery: restore mail, database and configuration from backup, then check that the restored system actually works.

Begin with low volume and monitor the receiving providers’ responses. No throughput figure or inbox-placement result was reproduced for this review.

Free software is not free mail operations

The repository is licensed under AGPLv3.[7] Distribution has notice and corresponding-source conditions; if you modify the program and users interact with that version over a network, section 13 requires a prominent opportunity to obtain its Corresponding Source without charge.[7] That is a software-source obligation, not a requirement to publish customer email lists. Review the license for your deployment rather than interpreting “free” as “no obligations”.

Your operating budget still includes the server, storage, backups, monitoring, domain administration, optional relay fees and the time needed to handle abuse and delivery failures.

My verdict: BillionMail is worth evaluating when you want mailbox hosting and campaign operations on infrastructure you control, and have someone prepared to operate email properly. It is a poor fit if the attraction is only “unlimited sending” with no reputation, maintenance or compliance work.

Start with a consented list and a tested recovery plan. Decide whether to scale after the real messages and real restores work—not after the dashboard starts.

Sources

[1] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/README.md — BillionMail project scope [2] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/docker-compose.yml — Pinned deployment stack [3] https://billionmail.com/start/preparation.html — Official setup requirements [4] https://support.google.com/a/answer/81126?hl=en — Gmail sender requirements [5] https://github.com/Billionmail/BillionMail/releases/tag/v4.9 — BillionMail release 4.9 [6] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/install.sh — Installer behavior [7] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/LICENSE — AGPLv3 license [8] https://billionmail.com/start/domain.html — BillionMail domain.html [9] https://billionmail.com/start/smtp.html — BillionMail smtp.html [10] https://billionmail.com/start/api_usage_guide.html — BillionMail api_usage_guide.html [11] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/core/api/mail_boxes/v1/mailboxes.go — Mailbox management schema [12] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/core/api/batch_mail/v1/api_mail.go — Application sending API schema [13] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/core/api/batch_mail/v1/batch_mail.go — Campaign scheduling and tracking schema [14] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/core/internal/controller/batch_mail/batch_mail_v1_unsubscribe_new.go — Unsubscribe handler [15] https://docs.docker.com/engine/security — Docker daemon security boundary [16] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/core/internal/controller/batch_mail/batch_mail_v1_api_mail_send.go — core/internal/controller/batch_mail/batch_mail_v1_api_mail_send.go [17] https://github.com/Billionmail/BillionMail/blob/fc36c76c050c3775c5e899faf7403cf0262d2744/update.sh — update.sh

Fouad Salkini

Written by Fouad Salkini (فؤاد سلقيني)

General Manager & Tech Lead at Tripnologies and Sync Studios. Systems Architect focusing on AI coding agents, DevOps, and quantitative systems.