
Gmail
Email service with spam protection and Google integration
Discover top open-source software, updated regularly with real-world adoption signals.

One-click, self-hosted email server that just works
Mail-in-a-Box transforms a fresh Ubuntu 22.04 machine into a fully configured mail server with SMTP, IMAP, webmail, spam protection, DNS, TLS, backups and a simple control panel.

Mail-in-a-Box lets individuals and small teams turn a brand‑new Ubuntu 22.04 LTS server into a production‑ready mail system with a single command. The project targets users who want privacy and control without spending time on manual configuration.
The installer provisions Postfix, Dovecot, Roundcube, Nextcloud‑based CardDAV/CalDAV, and Z‑Push for ActiveSync, plus spamassassin, postgrey, NSD4 DNS with SPF/DKIM/DMARC/DNSSEC, and automatic Let’s Encrypt TLS for every service. A web‑based control panel and REST‑API let you add users, aliases, custom DNS records, schedule duplicity backups, and monitor health via Munin, UFW firewall and fail2ban.
Start with a clean 64‑bit Ubuntu 22.04 machine, clone the repository, checkout the latest tag and run sudo setup/start.sh. The script installs, configures and enables all components, then runs daily checks to verify service status, certificate validity and DNS correctness. While the box “just works”, you must maintain a dedicated server and accept that advanced customizations or SMTPUTF8 are not supported.
When teams consider Mail-in-a-Box, these hosted platforms usually appear on the same shortlist.
Looking for a hosted option? These are the services engineering teams benchmark against before choosing open source.
Personal email domain
Run your own address (you@yourdomain.com) with spam filtering and encrypted connections, eliminating reliance on third‑party providers.
Small business communication
Provide staff with private mailboxes, shared calendars via Nextcloud, and secure webmail without external SaaS subscriptions.
Secure static website hosting
Serve an HTTPS website from the same box while handling email for the domain, simplifying infrastructure.
Backup and disaster recovery testing
Use built‑in duplicity backups and monitoring to ensure mail data can be restored quickly after a failure.
It is designed for a fresh Ubuntu 22.04 LTS 64‑bit installation.
No, the installer sets up NSD4 with SPF, DKIM, DMARC, DNSSEC, DANE, MTA‑STS and SSHFP automatically.
Yes, Let’s Encrypt certificates are obtained and renewed for HTTPS and all mail services.
Customization is intentionally limited; the project aims for a ‘just works’ experience without power‑user tweaks.
Mail-in-a-Box cannot control external spam filters; you may need to adjust DNS, reputation, or contact recipient admins.
Project at a glance
StableLast synced 4 days ago