Need help with modoboa-installer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

183 Stars 93 Forks MIT License 281 Commits 39 Opened issues


An installer for Modoboa

Services available


Need anything else?

Contributors list


|travis| |codecov|

An installer which deploy a complete mail server based on Modoboa.

.. warning::

This tool is still in beta stage, it has been tested on:

  • Debian Buster (10) / Bullseye (11)
  • Ubuntu Bionic Beaver (18.04) and upper
  • CentOS 7

.. warning::

partition must be mounted without the

.. note::

The server (physical or virtual) running Modoboa needs at least 2GB of RAM in order to compile the required dependencies during the installation process. Passwords should not contain any special characters as they may cause the installation to fail. It's important to set a FQDN before, otherwise the installation will break.


$ git clone $ cd modoboa-installer $ sudo python3


is not installed on your system, please install it.

A configuration file will be automatically generated the first time you run the installer, please don't copy the

file manually.

The following components are installed by the installer:

  • Database server (PostgreSQL or MySQL)
  • Nginx and uWSGI
  • Postfix
  • Dovecot
  • Amavis (with SpamAssassin and ClamAV)
  • automx (autoconfiguration service)
  • OpenDKIM
  • Radicale (CalDAV and CardDAV server)

If you want to customize configuration before running the installer, run the following command::

$ ./ --stop-after-configfile-check

An interactive mode is also available::

$ ./ --interactive

Make your modifications and run the installer as usual.

By default, the latest Modoboa version is installed but you can select a previous one using the


$ sudo ./ --version=X.X.X

.. note::

Version selection is available only for Modoboa >= 1.8.1.

You can also install beta releases using the


$ sudo ./ --beta

If you want more information about the installation process, add the

option to your command line.

Upgrade mode

An experimental upgrade mode is available.

.. note::

You must keep the original configuration file, ie the one used for the installation. Otherwise, you won't be able to use this mode.

You can activate it as follows::

$ sudo ./ --upgrade

It will automatically install latest versions of modoboa and its plugins.

Change the generated hostname

By default, the installer will setup your email server using the following hostname:

. If you want a different value, generate the configuration file like this::

$ ./ --stop-after-configfile-check

Then edit

and look for the following section::

[general] hostname = mail.%(domain)s


by the value you want to use and save your modifications.

Finally, run the installer without the


Let's Encrypt certificate

.. warning::

Please note this option requires the hostname you're using to be valid (ie. it can be resolved with a DNS query) and to match the server you're installing Modoboa on.

If you want to generate a valid certificate using

Let's Encrypt
_, edit the
file and modify the following settings::

[certificate] generate = true type = letsencrypt

[letsencrypt] email = [email protected]

Change the

setting to a valid value since it will be used for account recovery.

.. |travis| image:: :target: .. |codecov| image:: :target:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.