Setup MailCow Server With Debian 11

- Advertisement -

So, today in this tutorial we will learn to install the MailCow server with Debian11. MailCow is an open-source mailing script developed on top of Dovecot, Postfix, SoGo, and other open-source applications. In addition, it has a modern web-based user interface for administering users as well as the server. Refer to this link for other email service articles.

Key Features

So, some of the key features of the server are:

  1. Sahred namedspace.
  2. Per user quota can be defined.
  3. Autoconfig for Thunderbird and autosync support.
  4. In addition, a Web UI to manage users, domain, accounts etc.
  5. Apache, NGINEX both web servers supported.
  6. MySQL/MongoDB database as backend.
  7. Spam protection using FuGlu and deault anti spam function.

Prerequisites and installation of MailCow

An updated Debian 11 machine. A server with 4 GB RAM, 40 GB Storage, Min Ci3 conf will work well.

So, update server, first.

# apt update 

Then, define hostname, our example will have mail.unixcop.local as the hostname.

After that, install git

# apt install git -y

So, change directory to opt and get the package.

# cd /opt

Then, install curl.

# apt install curl

After that, you need to define the hostname

# hostnamectl set-hostname mail.unixcop.local

Change directory to /opt

# cd /opt/

Download required package for Server installation, have a look.

# git clone

Change directory to downloaded package.

# cd mailcow-dockerized/

So, we need to install the docker package first, only after the mail server is installed.

# apt install docker-compose

Then, run installation script, download with Git.

# ./

Pull mailcow image. Use command below

# docker-compose pull

Now, we require to run the compose. Have a look.

# docker-compose up -d

Now the server is installed successfully, check your current IP address.

# ip addr | grep inet 

So, in our example scenario, the IP address is, browse server using https://<IP_ADDR>

The default username is admin and the password is moohoo

So, multiple settings can be managed here. Settings like Domains, Mailboxes are managed from this section.

Add domain first, for our example let’s assume FQDN will be mail.unixcop.local

After adding domain, move to the mail setup section. Add mailbox for the newly created domain name.

Define user’s email paraments, user quota, and password.

After the email address is created, time to log in to that email. For our example scenario URL is (Replace IP address with your own)

Finally, assign provided credentials and log in.

Congratulations, you have a fully functional Email server.


Considering lots of in-house mail servers, MailCow is perhaps the best Mail server for small enterprises. Here, admins can easily add domains, define mail accounts along with user quota.

For several applications like the printer email setup, Automated email generation for servers MailCow server can be useful. Email accounts are easy to configure for Thunderbird. Reports generation, automated alerts for some IoT projects can be a few examples of real-life applications of the server. Stay tuned for the next topic, have a great day.

- Advertisement -


Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook