Installation instructions
You can download the package of WebMail Lite from:
Unzip and upload the contents of the product package onto your web server. Let’s assume you’ve created a directory called webmail in the root of your web space (web root) and placed the package contents there. This way, you’ll be able to access the application through the web at the URL of the following kind: http://your_domain/webmail
Examples (assuming you wish to use webmail name for the target directory):
NB: It’s important to make sure data directory is writable by web server.
Typically, that’s achieved by changing files ownership to the system user webserver runs under. For example:
Alternately, you can try changing permissions recursively to 755 or 777:
Installing on Windows
Unzip and upload the contents of the product package onto your web server. Let’s assume you’ve created a folder called webmail in the root of your web space (web root) and placed the package contents there. This way, you’ll be able to access the application through the web at the URL of the following kind: http://your_domain/webmail
Examples (assuming you want to use webmail name for the target folder):
NB: It’s important to make sure data directory is writable by web server.
You can skip the following step if all of the below is true:
● you only have FTP access to your server;
● you do not have a web control panel (like WHM or Plesk) at all or it does not allow setting permissions;
● you have no other options to set permissions.
If all of the above is true (usually, shared hosting with preconfigured permissions), the permissions should be OK but if they are not and the hosting provider does not allow you to set them, you will need to contact their support to do this for you.
The following steps allow you to assign necessary permissions. We’re assuming this is done via Remote Desktop access.
If assigning the permissions doesn’t seem to have any effect, repeat the same steps, but instead of granting «Full Control» to Internet Guest Account (usually IUSR_. ) account, grant the same permission to Everyone user.
If your hosting control panel provides some kind of a file manager, i.e. a tool which shows you all files and folders and allows you to set set permissions for files and folders, you should set the same permissions as in case of Remote Desktop or direct access.
Also in case of IIS, it’s strongly recommended to relocate data folder out of web root for security reasons, see Protecting data directory documentation page for more infor.
Finalizing the installation
It is advised to run Compatibility test to check that server meets the requirements, and that data directory has correct permissions set.
Upon installing the product, you’ll need to configure your installation.
Redirecting to HTTPS
It is strongly recommended to run the product under https. If you run it under http, the majority of features will still be available, but some functionality aspects, such as authentication with Google account, won’t work.
To enable automatic redirect from http to https, set RedirectToHttps to true in data/settings/config.json file.
Protecting data directory
All configuration files of the application and user data are stored in data directory, so it’s important to protect data directory to make sure that users cannot access that directory over the Internet directly.
Why WebMail Lite PHP?
Fast and easy-to-use webmail front-end for your existing IMAP mail server, Plesk or cPanel.
Open Source and Free
Install it on your web servers for personal or commercial use, redistribute, integrate with other software, or alter the source code (provided that you contribute your changes back to the community). For free.
Full-featured
Minimalistic interface is combined with a rich feature set, no tradeoffs here. Built on the latest HTML5 and CSS3 technology.
Microsoft Office documents viewer
This feature uses online viewer provided directly by Microsoft website. Currently, the list of supported documents includes: doc, docx, docm, dotm, dotx, xlsx, xlsb, xls, xlsm, pptx, ppsx, ppt, pps, pptm, potm, ppam, potx, ppsm.
Authentication via external services
Users can add their Google, Facebook and Dropbox accounts to email accounts, which lets them log into WebMail Lite without having to enter email credentials.
Plugin framework and API for seamless integration
A set of developer tools lets you extend the application in many ways, including user interface adjustments, Single-Sign-On, and more.
Dual licensing
Available under AGPL for open source community, or under commercial license upon request.
Secure
Can run on a secure HTTPS server and communicate with a mail server over SSL connection.
OpenPGP
Encrypt, sign, decrypt and verify e-mails right in the browser. All the crypto takes place directly in the browser, neither PGP keys nor decrypted data are sent to the server.
Localizations
More than 30 languages, right-to-left interface support (for Hebrew and Arabic), date and time formats.
Need more?
Looking for commercial-grade support, regular bugfixes,
and premium features like mobile version, personal calendar,
multiple IMAP accounts per user (with Unified Inbox), and even more? 
Установка и настройка WebMail Lite на CentOS 8
Afterlogic WebMail Lite — веб-клиент для работы с почтой, написанный на PHP. Мы рассмотрим процесс его установки на свой сервер с CentOS 8 и настройки для подключения к внутреннему почтовому серверу. Подразумевается, что у нас уже настроен почтовый сервер. Инструкцию можно использовать для настройки данного почтового клиента как на выделенном сервере, так и на одном сервере с почтовым сервером.
Подготовка системы
1. В брандмауэре должны быть открыты порты для отправки запросов на веб-сервер. Это можно сделать командами:
* в данном примере мы откроем порты для http (80 порт) и https (443).
2. Устанавливаем wget и unzip командой:
dnf install wget unzip
3. Отключаем SELinux. Для этого вводим 2 команды:
* первая команда отключит разово SELinux; вторая — не даст ему запуститься после перезагрузки.
Требования к системе
Для работы WebMail Lite необходимо, чтобы на сервере были установлены следующие компоненты:
Если у нас уже есть рабочий веб-сервер с данными компонентами, соответствующие шаги, описанные ниже можно пропустить.
Веб-сервер
И так, мы решили рассмотреть вариант настройки как с NGINX, так и Apache. В данном разделе выполним только установку, а настройку — позже.
Если используем NGINX
Для установки NGINX выполняем
После установки nginx разрешаем его автозапуск и стартуем сервис:
Открываем браузер и переходим на страницу http:// — мы должны увидеть страницу приветствия NGINX:
* для разных источников установки пакета данная страница может иметь разный вид.
Веб-сервер NGINX установлен.
Если используем Apache
Для установки Apache в CentOS выполняем команду:
После установки разрешаем его автозапуск и стартуем сервис httpd:
Открываем браузер и переходим на страницу http:// — мы должны увидеть страницу приветствия Apache:
Веб-сервер Apache установлен.
Мы рассмотрим установку PHP версии 7. Процесс зависит от выбранного нами веб-сервера.
Установка php и компонентов
Сначала выполним установку php и компонентов, необходимых для работы webmail lite:
dnf install php php-json php-xml
Настройка связки с NGINX
Если у нас будет использоваться nginx, устанавливаем php-fpm:
dnf install php-fpm
Разрешаем автозапуск модуля и стартуем его:
Открываем конфигурационный файл nginx:
В раздел http добавляем:
systemctl restart nginx
Открываем браузер и переходим на страницу http:// — мы должны увидеть страницу phpinfo:
Настройка связки с Apache
Устанавливаем модуль для связки с apache:
dnf install mod_php
systemctl restart httpd
Открываем браузер и переходим на страницу http:// — мы должны увидеть страницу phpinfo:
Сервер баз данных
Мы рассмотрим установку и использование СУБД MariaDB. Для ее установки вводим:
dnf install mariadb-server
Разрешим автозапуск и запустим сервис:
Задаем пароль для учетной записи root:
Настройка связки php + mariadb
dnf install php-mysqli
Снова переходим на нашу страницу с phpinfo — мы на ней должны увидеть информацию о включенном компоненте mysqli:
Установка WebMail Lite
После того, как мы подняли веб-сервер, переходим к установке самого веб-клиента для чтения почты.
Загрузка
Скачиваем архив для webmail lite:
* в моем примере мы скачиваем webmail lite последней версии. Для загрузки 7-й версии можно воспользоваться ссылкой https://afterlogic.org/download/webmail-lite-php-7.zip.
Распаковываем архив, созданный ранее каталог:
Создание виртуального домена на веб-сервере
Настраиваем веб-сервер для корректной работы с нашим созданным каталогом.
Если используем NGINX
location / <
index index.php;
>
* где webmaillite.dmosk.ru — адрес сайта, на котором будет отвечать наш почтовый клиент; /var/www/wmlite — каталог, в котором размещены файлы сайта.
systemctl restart nginx
Если используем Apache
Создаем конфигурационный файл:
ServerName webmaillite.dmosk.ru
DocumentRoot /var/www/wmlite
* где webmaillite.dmosk.ru — адрес сайта, на котором будет отвечать наш почтовый клиент; /var/www/wmlite — каталог, в котором размещены файлы сайта.
systemctl restart httpd
Создание базы и пользователя в СУБД
Открываем оболочку sql:
Создаем базу данных для Webmail Lite:
> CREATE DATABASE webmail DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
* данной командой мы создадим базу webmail. По умолчанию будет использоваться кодировка utf8.
Создаем пользователя с полными правами на созданную базу:
> GRANT ALL PRIVILEGES ON webmail.* TO uwebmail@localhost IDENTIFIED BY ‘webmail-123’;
* данная команда создаст пользователя uwebmail с паролем webmail-123 и доступом к базе webmail.
Выходим из командной оболочки mariadb:
Установка WebMail Lite через веб-интерфейс
Переходим по адресу виртуального домена, который был нами настроен на предыдущем шаге. В моем случае, это http://webmaillite.dmosk.ru/?install.
Мы должны открыть наш портал именно по доменному имени. Для этого мы его должны зарегистрировать в DNS или занести в файл hosts.
Должна открыться страница проверки компонентов и доступа к директории. Если будут недочеты, необходимо их исправить. В конечном итоге, мы должны увидеть пройденные тесты:
Нажимаем Next. Нас перекинет на страницу авторизации — вводим логин superadmin без пароля:
На начальной странице задаем пароль для суперадмина и выбираем предпочтительный язык, например, русский:
На странице «Database settings» прописываем настройки для подключения к базе данных и кликаем по Test connection:
* ранее мы создали базу webmail с пользователем uwebmail и паролем webmail-123 — используем эти значения; в качестве сервера баз данных указываем локальный сервер (127.0.0.1).
Тестирование подключение должно пройти успешно:
Нажимаем на Create/Update tables для создания таблиц в базе данных; в появившемся окне кликаем по OK:
Мы должны увидеть сообщение об успешном создании таблиц:
Кликаем по Update configuration:
Мы должны увидеть сообщение об успешном обновлении настроек Webmail Lite:
Переходим в раздел Почтовые серверы:
Справа кликаем по Добавить новый сервер:
В открывшемся окне заполняем поля для подключения к нашему почтовому серверу:
Кликаем по Create для создания конфигурации подключения к серверу:
Почтовый клиент готов к использованию. Выходим из панели управления и пытаемся зайти под почтовой учетной записью.
Installation instructions
You can download the package of WebMail Lite from:
Unzip and upload the contents of the product package onto your web server. Let’s assume you’ve created a directory called webmail in the root of your web space (web root) and placed the package contents there. This way, you’ll be able to access the application through the web at the URL of the following kind: http://your_domain/webmail
Examples (assuming you wish to use webmail name for the target directory):
NB: It’s important to make sure data directory is writable by web server.
Typically, that’s achieved by changing files ownership to the system user webserver runs under. For example:
Alternately, you can try changing permissions recursively to 755 or 777:
Installing on Windows
Unzip and upload the contents of the product package onto your web server. Let’s assume you’ve created a folder called webmail in the root of your web space (web root) and placed the package contents there. This way, you’ll be able to access the application through the web at the URL of the following kind: http://your_domain/webmail
Examples (assuming you want to use webmail name for the target folder):
NB: It’s important to make sure data directory is writable by web server.
You can skip the following step if all of the below is true:
● you only have FTP access to your server;
● you do not have a web control panel (like WHM or Plesk) at all or it does not allow setting permissions;
● you have no other options to set permissions.
If all of the above is true (usually, shared hosting with preconfigured permissions), the permissions should be OK but if they are not and the hosting provider does not allow you to set them, you will need to contact their support to do this for you.
The following steps allow you to assign necessary permissions. We’re assuming this is done via Remote Desktop access.
If assigning the permissions doesn’t seem to have any effect, repeat the same steps, but instead of granting «Full Control» to Internet Guest Account (usually IUSR_. ) account, grant the same permission to Everyone user.
If your hosting control panel provides some kind of a file manager, i.e. a tool which shows you all files and folders and allows you to set set permissions for files and folders, you should set the same permissions as in case of Remote Desktop or direct access.
Also in case of IIS, it’s strongly recommended to relocate data folder out of web root for security reasons, see Protecting data directory documentation page for more infor.
Finalizing the installation
It is advised to run Compatibility test to check that server meets the requirements, and that data directory has correct permissions set.
Upon installing the product, you’ll need to configure your installation.
Redirecting to HTTPS
It is strongly recommended to run the product under https. If you run it under http, the majority of features will still be available, but some functionality aspects, such as authentication with Google account, won’t work.
To enable automatic redirect from http to https, set RedirectToHttps to true in data/settings/config.json file.
Protecting data directory
All configuration files of the application and user data are stored in data directory, so it’s important to protect data directory to make sure that users cannot access that directory over the Internet directly.
Afterlogic webmail lite php
Afterlogic WebMail Lite 8
Open-source webmail script for your existing IMAP server.
You can download WebMail Lite 8 from our website, unzip the package and configure the installation as described at this documentation page. This is a simple approach convenient for those who simply wish to install the product. But if you’re looking for building and adding custom modules or skins, installing from Git repository is recommended per the instructions below.
During installation process you will need:
Note! npm 3.0 or later is required.
We’re assuming that you wish to install the latest stable version of the product. If you’re looking for the latest code (e.g., to contribute changes), the following steps needs to be taken:
Start the composer installation process by running the following from the command line:
NB: It is strongly advised to run composer as non-root user. Otherwise, third-party scripts will be run with root permissions and composer issues a warning that it’s not safe. We recommend running the script under the same user web server runs under.
Set up initial config values
Next, you need to build static files for the current module set.
First of all, install all npm modules via
and install gulp-cli module globaly
Now you can build static files
Now you are ready to open a URL pointing to the installation directory in your favorite web browser.
Upon installing the product, you’ll need to configure your installation.
IMPORTANT:
To enable automatic redirect from http to https, set RedirectToHttps to true in data/settings/config.json file.
Protecting data directory:
All configuration files of the application and user data are stored in data directory, so it’s important to protect data directory to make sure that nobody can access that directory over the Internet directly.
This product is licensed under AGPLv3. The modules and other packages included in this product as dependencies are licensed under their own licenses.
NB: Afterlogic Aurora modules which have dual licensing are licensed under AGPLv3 within this product.
About
Open-source webmail script for existing IMAP server

















