EN · $ USD
Business Email and Mail Servers

What Is mailcow? The Benefits of Running Your Own Mail Server

6 min read Updated: Sunucu Atlas technical team

In short

mailcow is mail server software that packages open-source components such as Postfix, Dovecot, SOGo, Rspamd and ClamAV in Docker containers and manages them from a single web interface. It needs no per-account or per-domain license; the only limits are the server's disk and CPU capacity. It suits agencies managing many domains, companies with dozens of users, and anyone who wants to manage their own IP reputation.

In this guide
  1. What components make up mailcow?
  2. What can you do in the admin panel?
  3. mailcow installation requirements
  4. DNS records required for mailcow
  5. Updates and backups
  6. Benefits of running your own mail server
  7. Who is mailcow right for, and who is it not?
  8. Next step: use mailcow without the setup work

mailcow is an open-source software suite that lets you run your own business mail server. Officially called "mailcow: dockerized", it runs every part a mail server needs (sending, receiving, webmail, spam filtering, virus scanning, SSL) in separate Docker containers and lets you manage them all from one admin panel. There are no per-account or per-domain license fees; only your server's resources determine how many mailboxes you can create. This article covers mailcow's components, its installation requirements, and who it makes sense for.

What components make up mailcow?

A mail server is not a single program; it is several connected services working together. mailcow configures these services for you and ships them in compatible versions.

ComponentRole
PostfixMTA (Mail Transfer Agent). Sends mail out and accepts mail from other servers on port 25.
DovecotStores mailboxes and provides IMAP/POP3 access. Sieve filters and quota management also run through Dovecot.
SOGoWebmail and groupware interface. Besides reading mail in the browser, it offers calendars and contacts, and syncs with phones over CalDAV and CardDAV.
RspamdSpam filter. Scores incoming mail, signs outgoing mail with DKIM, and learns from user feedback.
ClamAVScans attachments for viruses and malware.
NginxWeb server for the admin panel and webmail.
MariaDB and RedisStore domain, account and settings data, plus Rspamd statistics.
ACME clientAutomatically obtains and renews SSL certificates through Let's Encrypt.
UnboundLocal DNS resolver. Used so blacklist lookups work reliably.

Each of these components is mature, widely used open-source software on its own. mailcow's value lies in wiring them together correctly and keeping them all up to date with a single update script.

What can you do in the admin panel?

mailcow's web interface lets you manage the mail server without touching the command line:

  • Add domains: Define an unlimited number of domains and give each its own quota and account limit.
  • Manage mailboxes and aliases: Create accounts, set quotas, and create aliases and forwarders.
  • Generate DKIM keys: Generates a key for each domain in one click and shows the TXT record you need to add to DNS.
  • Quarantine: Lets users review mail held as spam themselves.
  • Domain administrators: You can give a client an account that can manage only their own domain. This feature matters for agencies.
  • Security: Two-factor authentication, app passwords and built-in protection against brute-force login attempts.

You will find step-by-step instructions for adding domains and mailboxes in our adding domains and mailboxes in mailcow guide.

mailcow installation requirements

mailcow's official documentation recommends about 6 GB of RAM plus swap space for the default configuration. ClamAV and Rspamd use most of the memory; with less memory, services can become unstable. The basic requirements are:

  • A server using full virtualization such as KVM and a current Linux distribution
  • Docker and Docker Compose
  • A static IPv4 address and a configurable PTR (reverse DNS) record for that IP
  • Port 25 open for both outbound and inbound traffic

The main ports mailcow uses:

25   SMTP (server-to-server delivery)
465  SMTPS (sending over SSL)
587  Submission (sending with STARTTLS)
143  IMAP (STARTTLS)
993  IMAPS
110  POP3 (STARTTLS)
995  POP3S
4190 ManageSieve
80   HTTP (ACME validation)
443  HTTPS (admin panel and SOGo)

For installation and version details, the authoritative source is always the official mailcow documentation.

DNS records required for mailcow

Even with the server ready, mail delivery depends on DNS records. If your server is named mail.firmaniz.com and its IP address is 203.0.113.10, the basic records look like this:

mail.firmaniz.com.        A      203.0.113.10
firmaniz.com.             MX 10  mail.firmaniz.com.
firmaniz.com.             TXT    "v=spf1 mx -all"
_dmarc.firmaniz.com.      TXT    "v=DMARC1; p=quarantine; rua=mailto:dmarc@firmaniz.com"
dkim._domainkey.firmaniz.com. TXT "v=DKIM1; k=rsa; p=..."
autodiscover.firmaniz.com. CNAME mail.firmaniz.com.
autoconfig.firmaniz.com.  CNAME  mail.firmaniz.com.

You copy the DKIM record's p= value from Configuration > ARC/DKIM keys in the mailcow admin panel. The autodiscover and autoconfig records let Outlook and Thunderbird find the server settings automatically with just the user's email address and password. In addition, the server IP's PTR record must point to mail.firmaniz.com; this record is set not in your domain's DNS panel but by the provider that owns the IP.

