mailcow needs a KVM VPS with at least 6 GiB of RAM plus 1 GiB of swap, 20 GiB of disk before any mail, a 64-bit CPU, its own IPv4 address with a matching PTR record, and outbound port 25 open. On Debian 13 the install is four steps from the official docs (Docker, git clone, ./generate_config.sh, docker compose up -d) and took us under two minutes of waiting on 23 November 2026. This page lists every requirement with its source, shows how to check each one before you pay for a month, and tells you which of our KVM VPS and VDS plans fits by RAM.
Quick answer: will this VPS run mailcow?
- Virtualisation is KVM (or ESX, Hyper-V). Not OpenVZ, Virtuozzo or LXC.
- RAM is 6 GiB or more, with 1 GiB of swap. 8 GiB for about 5 to 10 users.
- Outbound port 25 connects:
nc -4 -vz -w 5 gmail-smtp-in.l.google.com 25must not time out.- The IPv4 address is yours alone, is not on a blocklist, and its PTR record can be set to
mail.YOUR_DOMAIN.- Nothing else listens on ports 25, 80, 110, 143, 443, 465, 587, 993, 995 or 4190.
mailcow installs fine on a server that fails lines 3 and 4, and then nobody receives your mail. Fix those with the provider first.
Key facts, checked on 23 November 2026:
- Official minimum: CPU 1 GHz, RAM "Minimum 6 GiB + 1 GiB swap (default config)", disk "20 GiB (without emails)", architecture x86_64 or ARM64 (mailcow: Prepare your system).
- The same page says not to install mailcow on "OpenVZ, LXC or other container platforms", and that "KVM, ESX, Hyper-V and other full virtualization platforms are supported".
- The current release is 2026-11b of 19 November 2026 (mailcow releases). In our test it idled at 2,671 MB of RAM as shipped and 1,703 MB with ClamAV and full-text search switched off.
- On RS Computers, outbound port 25 is closed on a new VPS and opened on request through Telegram. The PTR record is set in the client area, or by us on request.
This page is about the server under mailcow. Whether Gmail and Outlook then accept your mail (SPF, DKIM, DMARC, warm-up) is covered in our self-hosted mail server guide, and if 6 GiB is more than you want to rent, Stalwart vs mailcow compares a lighter server.
mailcow requirements: what the docs ask for and what we measured
| Requirement | Official figure | Our test, mailcow 2026-11b |
|---|---|---|
| RAM | Minimum 6 GiB + 1 GiB swap; 8 GiB recommended for about 5 to 10 users | 2,671 MB in use at idle, no mailboxes |
| RAM, ClamAV and search off | SKIP_CLAMD=y and SKIP_FTS=y are the documented switches; no figure given | 1,703 MB in use at idle |
| Disk | 20 GiB without emails | 4.298 GB of images, 413.2 MB of volumes after first start |
| CPU | 1 GHz, x86_64 or ARM64 | Every container at or below 0.42% of one core at idle |
| Operating system | Debian 11 to 13, Ubuntu 22.04+, AlmaLinux 8/9, Rocky 9 | Debian 13.7, kernel 6.12 |
| Virtualisation | KVM, ESX, Hyper-V. Not OpenVZ, Virtuozzo, LXC | See "How we tested": our lab is the unsupported kind |
| Docker | Engine 24.0.0+, Compose 2.0+, from Docker, not from the distribution | Engine 29.10.0, Compose v5.8.0 |
The official figures are from the system requirements page. It also explains where the memory goes on a busy server: "A single SOGo worker can acquire ~350 MiB RAM before it gets purged", a default configuration starts 20 of them, and a company with 15 ActiveSync phones and about 50 concurrent IMAP connections "should plan 16 GiB RAM".
mailcow minimum RAM: why 6 GiB when it idles at 2.7 GB?
An empty mailcow uses less than half of its documented minimum. The rest is working room for SOGo webmail workers, mail scanning and database caches. These are the biggest containers five minutes after the first start, from docker stats:
clamd-mailcow-1 955.9MiB / 6GiB
ofelia-mailcow-1 294.3MiB / 6GiB
sogo-mailcow-1 241.1MiB / 6GiB
rspamd-mailcow-1 221.9MiB / 6GiB
mysql-mailcow-1 124.2MiB / 6GiB
dockerapi-mailcow-1 64.39MiB / 6GiB
ClamAV, the virus scanner, holds 956 MiB by itself. That matches our earlier runs: on 18 October 2026, mailcow 2026-09a idled at 2,408 MB in a 3 GB container (ClamAV 958 MiB) and at 1,669 MB with ClamAV off, as measured in the Stalwart vs mailcow test. Several releases later the numbers have barely moved, so plan on about 2.5 GB before the first user logs in.
In that October test the default mailcow, squeezed into 3 GB, slowed down badly under load, so treat 6 GiB as a real floor. For other software on the same server, see our RAM requirements for self-hosted apps.
Running mailcow with less RAM: ClamAV and search off
The docs name two switches: "ClamAV and Flatcurve (FTS Engine) can be greedy with RAM. You may disable them in mailcow.conf". Flatcurve is the full-text search index for mail bodies. We set both and restarted:
# as root, in /opt/mailcow-dockerized
sed -i "s/^SKIP_CLAMD=n/SKIP_CLAMD=y/; s/^SKIP_FTS=n/SKIP_FTS=y/" mailcow.conf
docker compose up -d
Docker recreated four containers (clamd, php-fpm, dovecot, watchdog) and RAM in use fell from 2,671 MB to 1,703 MB. Rspamd still filters spam, but attachments are no longer scanned for viruses and searching inside message text gets slower. generate_config.sh offers to disable ClamAV by itself only when the server has 2.5 GiB or less. Anything under 6 GiB stays below the documented minimum, whatever you switch off.
Which VPS plan fits mailcow?
| Plan | RAM / disk | mailcow fit |
|---|---|---|
| VPS Nano, VPS Micro | 1 GB / 20 GB, 2 GB / 40 GB | No. Far below the minimum. Use Stalwart on these. |
| VPS Mini | 4 GB / 80 GB NVMe | Only with ClamAV off, for a handful of mailboxes, and below the documented minimum. |
| VDS Small | 8 GB / 240 GB NVMe | The standard choice: mailcow as shipped, about 5 to 10 users per the docs. |
| VDS Medium | 16 GB / 480 GB NVMe | An office with phones on ActiveSync; the docs plan 16 GiB for 15 phones and about 50 IMAP connections. |
| VDS Large | 32 GB / 960 GB NVMe | Many domains or years of large mailboxes (our judgement, not a documented figure). |
All six plans are KVM virtual machines in Amsterdam, Dublin or Prishtina, each with its own IPv4 and IPv6 address. VPS plans share their vCPUs and VDS plans have dedicated vCPUs. Our Debian 13 template already has a 1 GB swap partition, which covers the swap half of the minimum.
The mailcow VPS checklist: KVM, clean IPv4, PTR and port 25
Is it KVM?
# as root
systemd-detect-virt
A KVM server answers kvm. Our lab container answered lxc, one of the platforms the docs rule out.
mailcow port 25: test outbound before anything else
Mail servers hand mail to each other on port 25, and the docs list "Postfix, TCP, 25, 465, Any" under required outgoing connections. Test it against a public mail server:
# as root
apt install -y netcat-openbsd
nc -4 -vz -w 5 gmail-smtp-in.l.google.com 25
This is what a closed port looks like. It is the real answer from our lab, where outbound 25 is closed:
nc: connect to gmail-smtp-in.l.google.com (142.250.102.27) port 25 (tcp) timed out: Operation now in progress
An open port answers within a second with a line ending in succeeded!. On RS Computers a new VPS starts with outbound port 25 closed; message us on Telegram with the server's IP address and we open it, then run the test again. With a provider that will not open it, mailcow can receive mail but cannot deliver any.
mailcow rDNS: the PTR record
The mailcow DNS page puts it in one line: "Make sure that the PTR record of your IP address matches the FQDN of your mailcow host" (mailcow: DNS setup). A PTR record (reverse DNS, rDNS) maps the IP address back to a name, and only the owner of the IP can set it. Google requires valid forward and reverse DNS from every sender (Google sender guidelines). On RS Computers you set the PTR for your IPv4 address in the client area, or ask us on Telegram. Check it from the server:
# as root
apt install -y bind9-dnsutils
dig +short -x YOUR_IPV4
It must print mail.YOUR_DOMAIN. and nothing else.
Is the IPv4 address on a blocklist?
A VPS address had earlier users. DNS blocklists (DNSBLs) are queried by writing the IP backwards in front of the list's zone. For 203.0.113.10:
# as root; an empty answer means "not listed"
dig +short 10.113.0.203.b.barracudacentral.org
dig +short 10.113.0.203.bl.spamcop.net
dig +short 10.113.0.203.psbl.surriel.com
dig +short 10.113.0.203.zen.spamhaus.org
Blocklists keep 127.0.0.2 as a permanent test entry (RFC 5782), so we queried that first to see what "listed" looks like. Barracuda, SpamCop and PSBL each answered 127.0.0.2, and for the clean address 8.8.8.8 all three answered nothing.
Spamhaus answered 127.255.255.254 for both, from the server's default resolver and through 1.1.1.1. That is not a listing. Spamhaus defines the code as "Query via public/open resolver/generic unattributable rDNS" and returns no data to such queries (Spamhaus return codes). So for Spamhaus, use the web form at check.spamhaus.org.
mailcow ports: what must be open
From the "Incoming Ports" table in the mailcow docs. All are TCP. After our install, ss -tlpn showed all ten listening on IPv4 and IPv6.
| Port | Service | Container | Who connects |
|---|---|---|---|
| 25 | SMTP | postfix-mailcow | Other mail servers delivering to you |
| 465 | SMTPS | postfix-mailcow | Your mail apps, sending |
| 587 | Submission | postfix-mailcow | Your mail apps, sending (STARTTLS) |
| 143 | IMAP | dovecot-mailcow | Mail apps, reading (STARTTLS) |
| 993 | IMAPS | dovecot-mailcow | Mail apps, reading |
| 110 | POP3 | dovecot-mailcow | Old mail apps |
| 995 | POP3S | dovecot-mailcow | Old mail apps |
| 4190 | ManageSieve | dovecot-mailcow | Apps that edit mail filters |
| 80, 443 | HTTP(S) | nginx-mailcow | Browsers, webmail, ActiveSync, Let's Encrypt |
The docs warn against ufw and firewalld: "As mailcow runs dockerized, INPUT rules have no effect on restricting access to mailcow." Filter in the DOCKER-USER chain instead; our Docker on a VPS guide explains why.
DNS records mailcow needs
For example.org served by mail.example.org at 203.0.113.10, as listed on the mailcow DNS page:
| Name | Type | Value | Needed |
|---|---|---|---|
| A | 203.0.113.10 | Before first start (certificate) | |
| @ | MX | 10 mail.example.org. | To receive mail |
| autodiscover, autoconfig | CNAME | mail.example.org. | So mail apps configure themselves |
| 203.0.113.10 | PTR | mail.example.org. | Set at the host, not at your registrar |
| @ | TXT (SPF) | "v=spf1 mx a -all" | To send mail |
| dkim._domainkey | TXT (DKIM) | Key generated in the mailcow UI | To send mail |
| _dmarc | TXT (DMARC) | "v=DMARC1; p=..." | To send mail |
Add an AAAA record only when the IPv6 address has its own PTR. The docs' DMARC example uses p=reject; why to start softer, and how to read the reports, is in the DNS section of our mail server guide.
Install mailcow on Debian 13, step by step
These are the commands from the official installation page, run as root on a fresh Debian 13. Put your SSH key on the server first (Debian 13 security checklist).
1. Packages and a free-port check
# as root
apt update
apt install -y git openssl curl gawk coreutils grep jq
ss -tlpn | grep -E -w '25|80|110|143|443|465|587|993|995|4190'
timedatectl status
ss must print nothing. If it shows exim4 on port 25, remove it; the docs warn that Exim can appear after a Debian 12 to 13 upgrade. timedatectl should say System clock synchronized: yes.
2. Docker from Docker
The docs are firm: "Use the latest available Docker Engine and not the version from your Linux distribution's package sources."
# as root
curl -sSL https://get.docker.com/ | CHANNEL=stable sh
systemctl enable --now docker
docker --version
docker compose version
The script finished in 12 seconds for us and printed Docker version 29.10.0, build fdd4b8e and Docker Compose version v5.8.0.
3. Clone and generate the configuration
# as root
umask 0022
cd /opt
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized
./generate_config.sh
The script asks for the mail server hostname (enter mail.YOUR_DOMAIN, not the bare domain), the time zone, and the branch (1, "stable updates"). On our server with IPv6 it reported Created /etc/docker/daemon.json with IPv6 settings. and restarted Docker. The result is mailcow.conf, readable by root only.
4. Pull and start
# as root, in /opt/mailcow-dockerized
docker compose pull
docker compose up -d
docker compose ps
The pull took 34 seconds and the start another 34. docker compose ps then listed 18 services as Up, from acme-mailcow to watchdog-mailcow, with clamd-mailcow and unbound-mailcow marked (healthy). Inside were Postfix 3.10.13, Dovecot 2.3.21.1, Rspamd 4.2.3, ClamAV 1.4.7 and SOGo 5.12.13.
5. First login
Open https://mail.YOUR_DOMAIN/admin and log in with the documented defaults, user admin and password moohoo. In our lab that login went straight to /admin/dashboard with no forced password change, so change it yourself in the first minute and add two-factor login. Then add your domain and a mailbox.
Our lab hostname had no DNS, so docker compose logs acme-mailcow said No A or AAAA record found for hostname mail.example.org, then Cannot validate any hostnames, skipping Let's Encrypt for 1 hour. After fixing DNS, run docker compose restart acme-mailcow.
mailcow backup and update
mailcow ships its own backup script, and the docs ask you not to copy it elsewhere (mailcow: Backup). We ran it on the fresh install:
# as root, in /opt/mailcow-dockerized
mkdir -p /opt/backup
MAILCOW_BACKUP_LOCATION=/opt/backup ./helper-scripts/backup_and_restore.sh backup all --delete-days 3
./update.sh --check
The backup took 8.8 seconds and wrote a mailcow- folder named after the date and time, holding mailcow.conf and six archives: backup_vmail, backup_crypt, backup_mariadb, backup_redis, backup_rspamd and backup_postfix, each .tar.zst. Empty, it was 4.6 MB. Copy that folder off the server; our restic off-site backup guide shows one way.
./update.sh --check printed No updates available. When it reports new code, back up, then run ./update.sh. For major releases the script links the release notes and asks before it continues, and the docs say a rollback is possible "only together with a backup of the database" (mailcow: Update). November 2026 alone brought three releases, two of them security updates, so check weekly.
How we tested
One Debian 13.7 system container (kernel 6.12, 6 GiB memory limit, 8 cores of an AMD EPYC 7742, no swap) on our test server, on 23 November 2026. Docker 29.10.0 and Compose v5.8.0 from get.docker.com, mailcow 2026-11b from the master branch, hostname mail.example.org with no public DNS. "RAM in use" is the used column of free -m for the whole container, read about five minutes after start and again two and a half minutes after switching ClamAV and search off.
What we did not test
- Our lab is an LXC-type container, which mailcow does not support. The stack started and all 18 containers stayed up, but that proves nothing for production. Run mailcow on KVM.
- No mail left or entered the lab: outbound port 25 was closed there and the hostname had no DNS. So no Let's Encrypt certificate, no delivery to Gmail or Outlook, and no successful port 25 output of our own.
- We did not test a restore, an update between releases, or mailcow under load on this release. The swap half of the minimum was not present in the lab.
- The 4 GB row in the plan table rests on idle measurements in larger containers, not on a 4 GB server.
Frequently asked questions
What are the minimum requirements for mailcow?
The mailcow documentation asks for a 1 GHz CPU, at least 6 GiB of RAM plus 1 GiB of swap, 20 GiB of disk without emails, and an x86_64 or ARM64 system on full virtualisation such as KVM. It recommends 8 GiB of RAM for about 5 to 10 users.
How much RAM does mailcow really use?
About 2.4 to 2.7 GB with no mailboxes. On 23 November 2026, mailcow 2026-11b used 2,671 MB at idle in our Debian 13 test, of which ClamAV held 956 MiB. With ClamAV and full-text search switched off it used 1,703 MB.
Can mailcow run on OpenVZ or LXC?
Not supported. The mailcow docs say not to install it on OpenVZ, LXC or other container platforms, and list KVM, ESX and Hyper-V as supported. Run systemd-detect-virt on the server: a KVM VPS answers kvm. Every RS Computers VPS and VDS is KVM.
Which ports does mailcow need open?
Inbound TCP 25, 465 and 587 for SMTP, 143 and 993 for IMAP, 110 and 995 for POP3, 4190 for ManageSieve, and 80 and 443 for the web interface and certificates. Outbound, port 25 must be open or the server cannot deliver mail to other providers.
How do I check that outbound port 25 is open on my VPS?
Run nc -4 -vz -w 5 gmail-smtp-in.l.google.com 25 on the server. A line ending in succeeded! means open; timed out after five seconds means the provider blocks it. On RS Computers, outbound port 25 is closed on a new VPS and opened on request through Telegram.
Can I rent a VPS for mailcow without identity verification?
At RS Computers you order with an email address and pay by crypto or bank transfer. Our acceptable use policy forbids spam, and a mail server is held to it like any other server. Other providers set their own signup rules, so read theirs before ordering.
Sources
All checked on 23 November 2026.
- mailcow docs: Prepare your system
- mailcow docs: DNS setup
- mailcow docs: Installation
- mailcow docs: Backup and Update
- mailcow-dockerized releases on GitHub
- Spamhaus: return codes for public mirror queries
- RFC 5782: DNS Blacklists and Whitelists
- Google: Email sender guidelines
Need a hand?
For mailcow as shipped, the plan that matches the documentation is VDS Small with 8 GB of RAM; an office with phones on ActiveSync belongs on VDS Medium.
- Pick a KVM VPS or VDS with NVMe in Amsterdam, Dublin or Prishtina on the VPS plans page, or go straight to VDS plans with dedicated vCPUs.
- Before installing, message us on Telegram with your server's IP address to open outbound port 25, and set the PTR in the client area.
- Want it built for you? Custom offers, custom setups and systems built for you are quoted per job: write on Telegram or to info@rscomputers-ks.com.