mailcow mailserver suite

News and notes

27. Dec 2015 - Hosted mailcow (SOGo) verfügbar

Für deutschsprachige Kunden bietet Servercow nun eine gehostete mailcow-Instanz an.

Mehr lesen.
12. Nov 2015 - mailcow 0.13.1 stable released
Link to release + changelog

Please also visit mailcows Wiki :-)!

If you encounter problems with Roundcube not finishing loading, please run:

sed -i '/X-Frame-Options DENY/d' /etc/apache2/sites-available/mailcow.conf && service apache2 reload

The new upgrade process will ask you for your MySQL root password.

What is mailcow?

mailcow is a mail server suite based on Dovecot, Postfix and other open source software, that provides a modern Web UI for administration.

  • Multi-SAN self-signed SSL certificate for all installed and supporting services
    • Let’s Encrypt optional
  • Webserver installation
    • Apache or Nginx (+PHP5-FPM)
  • SQL database backend, remote database support
    • MySQL or MariaDB
  • mailcow web UI
    • Add domains, mailboxes, aliases, set limits, monitor mail statistics, change mail server settings, create/delete DKIM records, share and create calendars/address books and more…
  • Postscreen activated and configured
  • STARTTLS and SMTPS support
  • The default restrictions used are a good compromise between blocking spam and avoiding false-positives
  • Incoming and outgoing spam and virus protection with FuGlu as pre-queue content filter; Heinlein Support spamassassin rules included; Advanced ClamAV malware filters
  • Sieve/ManageSieve (default filter: move spam to “Junk” folder, move tagged mail to folder “tag”)
  • Public folder support via control center
  • per-user ACL
  • Shared Namespace (per-user seen-flag)
  • Quotas
  • Roundcube
    • ManageSieve support (w/ vacation)
    • Attachment reminder (multiple locales)
    • Zip-download marked messages
See GitHub for more information and documentation.

Everybody loves screenshots!

mailcow 0.14


What do I need?

Debian Ubuntu

mailcow runs best on Debian 8.

Some Debian derivates like Ubuntu should work, too. Though we recommend to install mailcow on a clean Debian 8 installation.


How to install?

1. Get the latest stable release from GitHub:

cd ; wget -O - https://github.com/andryyy/mailcow/archive/v0.13.1.tar.gz | tar xfz -
cd mailcow*

2. Open and edit the configuration file:

nano mailcow.config

Empty configuration values are invalid.

Most configuration parameters do not need to be changed, please read the hints inside the file carefully.

sys_hostname Hostname without domain
sys_domain Domain name. "$sys_hostname.$sys_domain" equals to FQDN.
sys_timezone The timezone must be definied in a valid format (Europe/Berlin, America/New_York etc.)
conf_httpd Select wether to use Nginx ("nginx") or Apache2 ("apache2"). Nginx is default.
my_dbhost ADVANCED: Leave as-is ("localhost") for a local database installation. Anything but "localhost" or "127.0.0.1" is recognized as a remote installation.
my_mailcowdb, my_mailcowuser, my_mailcowpass SQL database name, username and password for use with Postfix. You can use the default values.
my_rcdb, my_rcuser, my_rcpass SQL database name, username and password for Roundcube. You can use the default values.
my_rootpw SQL root password is generated automatically by default. You can define a complex password here if you want to. Set to your current root password to use an existing SQL instance.
my_usemariadb Use MariaDB instead of MySQL. Only valid for local databases. Installer stops when MariaDB is detected, but MySQL selected - and vice versa.
mailcow_admin_user, mailcow_admin_pass mailcow administrator. Password policy: minimum length 8 chars, must contain uppercase and lowercase letters and at least 2 digits. You can use the default values.
inst_debug Sets Bash mode -x
inst_unattended An unattended installation is possible, but not recommended.

3. Run the installer:

./install.sh

How to upgrade?

Get the latest package from GitHub, don't edit any configuration files and just run:

./install.sh -u

mailcow auto-detects all values - except for your SQL root password - from your current installation.

If you don't want to confirm each step of the upgrade, use -U instead (mailcow >=0.14):

./install -U

When autodetection of your hostname and/or domain name fails, use the -H parameter to overwrite the hostname and/or -D to overwrite the domain name (mailcow >=0.14):

# FQDN: mx.example.org
./install -u -H mx -D example.org

How to uninstall?

Change to your extracted mailcow installation package.

- Just remove the basic components, but don't touch your database, mails and other important files:

bash misc/purge.sh

- Complete wipe, this is dangerous:

bash misc/purge.sh --all

de_flag Hosted mailcow (SOGo)

  • 20 Mailboxen
  • 20 GiB Speicher
  • 200 Aliasse
  • Live-Backups
Bestellen für 4,90€

We love open-source!

Download mailcow

mailcow is based on open-source software:

  • Postfix
  • Dovecot
  • Nginx/Apache2
  • Spamassassin
  • ClamAV
  • MariaDB/MySQL
  • OpenDKIM
  • Roundcube
  • SabreDAV
  • ...

Feel free to donate


KVM virtual machines for
mailcow @ servercow.de (DE)