Tested for Ubuntu 18.04
Requires an already setup Apache2 + LetsEncrypt + MariaDB
Install
webmail_php.zip
from (afterlogic.org/download/webmail-lite-php)[https://afterlogic.org/download/webmail-lite-php] mkdir /var/www/vhosts/webmail
mv webmail_php.zip /var/www/vhosts/webmail/
cd /var/www/vhosts/webmail
unzip webmail_php.zip
Setup Database
mysql
create database webmail;
grant all privileges on webmail.* to 'webmail'@'localhost' identified by "PASSWORD";
flush privileges;
exit;
Config Apache
/var/www/apache2.conf
Append:
# WebMailLite #######################################################
<VirtualHost *:80>
ServerName webmail.example.net
Redirect "/" "https://webmail.example.net/"
</VirtualHost>
<VirtualHost *:443>
ServerName webmail.example.net
DocumentRoot /var/www/vhosts/webmail/
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/webmail.example.net/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/webmail.example.net/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/webmail.example.net/chain.pem
<Location /data>
Require all denied
</Location>
</VirtualHost>
####################################################################
Config
https://webmail.example.net