Mailcow

Mailcow

One-click VPS application

Free Open Source

A self-hosted email server platform for managing mail domains, users, mailboxes, and aliases on your own VPS. Access webmail, calendars, and contacts through an integrated environment, with tools for spam filtering, antivirus protection, and secure connections. Centralized administration makes it easier to maintain a private email service and control your mail data.

Mailcow — interface preview
Time
30 min
OS
AlmaLinux 9, 10 Debian 12, 13 Ubuntu 24.04, 26.04
RAM
4 GB
Disk
40 GB

Information

Mailcow is an open-source mail server platform that lets you run a secure, modern email system on your own server. With its intuitive web interface, you can manage mail domains, users, mailboxes, aliases, calendars, and anti-spam features—all in one place. mailcow is ideal for businesses and individuals who want privacy, reliability, and greater control over their email.

Core Features

  • Modern web interface: manage mail domains, users, and mailboxes with an easy-to-use control panel.
  • Anti-spam and antivirus: built-in protection against spam, viruses, and phishing emails.
  • Multiple domain support: host multiple domains, mailboxes, and aliases on one server, subject to available resources.
  • Calendars and contacts: integrated CalDAV and CardDAV for calendar and contact sync.
  • Groupware features: shared mailboxes, global address lists, and collaborative tools.
  • Automatic SSL certificates: easy management of secure connections with Let’s Encrypt.
  • Backup and restore: built-in backup tools to keep your data safe and easily recoverable.
  • Self-hosted and open-source: deploy mailcow on your own server for privacy and total control.

Deployment Features

  • Installed software:
    • Docker CE
    • Docker Compose
  • Used containers:
    • docker.io/robbertkl/ipv6nat
    • ghcr.io/mailcow/watchdog
    • ghcr.io/mailcow/acme
    • ghcr.io/mailcow/nginx
    • docker.io/mcuadros/ofelia
    • ghcr.io/mailcow/rspamd
    • ghcr.io/mailcow/dovecot
    • ghcr.io/mailcow/postfix
    • ghcr.io/mailcow/phpfpm
    • docker.io/redis
    • docker.io/mariadb
    • ghcr.io/mailcow/clamd
    • ghcr.io/mailcow/dockerapi
    • ghcr.io/mailcow/unbound
    • ghcr.io/mailcow/netfilter
    • ghcr.io/mailcow/olefy
    • ghcr.io/mailcow/sogo
    • docker.io/memcached
  • Open ports:
    • 80, 443 – Web access (HTTP/HTTPS)
    • 25 (SMTP), 465 (SMTPS), 587 (SMTP Submission)
    • 993 (IMAPS), 995 (POP3S), 143 (IMAP), 110 (POP3)
    • 4190 – Sieve mail filtering (ManageSieve)
  • Files path: /opt/mailcow-dockerized
Note:

If your server has less than 3 GB RAM, the following components will be automatically disabled to ensure stable operation:

  • ClamAV — an antivirus scanner for email attachments. It protects mailboxes from malware but requires significant RAM and CPU resources.
  • Flatcurve (FTS Engine) — enables full-text search in mailboxes, but also uses considerable system memory.

Getting Started After Mailcow Deployment

After completing your payment, you will receive an email at the address provided during registration notifying you that your server is ready. This email will include the IP address of your VPS and login credentials to access the Mailcow web interface:

  • Link: Provided in your deployment email
  • User: Provided in your deployment email
  • Password: Provided in your deployment email

To access Mailcow, log in with your administrator account. Enter your username and password on the login page to securely manage your server settings.

Screenshot of interface

Initial Setup

After logging into Mailcow, you’ll see a dashboard with key server stats, resource usage graphs, and a list of active mail services and containers. The side and top menus provide fast access to all email server management tools — everything is grouped for easy navigation and daily administration:

Screenshot of interface

  1. Dashboard: Overview of server status, CPU/memory/disk usage, uptime, and version info.
  2. System & Containers: Monitor and manage all mailcow services running in Docker containers.
  3. Resource graphs: Real-time charts for CPU and memory usage, helping you spot load spikes or issues.
  4. Mail services: See the current status of all essential mailcow components: SMTP, IMAP, webmail, spam filter, antivirus, and more.
  5. Logs & events: Access server and container logs for troubleshooting and monitoring.
  6. GUID & license: Unique server identifier and license status, helps with updates and support.
  7. Server info: Hostname, architecture, time zone, IP check settings, and mailcow version.
  8. Service actions: Start, stop, or restart individual containers and services directly from the dashboard.
Note:

Detailed information on the main Mailcow settings can be found in the developer documentation.

Updating Mailcow

Before updating mailcow, back up your data and review the release notes. An update may replace multiple containers, and data preservation depends on persistent volumes and following the correct procedure. You can learn about new releases on the official releases page.

Commands for updating Mailcow:

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

If necessary, the update script will ask how to proceed. Merge errors will be reported, and some minor conflicts may be resolved automatically in favor of the mailcow-dockerized repository code.

Update options
# Check for updates and show changes
./update.sh --check

# Do not start mailcow after applying an update
./update.sh --skip-start

# Skip ICMP Check to public DNS resolvers (use if you've blocked any ICMP connections to your mailcow machine)
./update.sh --skip-ping-check

# Switch your mailcow updates to the unstable (nightly) branch.
./update.sh --nightly

# Switch your mailcow updates to the stable (master) branch. Default unless you changed it with --nightly.
./update.sh --stable

# Switch your mailcow updates to the legacy branch.
./update.sh --legacy

# Force update (unattended, but unsupported, use at your own risk)
./update.sh --force

# Run garbage collector to cleanup old image tags and exit
./update.sh --gc

# Update with merge strategy option "ours" instead of "theirs". Will solve conflicts in favor of your local changes (should be avoided).
./update.sh --ours

# Don't update, but prefetch images and exit
./update.sh --prefetch

Opening SMTP Ports

For security reasons, outgoing TCP ports (25, 465, and 587) are blocked by default on all VPS servers. This measure aims to prevent spam distribution. To lift the block, follow these steps:

  1. Register your domain zone. The A-record for your domain must point to your server’s IP address.
  2. Submit a request to technical support specifying that you need to open outgoing SMTP ports for sending email and the domain (or subdomain) from which it will be sent.
  3. After analyzing your domain name, we will make a decision on opening the SMTP ports and notify you.