For every new domain you add to mailcow, you need to add MX, SPF, DKIM and DMARC records to that domain's DNS as well. The panel offers a DNS check screen showing which records are missing next to each domain; for agencies, this screen saves a lot of time when adding client domains.

Updates and backups

Your own mail server is your responsibility; you must not skip two routines. mailcow updates run from a single script:

cd /opt/mailcow-dockerized
./update.sh

mailcow has its own helper script for backups. The command below backs up all mailboxes, the database and the configuration to the directory you specify:

cd /opt/mailcow-dockerized
MAILCOW_BACKUP_LOCATION=/yedek ./helper-scripts/backup_and_restore.sh backup all

Do not leave this backup on the same server; send it regularly to storage outside the server.

Benefits of running your own mail server

No account or domain limits

With shared email hosting, the number of accounts and total storage are capped even as plans grow. In mailcow, creating 10 domains and 300 mailboxes needs no extra license; the only limits are disk space and CPU power. As your user count grows, the cost per account drops.

IP reputation under your control

On a shared mail server, another customer on the same IP sending spam can affect your mail too. On your own server you have your own IP address; only your sending determines its reputation. This comes with the responsibility of setting up the PTR record correctly. We explain this in our PTR (reverse DNS) record article.

A new IP address starts its reputation from zero. Ramping up sending volume gradually during the first weeks helps major providers recognize you and reduces temporary rejections.

Flexible filtering and large mailboxes

You set the Rspamd rules, quota policies and attachment size limit yourself. This flexibility matters for users who have kept archives for years and need 20-30 GB mailboxes.

Groupware with calendars and contacts

Thanks to SOGo, shared calendars, meeting invitations and shared contact lists run on the same server as your mail. Users can sync them with phone and desktop apps that support CalDAV and CardDAV. For companies that want team calendar sharing without buying an extra office suite subscription, this makes mailcow more than just a mail server.

Knowing where your data is stored

If the server is in Istanbul, all your correspondence is stored in a data center in Türkiye. For companies that want to keep correspondence containing personal data in the country under KVKK (Türkiye's Personal Data Protection Law), this is a clear advantage.

Who is mailcow right for, and who is it not?

SituationDoes mailcow make sense?
An agency managing email on dozens of client domainsYes, ideal thanks to the domain administrator feature
A company with 50 or more users and large archivesYes, the cost per account drops
A SaaS or e-commerce business that wants to manage its own IP reputationYes, you send transactional email from your own IP
A 3-5 person office with no technical staffNo, email hosting is less hassle
Sending bulk marketing newslettersNo, it puts your IP reputation at risk; send newsletters from separate infrastructure

You will find a detailed comparison of the two models and their tipping points in our article self-hosted mail server vs. email hosting.

Next step: use mailcow without the setup work

Installing mailcow from scratch requires Docker, DNS and port configuration. Sunucu Atlas mail server plans come with mailcow preinstalled: there are no account or domain limits, and they run in Istanbul with your own IP address, SOGo webmail, Rspamd spam filtering, ClamAV virus scanning, automatic SSL and root access. To start, SA-MAILSERVER-1, with 6 GB of RAM and a 250 GB NVMe disk, meets mailcow's recommended memory level and comfortably handles dozens of domains. If you have no technical team and a few accounts are enough, take a look at our email hosting plans.

Frequently asked questions

Is mailcow paid software?

mailcow is free, open-source software; there are no per-account or per-domain license fees. Your only cost is the server it runs on.

How much RAM does mailcow need?

The official documentation recommends about 6 GB of RAM plus extra swap space for the default configuration. ClamAV and Rspamd account for most of the memory use.

How many domains and accounts can I create with mailcow?

There is no limit in the software. In practice, the limit is set by the server's disk space, CPU power and your sending volume.

What is the difference between SOGo and Roundcube?

Both are webmail interfaces. SOGo also offers groupware features such as calendars and contacts alongside mail, and syncs them with phones over CalDAV/CardDAV.

Can I install mailcow on shared hosting?

No. mailcow requires Docker, root access and full access to port 25. You need a KVM-based virtual server or a mail server with mailcow preinstalled.

For this guide

Recommended plans

Sunucu Atlas mail servers come with mailcow preinstalled, no account or domain limits and your own IP address, so you can start managing unlimited domains right away without the setup work.

SA-MAILSERVER-1

mailcow
Recommended

6 GB RAM

$50.12/yr

+VAT

  • Processor2 CPU
  • Disk250 GB NVMe
  • LocationIstanbul
  • 1G Port
  • mailcow Pre-installed
  • No Account or Domain Limits
  • Your Own IP Address

SA-MAILSERVER-2

mailcow

8 GB RAM

$70.17/yr

+VAT

  • Processor4 CPU
  • Disk500 GB NVMe
  • LocationIstanbul
  • 1G Port
  • mailcow Pre-installed
  • No Account or Domain Limits
  • Your Own IP Address

SA-MAILSERVER-3

mailcow

12 GB RAM

$100.26/yr

+VAT

  • Processor6 CPU
  • Disk750 GB NVMe
  • LocationIstanbul
  • 1G Port
  • mailcow Pre-installed
  • No Account or Domain Limits
  • Your Own IP Address

Mail Server — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.