JustEmails
PricingSign inStart free trialStart free
Guides··11 min read

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.

By JustEmails Platform Team
Contents
  1. The main open source email servers, in one line each
  2. What the software actually does for you
  3. Line one: the box
  4. Line two: port 25 may not even be open
  5. Line three: the lines that aren't the server
  6. What the $49 buys instead
  7. Where the math flips
  8. A quick way to decide
  9. FAQ
  10. What is the best open source email server?
  11. Is a self-hosted email server cheaper than a hosted plan?
  12. Why can't I send email from a cloud server?
  13. Is JustEmails open source?
  14. Try JustEmails

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.

The main open source email servers, in one line each

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.

  • Mailcow: a Docker-based suite with a web admin and SOGo groupware bundled in.
  • Mailu: a Docker-based mail server aimed at small deployments, with a web admin.
  • Stalwart: an all-in-one mail server written as a single project.
  • Mail-in-a-Box: a one-machine, one-person setup that configures most of the stack for you.
  • iRedMail: an installer that sets up a mail stack on a Linux server you provide.
  • docker-mailserver: a container image for people who'd rather configure by file than by web panel.

Every one of these is free to download. None of them includes a machine to run on.

What the software actually does for you

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.

Line one: the box

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:

BoxPer monthPer year
DigitalOcean 1 GiB$6$72
DigitalOcean 8 GiB (Mailcow-sized)$48$576
Hetzner 1 GB CPX02 (Helsinki, ex VAT)EUR 5.49EUR 65.88
Hetzner 8 GB CPX32 (Helsinki, ex VAT)EUR 30.49EUR 365.88
JustEmailsn/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.

Line two: port 25 may not even be open

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.

Line three: the lines that aren't the server

Add what's left. None of these has a price we can quote you, and we won't invent one.

  • Off-box backups. A mailbox on one disk is one failed disk away from gone. Backups need somewhere to live that isn't the same machine.
  • Blocklist monitoring. If your IP lands on a blocklist, mail starts bouncing and nothing tells you.
  • Certificate monitoring. Certificates expire. A mail client that suddenly can't connect is how most people find out.
  • Updates. A public-facing mail server is a target. Patching is part of the job, indefinitely.
  • A relay, if port 25 stays shut, as above.
  • Your hours.

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.

What the $49 buys instead

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:

  • SPF, DKIM, DMARC and MTA-STS are set up automatically, with no hand-rolled DNS records to get wrong. (If you've ever tried to untangle a broken SPF record, our guide to moving DMARC from p=none to reject safely shows how fiddly the manual route is.)
  • Rspamd and ClamAV do the spam and virus filtering.
  • Blocklist monitoring watches the sending IP.
  • DNS drift detection tells you if an SPF, DKIM, DMARC or MX record changes or disappears after your domain is verified. That's the failure people don't know they need protection from until a record gets overwritten.
  • Full IMAP, SMTP and POP3 access, so your existing mail apps work. The client host is 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.

Where the math flips

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.

A quick way to decide

Write down three numbers.

  1. The yearly cost of the smallest box that meets the project's own requirements.
  2. The yearly cost of whatever relay or unblock process you'd need for outbound mail.
  3. Your own hours multiplied by your own hourly rate.

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.

FAQ

What is the best open source email server?

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.

Is a self-hosted email server cheaper than a hosted plan?

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.

Why can't I send email from a cloud server?

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.

Is JustEmails open source?

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.


Try JustEmails

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.

Start your 7-day free trial → · How it compares

open-source-email-serverself-hosted-emailmailcowemail-hosting-costport-25buildinpublicsaasstudioaiworkforcebuildwithclaude

Related posts

Tutorials
Email Forwarding Breaks SPF and DMARC: Causes and Fixes (SRS, ARC)
12 min read
Comparisons
SendGrid Free Plan: What It Is Now and What a Small App Pays After It
10 min read
Industry
Kagi Mail Pricing: What $99 a Year Buys for Custom-Domain Email
11 min read