Building your own homelab is probably one of the most rewarding journeys a tech enthusiast can undertake. You’ve conquered photo and video backups with Immich, wrangled network-wide routing with Technitium DNS, and started to manage you herbarium with Plant-it. But what about one of the most fundamental internet services: email? The idea of hosting your own email server can seem daunting, but with tools like BillionMail, it’s more accessible than ever.
What is BillionMail and How Does it Work?
BillionMail is an open-source, self-hosted email marketing and server platform. At its core, it provides the tools to manage your own email communications without relying on large third-party providers. For the homelab enthusiast, this means greater privacy, control, and a fantastic learning opportunity.
The magic of sending email lies in the Simple Mail Transfer Protocol (SMTP). Think of SMTP as the postal service of the internet. When you send an email, your email client communicates with an SMTP server, which then relays the message to the recipient’s mail server. BillionMail, in its self-hosted glory, can act as your personal SMTP server. It utilizes a combination of powerful open-source components like Postfix (for sending and receiving mail) and Dovecot (for storing and accessing mail via IMAP/POP3). It also integrates RoundCube as a webmail client, giving you a familiar browser-based interface to manage your emails.
Installation is designed to be straightforward, with options for a simple installation script or deployment via Docker, a favorite in the homelab community for its containerized approach to software management.

Billionmail Dashboard – Image Credit: billionmail.com
Key Features of BillionMail
BillionMail packs a surprising punch for a free, self-hosted solution:
- Complete Control and Privacy: Your emails are your data. By self-hosting, you ensure that your communications aren’t being scanned for advertising purposes or subject to the whims of a third-party provider.
- Unlimited Sending: Unlike many commercial services that impose sending limits or charge based on volume, BillionMail allows you to send as many emails as your server and internet connection can handle.
- Advanced Analytics: For those who like to track performance, BillionMail offers detailed analytics on email delivery, open rates, and click-through rates.
- Customizable Templates: You can create and save your own email templates, perfect for newsletters or standardized communications.
- User and Domain Management: Easily manage multiple users and domains from a single dashboard.
- Open-Source and Free: As an open-source project, BillionMail is free to use, modify, and contribute to. This aligns perfectly with the ethos of the homelab community.
The Homelab Challenge: Dynamic IPs and SPF Records
Now for a crucial consideration for any homelabber venturing into self-hosted email: your internet connection. Most residential internet service providers (ISPs) assign dynamic IP addresses, which can change periodically. This poses a significant challenge for running a reliable email server.
Major email providers like Gmail, Outlook, and others are highly suspicious of emails originating from residential and dynamic IP ranges. These are often associated with spam-sending botnets. To combat this, they employ a series of checks, and one of the most important is the Sender Policy Framework (SPF) record.
An SPF record is a type of DNS record that specifies which mail servers are authorized to send email on behalf of your domain. When an email arrives, the receiving server checks the SPF record of the sending domain to see if the originating IP is on the approved list.
Here’s the problem with a dynamic IP: every time your IP address changes, your SPF record becomes invalid. While you can use a Dynamic DNS (DDNS) service to keep your domain name pointing to your changing IP, updating the SPF record in real-time is not always feasible or effective.
Even with a static IP at home, many ISPs block port 25, the standard SMTP port, to prevent spam. Furthermore, residential IP ranges are often on pre-emptive blocklists.
The most effective workaround for this is to use an SMTP relay service. Instead of sending emails directly from your homelab, BillionMail can be configured to forward all outgoing mail through a professional SMTP relay provider like SendGrid, Mailgun, or Amazon SES. This way, your emails are sent from the reputable IP addresses of these services, significantly improving deliverability.
Saving Money: BillionMail vs. The Alternatives
So, is it hopeless? Not at all! It’s about using the right tool for the job. The primary cost savings of self-hosting are in avoiding monthly subscription fees.
Let’s compare:
- BillionMail (Self-Hosted):
- Software Cost: $0
- Sending Cost: $0 (plus your electricity and internet bill)
- Challenge: Overcoming the deliverability issues mentioned above.
- Paid Alternatives (Transactional Email Services):
- Examples: SendGrid, Mailgun, Amazon SES, Postmark.
- How they work: These are professional services built for deliverability. You send your email to them, and their highly reputable servers deliver it for you. This is often called an SMTP Relay.
- Cost: SendGrid’s free tier offers 100 emails/day forever. Brevo (formerly Sendinblue) offers 300 emails/day. For higher volumes, Mailgun might charge around $35/month for 50,000 emails.
- The Savings: If you need to send thousands of emails, a paid plan can add up. Self-hosting with BillionMail eliminates this monthly fee entirely, provided you can establish a stable, reputable sending IP (e.g., by using a cheap VPS).
For the average homelabber, the best solution is a hybrid approach: Use BillionMail or another application to manage your email, but configure it to send outgoing mail via a free-tier SMTP relay service. This gives you the best of both worlds: full control and excellent deliverability for your system notifications without the headaches.
Conclusion
BillionMail is a testament to the power and elegance of the open-source, self-hosting community. It offers a comprehensive, powerful, and free solution for anyone wanting to truly own their email infrastructure. As a learning project and for managing internal homelab mail, it is second to none.
However, when it comes to sending mail to the outside world from a residential connection, the deck is stacked against you. The challenges of dynamic IPs, blocked ports, and IP reputation are significant hurdles.
For the pragmatic self-hoster, the path forward is clear: embrace BillionMail for its incredible management capabilities, but for sending crucial outbound mail, leverage a free-tier SMTP relay like SendGrid or Brevo. This hybrid model gives you the control you crave, the deliverability you need, and keeps your homelab projects humming along without a monthly bill.

