The Mail-in-a-Box alternative
built for production.
Mail-in-a-Box gives you a one-command personal email box on a single Ubuntu VPS. Vectis Mail is API-first, multi-domain mail infrastructure for teams and SaaS — a self-hosted transactional sending API and inbound webhooks alongside your mailboxes, an admin dashboard for every domain, and atomic updates with health-gated rollback. Same instinct for owning your own mail, built to run in production.
At a glance
Side-by-side, checked against Mail-in-a-Box's README in October 2026.
| Vectis Mail | Mail-in-a-Box | |
|---|---|---|
| Target user | Teams, SaaS, multi-domain operators | Individuals, families, single-org |
| Mail stack | Postfix · Dovecot · Rspamd | Postfix · Dovecot · SpamAssassin |
| Deployment model | Docker Compose | One-command shell script (OS-native) |
| Supported OS | Current Linux with Docker; tested on Ubuntu 24.04 LTS | Ubuntu 22.04 LTS only (fresh install) |
| Install difficulty | Guided installer, ~20 min | One command, ~15 min |
| Configuration model | Dashboard + REST API, with every service config generated from one config.yaml | Web control panel · no config-as-code |
| REST API | 40+ endpoints (sending, webhooks, domains, mailboxes, analytics) | Minimal admin API only · no sending API |
| Transactional sending API | Yes — domain-scoped keys, batch, attachments | No — SMTP submission with mailbox creds |
| Inbound webhooks | Yes — HMAC-signed, retry-with-backoff | No |
| Antispam (default) | Rspamd (modern heuristics) | SpamAssassin |
| Multi-domain | Built-in: many domains on one install | Single-org-shaped |
| Per-domain analytics | Yes (Pro) | No |
| Webmail | Roundcube | Roundcube |
| Calendar / contacts (CalDAV/CardDAV) | Not yet (Phase 4 roadmap) | Yes (Nextcloud-based) |
| Update model | Atomic 6-phase orchestrator with auto-rollback | Re-run setup script (fragile if box modified) |
| Observability built in | Prometheus-format metrics + alerts; Grafana/Loki optional | Munin graphs + a status-checks page |
| License | Business Source License 1.1 (auto-Apache 2.0 after 4y); commercial Pro license | CC0-1.0 (public domain) |
| Pricing | $0 Starter · $39 USD/tenant/month Pro (unlimited installs) | $0 forever · donations welcome |
Why teams move to Vectis Mail
Where a one-command personal box stops being enough.
- You're running mail for a team or SaaS, not a single person or family.
- You need a real REST API and inbound webhooks alongside mailboxes: a SendGrid-shape sending API that you host yourself.
- You manage multiple domains and need real multi-domain hosting, not single-org constraints.
- You want config-as-code available: one
config.yamlapplied withvectis config apply, alongside a dashboard and a REST API. - You want orchestrated updates with automatic rollback, not a re-run-the-setup-script model.
- You want Rspamd's modern heuristics out of the box.
- You want to move off Ubuntu 22.04 to a current LTS such as Ubuntu 24.04.
One honest scope note: Vectis Mail doesn't yet ship bundled CalDAV/CardDAV calendar and contacts (it's on the Phase 4 roadmap). If groupware calendar/contacts are central to your daily use, factor that gap into your plan — pair Vectis Mail with a dedicated CalDAV/CardDAV service for that lane.
How they differ
Different products for different audiences
Mail-in-a-Box's README is explicit: "no user-configurable setup options."That's the value proposition. The project deliberately optimises for a one-command personal email box over flexibility — a deliberately narrow scope. Vectis Mail is built for the wider job: production infrastructure you can operate, automate, and scale across domains and teams.
Vectis Mail sits in a different category. The audience is teams, SaaS, and multi-domain operators who need a real transactional sending API, inbound webhooks, multi-domain hosting, and config-as-code. Comparing the two on the same table is useful for the migration question, but understand what each product is for.
API surface
Mail-in-a-Box exposes a minimal REST API for control-panel operations: creating users, managing aliases, setting forwards. There's no transactional sending API, no inbound webhooks, no domain-scoped keys, no per-domain rate limiting. SMTP submission is the only programmatic send path.
That matters the day an application, not a person, needs to send. On Mail-in-a-Box your app logs in over SMTP with a real mailbox's password, so every service that sends mail holds a user credential, and a leaked one opens the whole mailbox. On Vectis Mail each app gets its own API key, scoped to the domains it may send from and with its own rate limit, and it posts JSON (single or batch, with attachments) instead of speaking SMTP. Replies and inbound mail can come back to your app as HMAC-signed webhooks with retry, which Mail-in-a-Box has no equivalent for. In all, 40+ REST endpoints, also covering mailboxes, aliases, domains, analytics and audit logs.
See the API Reference for the full surface.
Multi-domain hosting
Mail-in-a-Box is single-org-shaped. You can run multiple domains on one box, but the control panel, the user model, and the operational shape all assume one organisation. Vectis Mail hosts many domains on one install, each isolated at the domain level — its own DKIM keys, analytics, and spam controls. If you're running mail for multiple brands or customer subdomains, that's a structural difference, not a config tweak.
Configuration model
Mail-in-a-Box's configuration lives in the web control panel and on-disk files managed by the install script. There's no declarative config surface. Every change is a UI click or a manual file edit, and the upgrade path documented as "fresh OS only"means modifying the box voids the supported upgrade story.
Vectis Mail takes the opposite position to "no user-configurable setup options", without asking you to hand-edit Postfix. Day-to-day changes (domains, mailboxes, aliases, API keys) happen in the admin dashboard or over the API and apply at once. The settings Mail-in-a-Box won't let you touch, such as spam thresholds, which services run and resource limits, sit in one file the installer writes for you, and vectis config apply shows the diff, then regenerates and reloads only the services that changed. Settings made this way are carried through every update rather than fighting it.
Update + rollback
Mail-in-a-Box upgrades by re-running the setup script: straightforward when the box is unmodified, fragile when you've customised anything. There's no automatic snapshot, no health-check gate, no rollback. If a release breaks something, recovery is whatever you do manually.
On Vectis Mail an update is one command, vectis update apply, and it is the same whether or not you've customised the box. It snapshots the database and stack first, pulls the new release's images (verified against a signed manifest), recreates the services, and checks that Postfix, Dovecot, Rspamd and the API are all answering before it calls the update done. If any step fails, it restores the snapshot on its own. You never find out mid-upgrade that a hand edit broke the setup script, and vectis verify confirms afterwards that the box runs exactly the published release. SeeInstallation for the full update model.
Calendar + contacts
Mail-in-a-Box bundles Nextcloud for CalDAV and CardDAV; calendar and contacts work out of the box. Vectis Mail doesn't ship calendar/contacts yet; that's on the Phase 4 roadmap. If you actively use CalDAV/CardDAV, that's our most significant functional gap today — plan to pair Vectis Mail with a separate CalDAV/CardDAV service until Phase 4 lands.
License + pricing
Mail-in-a-Box is CC0-1.0: public domain, the most permissive license possible. Zero lock-in, zero strings, no commercial edition, no paid support, donations welcome.
Vectis Mail is dual-licensed: BSL 1.1 for the core (free Starter: up to 3 domains, 25 mailboxes per domain, full API, webhooks, monitoring, backups) and a commercial Pro license at $39 USD/tenant/month (unlimited domains and mailboxes, per-domain analytics, OIDC SSO, priority support, one subscription covers unlimited installs). Seepricing.
Migrating from Mail-in-a-Box to Vectis Mail
The mail-data layer migrates cleanly (both products are vanilla Postfix + Dovecot). The calendar/contacts and control-panel-config layers need manual export.
- Check who serves your DNS. Mail-in-a-Box runs its own DNS server (nsd4) and many boxes are their domain's nameserver. If yours is, move DNS hosting to your registrar or a DNS provider first, copying every record across, because the old box is about to go away.
- Take a final Mail-in-a-Box backup (its built-in duplicity backup), so you have a restore point that doesn't depend on the migration.
- Stand up Vectis Mail on a fresh Ubuntu 24.04 VPS with the installation guide, add your domains, and leave MX pointing at Mail-in-a-Box for now.
- Copy the mailboxes with
imapsyncordoveadm backup. Both products use Dovecot, so folders and flags come across intact. - Publish Vectis Mail's DKIM key next to the existing one. Mail-in-a-Box signs with the selector
mailand Vectis Mail withdefault, so both keys stay valid through the switchover. - Export Roundcube settings (per-user filters, signatures) from Mail-in-a-Box Roundcube and re-import into Vectis Mail Roundcube.
- Re-create domains, mailboxes, aliases, and forwards via Vectis Mail's CLI or API. The Mail-in-a-Box control panel doesn't export config-as-code, so this is a manual transcription.
- Export Nextcloud calendar + contacts to iCal/vCard if you use them. Vectis Mail can't import these — you'll need a separate CalDAV/CardDAV destination from this point. This is the most significant step if calendar is part of your daily use.
- Switch MX and SPF to the Vectis Mail server, run a final
imapsyncpass for anything that arrived meanwhile, and point mail clients at the new host. - Keep the old box for a week, read-only, then switch it off once mail has been flowing cleanly through the new server.
Realistic timeline: an afternoon for a small personal install without calendar, longer if Nextcloud calendar/contacts are central to your use.
Frequently asked questions
Is Vectis Mail a drop-in replacement for Mail-in-a-Box?
Not 1:1 — the two products target different scopes. Mail-in-a-Box is a single-server, single-org, one-command personal email box. Vectis Mail is API-first, multi-domain mail + transactional sending built for teams and SaaS running production infrastructure. The mail-data layer (Postfix + Dovecot) migrates cleanly via standard IMAP sync, so the switch is a normal migration rather than an export fight. Once you need a real REST API, inbound webhooks, or genuine multi-domain hosting, Vectis Mail is the natural next step.
Does Mail-in-a-Box have a sending API or inbound webhooks?
Mail-in-a-Box exposes a minimal REST API for control-panel operations (creating users, managing aliases) but not a transactional sending API and not inbound webhooks. SMTP submission with mailbox credentials is the only programmatic send path, and inbound mail lands in mailboxes only. Vectis Mail ships 40+ REST endpoints covering sending (single + batch with attachments), inbound webhooks with HMAC signatures, mailboxes, domains, analytics, and admin operations.
Can I run Mail-in-a-Box on something other than Ubuntu 22.04?
No — Mail-in-a-Box explicitly targets fresh Ubuntu 22.04 LTS only. No Debian, no Ubuntu 24.04, no RHEL family, no BSD. Modifying the install or running it on anything else voids the upgrade path. Vectis Mail runs as a Docker Compose stack on a current Linux VPS, and it is tested on Ubuntu 24.04 LTS, the release our own production servers run.
Will I lose my calendar and contacts if I migrate?
Calendar and contacts on Mail-in-a-Box live in its bundled Nextcloud install (CalDAV/CardDAV). Vectis Mail doesn't yet ship CalDAV/CardDAV (it's on the Phase 4 roadmap), so you'd export to iCal/vCard before tearing the old box down and re-import wherever you keep calendar from then on. If calendar and contacts are central to your use, that's a real cost to factor into your migration plan.
Try Vectis Mail
Production mail + transactional API for teams and SaaS. Multi-domain, API-first, observable.
Other Vectis Mail alternatives
Coming from a different stack? Read the comparison that matches it.
Mailcow vs Mail-in-a-Box →
Not comparing against us: how the two stack up against each other, Docker groupware vs a one-command box.
vs Mailcow →
Same self-hosted stack, plus a REST API, an admin dashboard for every domain and atomic updates with rollback.
vs iRedMail →
Compared with the long-running OS-native open-source mail stack: REST API, atomic updates, Rspamd by default.
vs SendGrid →
A REST sending API, no per-email pricing. Flat $0–$39/mo covers unlimited sending volume.
vs Postmark →
Flat $0–$39/mo self-host vs the developer-loved transactional SaaS. A REST sending API, mailboxes included.