Add the following lines to the Apache config file: Scroll down the page and uncomment (or add if it's missing) the following lines. Next we need to configure the Apache config file. :Īlias /media/ /srv/modoboa/instance/media/Īlias /sitestatic/ /srv/modoboa/instance/sitestatic/ Here is the file I created in the /etc/apache2/sites-available directory and named mail. Next we need to create an Apache config file for mail. The process can be long, feel free to take a coffee and come back later )Ĭongratulations! You can enjoy Modoboa at (admin:password) Modoboa automx amavis clamav dovecot razor postfix postwhite spamassassin uwsgi radicale opendkim Your mail server will be installed with the following components: If all goes well, the completed installation should look similar to the following:īefore you start the installation, please make sure the following DNS records exist for domain '': If you have problems with the installation, rerun the script with the debug option: Next we'll re-run the installation routine using -interactive. Make the desired changes and save the file. Scroll down and change the instruction to install nginx to false. If you want to use MariaDB instead of postgres, change the engine type under database to mysql. We will install a Let's Encrypt certificate manually later. Leave the certificate type to self-signed. The default contents include the following: installer.cfg file allows you to customize certain elements of the installation. You'll get a warning that the installer.cfg file was not found so a new one was created. $ sudo apt-get install python-virtualenv python-pip The installation script is available from GitHub. $ sudo apt-get install libapache2-mod-wsgi įirst install mod_wsgi then restart Apache Also, make sure DNS MX record is already configured with mail. The following instructions assume a fresh Ubuntu 18.04 with Apache already installed. Since the installation script installs Nginx by default, a few modifications to the script file are needed. I decided my website would be best served with Apache alone, though I still wanted to use Modoboa as my email server. Still, if your web traffic is low, the performance gains by using Nginx is negligible. The key advantage to using Nginx is it commands less system resources due to its architecture. Nginx is best for static content and Apache is better for dynamic content (like php). The Modoboa install script installs the Nginx web server by default. The easiest way is to install Modoboa is by using an installation script available on GitHub. Modoboa is an excellent way to simplify the installation, configuration, and ongoing maintenance of an email server.
0 Comments
Leave a Reply. |