Mailcow VPS hosting: deploy a self-hosted mail server in minutes
Run a self-hosted Mailcow VPS and own your email. A few commands bring up a full mail server — Postfix, Dovecot, SOGo webmail, Rspamd spam filtering, and ClamAV — with no per-mailbox bill.
What can you do with a self-hosted Mailcow VPS
Mailcow (full name mailcow: dockerized) is an open source mail server solution packaged as Docker containers. On your own VPS one stack brings up Postfix, Dovecot, SOGo, Rspamd, and ClamAV — a complete email server with webmail, spam filtering, and antivirus, and no per-mailbox fee.
A full mail server — SMTP, IMAP, and POP3
Webmail, calendar, and contacts with SOGo
Spam and virus filtering built in
One admin panel, no config files by hand
Automatic TLS and per-domain DKIM
No per-mailbox bill
Choose a plan and buy Mailcow VPS
Mailcow documents a 6 GB floor (with swap) and recommends 8 GB once you're past a handful of users. is*hosting VPS run without swap, so plan for the full 8 GB in real RAM. Start with Premium ($33.99/mo — 4 CPU, 8 GB RAM, 50 GB SSD) for personal use or a small team up to roughly 10 mailboxes; step up to Elite (16 GB RAM, 6 CPU) for a growing team with ActiveSync phones and heavier concurrent IMAP use. Every plan's pricing includes a dedicated IPv4 address, free weekly VPS backups, KVM virtualization, and full root/SSH access — and Premium ships with outbound port 25 open, which a mail server needs to deliver. You can scale RAM and drive later.
- 40 CountriesFrom$33.99 / 1 month$32.29 with is*smart
- Xeon 4x2.20 GHz CPU
- 8 Gb RAM
- 50GB SSD Drive
- Unmetered Bandwidth
- 40 CountriesFrom$50.99 / 1 month$48.44 with is*smart
- Xeon 6x2.20 GHz CPU
- 16 Gb RAM
- 80GB SSD Drive
- Unmetered Bandwidth
- 40 CountriesFrom$76.49 / 1 month$72.67 with is*smart
- Xeon 8x2.20 GHz CPU
- 32 Gb RAM
- 100GB SSD Drive
- Unmetered Bandwidth
Boost Your VPS Server Resources
Check out how you can change the configuration of your VPS. You can purchase additional drive space, increase CPU performance, add RAM, and take advantage of additional services without having to switch to a new plan.
How to deploy Mailcow on a VPS
Mailcow installs from its official Mailcow Docker repository with Docker Compose. Here is how to install Mailcow on a VPS from a fresh Ubuntu 24.04 box — point DNS, run a few commands, and log in.
Step 01 — Point DNS and provision the VPS
Add an A record for your mail hostname (for example mail.yourdomain.com) pointing at the IP is*hosting assigns you, and an MX record for your domain pointing at that hostname. At checkout choose Ubuntu 24.04 — Mailcow doesn't support CentOS Stream. Ask support for a PTR (reverse DNS) record matching your hostname.
Step 02 — Install Docker and Docker Compose
As root, install Git and the tools Mailcow needs, then Docker with the Compose plugin.
apt update && apt install -y git openssl curl gawk coreutils grep jqcurl -sSL https://get.docker.com/ | CHANNEL=stable shsystemctl enable --now dockerStep 03 — Clone the repository
Set a sane umask and clone the mailcow-dockerized repository into /opt.
umask 0022cd /optgit clone https://github.com/mailcow/mailcow-dockerizedcd mailcow-dockerizedStep 04 — Generate the configuration
Run the config generator. It checks your IP against the Spamhaus Bad ASN list, then asks for your mail hostname (FQDN), timezone, and branch — choose 1 for the stable master branch. It writes mailcow.conf and a temporary self-signed certificate.
./generate_config.shStep 05 — Pull images and start the stack
Pull the 18 images and bring the stack up. On a cold Premium VPS, docker compose up -d finished in 41 seconds once the images were pulled.
docker compose pull -qdocker compose up -dStep 06 — Open the admin panel
Confirm every container is up, then open https://mail.yourdomain.com/admin and log in with admin / moohoo. Change that password immediately, then add your domain (Add domain and restart SOGo) and create your first mailbox.
docker compose psCommon issues
Field-tested notes from the install above.
- CentOS Stream isn't supported. Mailcow's tested list covers Debian 11–13, Ubuntu 22.04 and newer, and AlmaLinux or Rocky 9. is*hosting's CentOS 9 checkout maps to CentOS Stream, so pick Ubuntu 24.04 instead.
- Memory is the real floor. Mailcow documents a 6 GB floor (with swap) and recommends 8 GB once you're past a handful of users. is*hosting VPS run without swap, so plan for the full 8 GB in real RAM — ClamAV and the full-text search indexer are hungry. Below 8 GB there's no headroom, which is why Premium is the entry plan.
- Port 25 may be blocked elsewhere. Outbound port 25 works on is*hosting Premium, confirmed by a real send. On lower tiers or other hosts, confirm with support first — many providers block port 25 account-wide by default.
- The DKIM record is a manual DNS step. Mailcow generates a 2048-bit DKIM key per domain, but you add it to DNS by hand. A 2048-bit value exceeds DNS's 255-character limit, so split it into two quoted chunks in the same TXT record.
- First visit shows a certificate warning. The stack starts with a self-signed 'snake-oil' certificate; acme-mailcow issues the real Let's Encrypt certificate a minute or two after startup, and the warning goes away.
- Don't rely on ufw or firewalld. Mailcow publishes its ports through Docker, which bypasses the INPUT chain. To restrict a port, use the DOCKER-USER iptables chain; keep ufw for SSH. And change the default admin password (moohoo) before anything else.