Open Source Email Servers Are Free. Running One Costs Over $49/Year
The software for an open source email server costs nothing. The server, the IP reputation, the backups and your time don't. Here's the math, and where it flips.
The software for an open source email server costs nothing. The server, the IP reputation, the backups and your time don't. Here's the math, and where it flips.
The software has never been the expensive part of running an open source email server. Mailcow, Mailu, Stalwart, Mail-in-a-Box, iRedMail and docker-mailserver are free, well maintained and genuinely good. If you can run one, you should know that. We're not here to tell you otherwise.
What we'll argue is narrower. A mail server is a service, not a program: a machine that's always on, an IP address other servers trust, patches, backups, and someone watching it. Take the code out of the equation entirely and that list is still what you pay for. JustEmails isn't open source, but imagine it were: you'd still be paying $49 a year for the server, the reputation and the upkeep. That's the thought experiment. The rest of this guide is the arithmetic behind it.
If you searched for an open source email server, you want the options first. Here they are, each linked to the project's own site.
Every one of these is free to download. None of them includes a machine to run on.
The filtering you'd rely on isn't proprietary either. Rspamd scores spam and ClamAV scans for viruses. Mailcow ships both. JustEmails filters spam and viruses with the same pair, so on that front a self-hosted box and a hosted plan are running the same engines. Nobody is paying extra for a smarter filter.
So where does the money go? Into everything surrounding the software.
Start with what the open source email server projects themselves say they need. Figures below are as of November 2026, each from the page linked.
Mailcow's prerequisites page lists RAM as "Minimum 6 GiB + 1 GiB swap (default config)" and says "8 GiB RAM are recommended for ~5 to 10 users". Mail-in-a-Box is leaner: its setup guide asks for at least 512 MB of RAM and recommends "a box with 1 GB of RAM which costs around $10/month". It also tells you to set reverse DNS at your cloud provider, which is a job you do on their side, not in the software.
Now price those boxes.
DigitalOcean's Basic Droplets list a 1 GiB machine at $6 a month and an 8 GiB machine at $48 a month. Hetzner Cloud lists prices excluding VAT, in euros: a 1 GB CPX02 from EUR 5.49 a month and an 8 GB CPX32 at EUR 30.49 a month in Helsinki. (Hetzner's cheaper 8 GB CX33 at EUR 8.99 showed "currently unavailable" on their cost-optimized page on 2026-11-28, so don't plan around it.)
Multiply by twelve:
| Box | Per month | Per year |
|---|---|---|
| DigitalOcean 1 GiB | $6 | $72 |
| DigitalOcean 8 GiB (Mailcow-sized) | $48 | $576 |
| Hetzner 1 GB CPX02 (Helsinki, ex VAT) | EUR 5.49 | EUR 65.88 |
| Hetzner 8 GB CPX32 (Helsinki, ex VAT) | EUR 30.49 | EUR 365.88 |
| JustEmails | n/a | $49 |
(We've left the euros as euros. Converting them would add a number nobody published.)
Read that table twice. Seriously. The 1 GB box Mail-in-a-Box recommends is already above $49 a year at either host before a single email has been sent. (DigitalOcean's smaller 512 MiB Droplet, the bare minimum Mail-in-a-Box accepts, comes in just under.) A Mailcow-sized 8 GiB box at DigitalOcean is about twelve times the JustEmails price. That's line one, and it's the cheap line.
This is the part tutorials skip, because it fails at the network, not in the config.
DigitalOcean's support page says "SMTP ports 25, 465, and 587 are blocked on Droplets", and that applies to all Droplets by default. Hetzner's cloud FAQ says it blocks ports 25 and 465 by default on all cloud servers, and it accepts an unblock request only after you've been a customer for a month with the first invoice paid, decided case by case. Google's Compute Engine tutorial on sending mail says outbound port 25 to external destinations is blocked by default.
So your brand-new mail server can't deliver mail. At Hetzner, you can wait out a month, ask nicely, and hope. Or you can send through a relay, which means you're now paying for a hosted sender anyway, just a more awkward one. Neither is a disaster, and both are real.
Add what's left. None of these has a price we can quote you, and we won't invent one.
That last one deserves honesty, because it's the biggest line and the easiest to fudge. We're not going to put a fixed number of hours on it. We don't know your skills. Make it your own assumption: if it takes you an hour a month and your hour is worth $40, that's $480 a year. If it takes ten minutes, it's $80. Plug in your number. The point is that it's never zero, and a $49 plan only has to beat the sum of all the lines, not just the first.
JustEmails is $49 a year, flat, for unlimited custom domains and unlimited mailboxes with a unified inbox across all of them — additional team members are $2 per member per month, and storage beyond the included 10 GB is $99 a year per 100 GB.
For that, the things above are somebody else's problem:
mail.justemails.app, with SMTP on port 587 using STARTTLS.We covered the per-mailbox side of the pricing argument separately in flat-fee vs per-mailbox email pricing. The short version: mailboxes don't cost extra here, so the number doesn't climb as you add them.
Here's the section a sales page wouldn't give you. There are real cases where running an open source email server is the better call, and pretending otherwise would just make the rest of this less credible.
Budget hosts sell small servers for less than $49 a year. They exist. When the server line is cheaper than us, the argument stops being about the monthly bill. It rests on port 25 policy, IP reputation and your time. We're deliberately not naming or pricing specific deals, because they change and we'd be guessing.
You already run a server with spare RAM. If a machine is already on, already patched and already backed up, adding a mail stack to it can cost close to nothing in new hardware. The marginal cost is mostly your attention.
You need a lot of separate logins. Extra JustEmails team members are $2 per member per month. The owner is free, and mailboxes don't need a seat, but every additional person with their own dashboard login adds up. If you're running mail for a large group of individual people, price it out before assuming flat means cheapest.
You need a lot of storage. Ten GB is included, and each extra 100 GB is $99 a year. Check how much disk the server you'd rent includes: for storage-heavy mail, self-hosting can undercut the add-on pricing.
You need calendar and contacts. Mailcow bundles SOGo groupware. JustEmails has no calendar or contacts, and we'd rather you hear that now than after signing up.
You want full control of your data. Owning the machine, the disk and the logs is a legitimate reason, and no hosted plan gives you that.
If one of those describes you, run your own server and enjoy it. Mailcow's docs are good.
Write down three numbers.
Add them. Compare to $49, plus $2 a month for each extra person who needs a login. If the first sum wins, self-host. If it's close, the tie-breaker is how much you enjoy the work, which is a perfectly good reason either way.
Running several domains makes the hosted side look better, because the flat fee doesn't grow with them. Our guide on Google Workspace alternatives with flat-fee email hosting walks through that comparison. And if the sites you're hosting email for also need analytics or traffic-quality checks, the same studio's JustAnalytics and ClickzProtect cover those, though neither has anything to do with the mail decision.
There isn't one winner. Mailcow bundles a web admin and SOGo groupware, Mail-in-a-Box aims at a single-person setup on one small machine, Mailu and docker-mailserver suit people who already live in Docker, Stalwart is a newer all-in-one server, and iRedMail installs onto a plain Linux box. Pick by how much of the stack you want to own.
Only sometimes. As of November 2026, a 1 GiB DigitalOcean Droplet is $6 a month ($72 a year) and Hetzner's smallest cloud server starts at EUR 5.49 a month excluding VAT, so a 1 GB box alone is above $49 a year before you count backups, monitoring or your time. Smaller and cheaper servers exist, and an existing spare server changes the answer.
Many providers block outbound SMTP port 25 by default. DigitalOcean blocks ports 25, 465 and 587 on Droplets, Hetzner blocks 25 and 465 until you qualify for an unblock, and Google Compute Engine blocks outbound port 25 to external destinations. Where the provider allows it you can get the block lifted; otherwise you send through a relay.
No. JustEmails is a hosted service at $49 a year. It does use open-source filtering, Rspamd for spam and ClamAV for viruses, which are the same filters Mailcow ships, so the filtering software isn't what you'd be paying for either way.
Unlimited custom domain email hosting for $49/year flat — unlimited domains, unlimited mailboxes, 10 GB storage, full IMAP/SMTP. Built for agencies, freelancers, and anyone managing email across more than one domain.