Tool review

Mail-in-a-Box: what it does and how to run it

one command that turns a fresh Ubuntu server into a working mail system

Independent review. Some links are affiliate links; they never affect the verdict or the ranking. Full disclosure.

Mail-in-a-Box takes a clean Ubuntu machine and turns it into a mail server: SMTP, IMAP, webmail, spam filtering, DKIM signing and the DNS records that make providers trust you. One script does the work and a status page tells you when something drifts. Running your own mail is the hardest self-hosting project there is, and this is the least painful way in.

It still demands a static IP with a clean reputation, reverse DNS you control, and a willingness to watch deliverability. If your provider blocks port 25, no amount of configuration will fix it — check that before you start, because it is the reason most attempts fail.

What Mail-in-a-Box actually does

This entry collects the essentials: what the project does, what licence it ships under, and where it fits next to the alternatives. Check the official site for the current feature list.

Core features

  • Installs and configures Postfix, Dovecot and the DNS records together
  • Automatic TLS certificates and a webmail client
  • Spam filtering, greylisting and DKIM signing set up for you
  • A status check that tells you when DNS or deliverability drifts

Where it is strongest

  • genuinely one command
  • good documentation

Who it is for

people who want their own email domain without assembling Postfix by hand

The installer configures DNS, DKIM, SPF and the mail stack as one unit, which is the part that normally takes a weekend and still ends up with mail in spam

How Mail-in-a-Box compares

These are the entries closest to Mail-in-a-Box on this site — same category, overlapping job. Licence and hosting model are the two columns worth reading first, because they decide your total cost more than the feature list does.

ToolLicenceCostBest for
Mail-in-a-Box This pageAGPL-3.0Free to self-hostone command that turns a fresh Ubuntu server into a working mail system
ChatwootMITFree to self-hostOpen-source customer support platform
MattermostMITFree to self-hostSelf-hosted team messaging and collaboration
Rocket.ChatMITFree to self-hostOpen-source platform for fully customizable chat

How to get Mail-in-a-Box running

  1. Pick the hostA 2 GB VPS covers most of these apps for a small team. If you would rather not run an operating system, a managed app host gives you a one-click container with backups and TLS included.
  2. Provision the runtimeMail-in-a-Box ships as a container image or a documented install script. Pin a release tag rather than tracking latest, so an upstream change never surprises you on a Friday.
  3. Attach persistent storagePoint the data volume at a path you back up. Most of these apps keep everything — users, settings, history — in one database plus an uploads folder.
  4. Put it behind a domain with TLSAdd an A record, then terminate TLS at your proxy or at the host. Set the public URL in the app's environment before first login, because several apps bake it into links.
  5. Secure the admin accountChange the default credentials, enable 2FA where offered, and close registration unless the app is meant to be public.
  6. Schedule the first backupA nightly snapshot that you have actually restored once is worth more than any feature on this page.

Licence and cost

AGPL-3.0. Network copyleft. Offering it as a hosted service counts as distribution, so your modifications must be published.

Self-hosting removes the subscription but not the work: patching, backups, monitoring and the odd 2am alert. Budget a few hours a month for a small deployment.

Questions people ask

Is Mail-in-a-Box free to use?

Yes. Mail-in-a-Box is released under AGPL-3.0, so you can install and run it without a subscription. Network copyleft. Offering it as a hosted service counts as distribution, so your modifications must be published. Hosting and maintenance still cost money — a small VPS or a managed app host is the usual answer.

Can I self-host Mail-in-a-Box?

Yes — that is the point of this listing. You need a server with a supported runtime, persistent storage and a backup schedule. A managed app host removes most of the setup work if you would rather not maintain the operating system yourself.

What is a good alternative to Mail-in-a-Box?

Chatwoot is the closest option in the same category on this site — Open-source customer support platform. It is worth comparing licence terms before you pick.

Who is Mail-in-a-Box aimed at?

people who want their own email domain without assembling Postfix by hand Mail-in-a-Box uses the AGPL-3.0 licence. Start with a single team and a single workflow rather than rolling it out to the whole company at once.

tf
techifyFlow editorial

We test and document open-source and AI tools for small teams. Every entry is reviewed against the project's own documentation and licence before it is listed. Read the method.