1. git clone https://github.com/modoboa/modoboa-installer

  2. cd modoboa-installer

  3. ./run.py --stop-after-configfile-check domain.com

  4. nano installer.cfg

  5. Add the folloing to installer.cfg

     [database]
     engine = mysql
     host = 127.0.0.1
     install = true