How to Install Roundcube on Windows 10
In this tutorial, we will learn how to download and install Roundcube on a Windows 10 machine.
Prerequisites
Before getting started, we will need to install the following prerequisites:
- Apache web server
- PHP
- MariaDB or MySQL
Ensure that these are installed and properly configured before proceeding with the Roundcube installation.
Download Roundcube
- Visit the official Roundcube website at https://roundcube.net/download/.
- Download the latest stable version of Roundcube by clicking the «Download» button under the «Latest stable release» section.
- Save the downloaded file to a directory of your choice on your Windows 10 machine.
Install Roundcube
- Extract the contents of the downloaded Roundcube file to a directory of your choice on your Windows 10 machine.
- Rename the extracted directory to «roundcube» for convenience.
- Move the «roundcube» directory to the document root of your Apache web server. By default, this is located at
c:\xampp\htdocsdirectory for XAMPP,C:\wamp\wwwdirectory for WAMP, orC:\MAMP\htdocsdirectory on MAMP.
Create Roundcube Database
- Open the command prompt or terminal on your Windows 10 machine.
- Log in to the MariaDB or MySQL server using the following command:
mysql -u root -p
- Create a new database named «roundcube» by running the following command:
CREATE DATABASE roundcube;
- Create a new user for the Roundcube database with the username «roundcubeuser» and password «password» by running the following command:
CREATE USER 'roundcubeuser'@'localhost' IDENTIFIED BY 'password';
- Grant all permissions to the «roundcubeuser» user for the «roundcube» database by running the following command:
GRANT ALL PRIVILEGES ON roundcube.* TO 'roundcubeuser'@'localhost';
- Exit the MySQL/MariaDB server by running the following command:
exit;
Configure Roundcube
- Rename the
config/config.inc.php.samplefile toconfig/config.inc.php. - Edit the
config/config.inc.phpfile using a text editor such as Notepad. - Locate the following lines in the configuration file:
$config['default_host'] = 'localhost';
$config['default_port'] = 143;
$config['default_ssl'] = null;
- Replace the
localhostvalue in the$config['default_host']line with your email server’s IMAP hostname, such asimap.gmail.comfor Gmail. - Replace the
$config['default_port']line with the appropriate port number based on your email server’s settings. For example,993for SSL-enabled IMAP servers,143for non-SSL IMAP servers, etc. - Save the changes to the
config.inc.phpfile.
Launch Roundcube
- Open a web browser on your Windows 10 machine.
- Type in the URL of your Roundcube installation in the address bar, such as
http://localhost/roundcube. - Press Enter to launch the Roundcube login page.
- Login with your email address and password.
- You should now be able to access your email safely and securely through the Roundcube web application.
Congratulations! You have successfully installed and configured Roundcube on your Windows 10 machine.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!
Содержание
- Установите и настройте веб-почту Roundcube
- Подготовка
- Зависимости PHP
- Создать базу данных MySQL
- Скачать Roundcube
- Настроить Nginx
- Настроить Roundcube
- Проверьте установку Roundcube
- Включить плагины Roundcube
- Выводы
- Download your version of Roundcube
- LTS versions
- Other sources and downloads
- PGP signatures for package verification
- Installation and upgrading
- Plugins
- Complete Email Server Packages with Roundcube
- Ещё один блог сисадмина
- воскресенье, 23 февраля 2014 г.
- Установка и настройка Roundcube
- Установка и настройка roundcube на сервере без панели управления
- Устанавливаем веб-сервер и сервер БД
- Устанавливаем сервер БД:
- Установка roundcube
- Настройка Roundcube Webmail
- Перед вами откроется первый шаг настройки:
- Второй шаг:
- Третий шаг:
- Четвертый шаг:
- Пятый шаг:
- Плагины
- Тестируем SMTP
- Похожие посты
- Как добавить домен в postmaster?
- Ошибка при установке Roundcube Webmail
- 72 thoughts on “ Настройка Roundcube Webmail ”
Установите и настройте веб-почту Roundcube
Это последняя часть серии « Установка и настройка почтового сервера », в которой мы расскажем, как установить и настроить Roundcube Webmail.
RoundCube включает в себя все функции, которые вам нужны в почтовом клиенте, такие как составление сообщений Richtext / HTML, адресная книга, поддержка электронных писем MIME / HTML, несколько идентификаторов отправителей, проверка орфографии, просмотр трех столбцов, управление сообщениями перетаскивания и многое другое.
Подготовка
Зависимости PHP
Мы начнем с обновления списка пакетов и установки всех необходимых PHP- зависимостей:
После завершения установки выполните следующую команду sed чтобы установить значение date.timezone на UTC :
Перезапустите службу PHP FPM, чтобы изменения вступили в силу:
Создать базу данных MySQL
В этом руководстве мы будем использовать MySQL в качестве сервера базы данных. Войдите в оболочку MySQL :
Скачать Roundcube
На момент написания 1.3.8 является последней стабильной версией Roundcube. Прежде чем перейти к следующему шагу, вам следует проверить страницу загрузки Roundcube, чтобы узнать, доступна ли более новая версия.
Начните с загрузки архива Roundcube, используя следующую команду wget :
После завершения загрузки распакуйте архив и переместите код Roundcube в каталог /var/www/roundcubemail :
Настроить Nginx
В первой части этой серии мы создали серверный блок Nginx для экземпляра PostfixAdmin. Откройте файл конфигурации и добавьте следующие директивы расположения, выделенные желтым:
Перезагрузите службу Nginx, чтобы изменения вступили в силу:
Настроить Roundcube
Вам будет представлен следующий экран:
Если все необходимые расширения PHP загружены, мы можем перейти к следующему шагу, где мы можем настроить нашу установку Roundcube:
Самая важная часть здесь — ввести правильные настройки базы данных MySQL.
После создания структуры базы данных удалите каталог installer чтобы предотвратить изменение конфигурации и / или несанкционированный доступ.
Включение автоматической очистки кеша Roundcube необязательно, но рекомендуется:
Проверьте установку Roundcube
Откройте свой веб-браузер, перейдите по https://mail.linuxize.com/roundcubemail : https://mail.linuxize.com/roundcubemail и войдите в систему, используя имя пользователя и пароль своей учетной записи электронной почты.
Включить плагины Roundcube
Roundcube поставляется с рядом плагинов, которые по умолчанию отключены. В этом руководстве мы активируем password и managesieve плагинами. Эти плагины позволят пользователям создавать сетчатые фильтры и изменять свои пароли из интерфейса Roundcube.
Выводы
В этом руководстве показано, как установить и настроить Roundcube Webmail в вашей системе Ubuntu, а также как установить и включить плагины Roundcube для добавления дополнительных функций, таких как сетчатые фильтры.
Это последний пост из этой серии. Если у вас есть вопросы, не стесняйтесь оставлять комментарии.
Этот пост является частью серии « Установка и настройка почтового сервера ». Другие сообщения из этой серии:
Источник
Download your version of Roundcube
| Package | Size | SHA-256 checksum | |
|---|---|---|---|
| Dependent 1 | Download | 4.2 MB | 524a6c8095508b8d911c0c5121ea6d16ca4c42894e10aaa0e29ded983687923c |
| Complete | Download | 6.7 MB | ac7319070c305fc2c88c7723605562d8607030732beee931cdb4091cf05e69b7 |
| Framework | Download | 2 MB | 877ad2d65f7f24b43d5000f30f5b5ba59bf753623e2a6f2a9d3431f147f02815 |
| Package | Size | SHA-256 checksum | |
|---|---|---|---|
| Dependent 1 | Download | 3.1 MB | b43fda0a58a6fb6f950c062fdcadb63040c3b672d3515a26ed4878c68684a015 |
| Complete | Download | 5.3 MB | 7d6e2853f3db2a35b1cb36412177299f4323400e73c3ec704077520dcba1bcb8 |
| Framework | Download | 1.2 MB | b56432712b482c635c6b326d636f56f5555afc41c0c73422a26fe65c825b1f65 |
LTS versions
Long Term Support with low maintenance mode. This means only security updates and rare fixes of serious issues will go into these release branches.
| Package | Size | SHA-256 checksum | |
|---|---|---|---|
| 1.2.13 | Download | 3.8 MB | 04d25f7ea238c58733f0e88086cb3362873236a4e5c30ec94a5fea9a5e14ae4d |
We recommend to test beta versions on a separate environment, and don’t forget to backup your data before installing.
| Package | Size | SHA-256 checksum | |
|---|---|---|---|
| Dependent 1 | Download | 4.2 MB | d42f19510d4c1996ff1e6d9c50e018c8af7faa464c329d9e2faf7a363b12cbd4 |
| Complete | Download | 7.2 MB | 9b0cf262c8bd6ae954335281b091d642b923ad5a1b20de51c43ec22226ab0774 |
| Framework | Download | 2.0 MB | aa1914bd6fd1c9292e0b971efbd9094435e59dbf20aca52241c3869ef530fce7 |
1. Dependent packages only contain sources which are licensed under the GPL but they require some third-party packages to be installed along with Roundcube. All requirements are listed in the INSTALL instructions within the package file.
Other sources and downloads
PGP signatures for package verification
Release tarballs listed above are signed with PGP to allow you to verify the authencity. We sign them with the identity Roundcube Developers alias 41C4F7D5 and the public key can be downloaded from the pgp.mit.edu keyserver or from our website. The signatures can be found with the according release item on the GitHub releases page.
After downloading the pubkey and the signature file, verify packages with
Installation and upgrading
Plugins
The basic installation of Roundcube is not the end of the world. There are plenty of 3rd party plugins available that extend the functionality or add new features. Check out our Plugins Repository and find what you’re missing and read the instructions how to install plugins and keep them up-to-date.
Complete Email Server Packages with Roundcube
The Kolab Groupware Solution provides a complete email and groupware server pre-packaged for various linux distributions with Roundcube sitting on top as its web client. It offers easy configurable LDAP address books, calendars, tasks, mobile synchronization and more. An enterprise version with professional support is available from Kolab Systems.
Mail-in-a-Box turns a fresh cloud computer into a fully equipped, working mail server. The setup provides Roundcube webmail and an IMAP/SMTP server for use with mobile devices and desktop mail software. It also includes contacts and calendar synchronization.
Источник
Ещё один блог сисадмина
воскресенье, 23 февраля 2014 г.
Установка и настройка Roundcube
Заключительная статья из серии статей о настройке почтовой системы. В прошлых заметках была рассмотрена настройка серверной части почтовой системы, настройка SSL/TLS и настройка почтового клиента Thunderbird/Icedove: Установка и настройка Postfixadmin, Установка и настройка Dovecot, Установка и настройка Postfix, OpenDKIM, ClamAV-Milter, Milter-Greylist и Настройка SSL/TLS в Postfix, Dovecot, Lighttpd, Дополнения Thunderbird/Icedove.
На этот раз мы рассмотрим настройку почтового веб-клиента Roundcube.
Для работы Roundcube понадобится веб-сервер с поддержкой PHP и одна из СУБД: MySQL, PostgreSQL (в настройках самого Roundcube была ещё замечена возможность работы с SQLite, однако в пакетах никаких признаков поддержки SQLite обнаружено не было).
1. Установка пакетов и создание базы данных
Установим необходимые пакеты, если они ещё не установлены:
Установим Roundcube и пакеты с дополнительными плагинами:
В процессе установки пакета roundcube-core будет предложено настроить базу данных для Roundcube:
2. Настройка веб-сервера
Подготовим файл /etc/lighttpd/conf-available/50-roundcube.conf, используя для его составления информацию из файлов /etc/roundcube/lighttpd.conf и /usr/share/roundcube/.htaccess:
Создадим файл /etc/php5/mods-available/roundcube.ini, используя при его составлении информацию из файла /usr/share/roundcube/.htaccess:
В этот файл я вписал лишь те настройки, которые отличаются от дистрибутивных. Настройки сессии я не считаю столь важными, чтобы заменять ими стандартные, поэтому их я закомментировал. Также я закомментировал настройку post_max_size, потому что другое приложение использует большее значение. Из всех настроек я оставил только upload_max_filesize, зато закомментировал её в другом приложении, т.к. там её значение было меньше.
3. Настройка приложения
Теперь можно подключать оба файла к использованию:
И войти в веб-интерфейс Roundcube по ссылке http://mail.domain.tld:
5. Настройка плагинов
Для настройки плагина password впишем в файл /etc/roundcube/plugins/password/config.inc.php следующие настройки:
И дадим пользователю roundcube права на изменение пароля:
Теперь включим использование плагина password, добавив его в настройку plugins в файле /etc/roundcube/main.inc.php:
После этого в веб-интерфейсе Roundcube появится дополнительная вкладка для смены пароля:
5.2. Настройка плагина acl
Плагин не требует настройки и для его включения нужно добавить его в настройку plugins в файле /etc/roundcube/main.inc.php:
После его включения у каждого письма с правильной DKIM-подписью появится значок в виде галочки в зелёном кружке (пример письма, полученного от отправителя в Yandex-почте):
5.4. Настройка плагина sieverules
В пакетах roundcube-pugins и roundcube-plugins-extra были найдены два плагина для настройки правил фильтрации почты на IMAP-сервере через протокол ManageSieve: managesieve и sieverules. Как оказалось, второй плагин был написан на основе первого и по сути заменяет его собой. Поэтому я решил настроить именно плагин sieverules.
Настройка sieverules_multiplerules позволяет создавать несколько наборов правил, из которых активным может быть только одни набор.
При помощи настройки sieverules_adveditor можно включить прямой доступ к редактированию скриптов фильтрации Sieve. При этом появляется возможность писать более сложные правила, однако и увеличивается вероятность ошибок в синтаксисе или непонимания семантики фильтра.
Это была заключительная статья из серии статей о настройке почтовой системы.
Источник
Установка и настройка roundcube на сервере без панели управления
Roundcube — это почтовый клиент, который позволяет просматривать и отправлять письма через веб-интерфейс. Если у вас не будет входящих сообщений, либо вы будете использовать локальный почтовый клиент, например, Thunderbird и подобные, то можно обойтись и без roundcube. На отправку и доставку писем это никак не влияет.
Устанавливаем веб-сервер и сервер БД
Если вы выполняли настройку почтового сервера, используя вариант с хранением паролей в БД, то этот пункт нужно пропустить и сразу перейти к установке roundcube. А если выбрали вариант с хранением в файле, то идем по порядку:
Запускаем службу и добавляем в автозагрузку:
Устанавливаем сервер БД:
Centos:
Запускаем БД и добавляем в автозагрузку:
Теперь нужно завершить установку и задать пароль пользователя mysql — root. Выполняем команду, на все вопросы жмем enter, при запросе нового пароля (шаг 2) придумываем и вводим новый пароль для пользователя root:
Debian/Ubuntu:
При установке в Debian 8 и Ubuntu 16.04 нужно будет указать, какой пароль root будет у БД:
В Ubuntu 18.04 и Debian 9 пароль пользователя root при установке указывается пустой.
Запускаем БД и добавляем в автозагрузку:
Установка roundcube
Качаем архив с roundcube:
Разархивируем его и создадим символическую в директорию на сайте:
Если у вас сайт расположен не в /var/www/html, то укажите свой путь до сайта:
Выставим права на директорию:
Ставим php и расширения php, которые нужны для работы roundcube:
Устанавливаем временную зону для php в файле php.ini (здесь используется время по Москве):
Debian 9/ Ubuntu 16.04:
Перезапускаем веб-сервер для применения настроек:
Создаем базу для roundcube, для этого подключимся к mysql под пользователем root (будет запрошен пароль от пользователя root в mysql):
В ubuntu 18.04 при установке БД пароль не задаётся.
В открывшейся консоли mysql вводим следующие команды:
Переходим на страницу установки и проверяем, что все необходимые расширения выставлены — все ОК:
Переходим на следующую страницу и вводим пароль от пользователя БД для roundcube (примерно на середине страницы):
Также нужно указать язык — ru_RU в поле language (ближе к концу страницы):
Если все нужные настройки указали, то жмём кнопку Create config внизу страницы и на следующей странице — Continue.
Далее на странице инициализируем БД по кнопке Initialize database:
И можно войти в интерфейс roundcube с созданным почтовым ящиком:
После успешной установки нужно удалить директорию установщика на сервере:
Источник
Настройка Roundcube Webmail
Roundcube Webmail — бесплатный клиент для работы с электронной почтой с веб-интерфейсом, написанный на PHP с использованием CSS и XHTML и технологии AJAX. RoundCube Webmail устанавливается практически на любой сервер с поддержкой PHP и MySQL.
Процесс установки будет выложен в другой статье, здесь же будет показана настройка.
Устанавливался и настраивался Rouncube Webmail на веб-сервер под управлением Vestacp с операционной системой CentOs-7-x86_64-minimal:
Перед вами откроется первый шаг настройки:
Второй шаг:
Остальное можно не трогать и оставить по-умолчанию
Третий шаг:
Четвертый шаг:
Пятый шаг:
Плагины
Тестируем SMTP
Проверяем почту которую указали в качестве получателя и проверяем, есть ли там тестовое письмо.
After completing the installation and the final tests please remove the whole installer folder from the document root of the webserver or make sure that enable_installer option in config.inc.php is disabled.
These files may expose sensitive configuration data like server passwords and encryption keys to the public. Make sure you cannot access this installer from your browser.
Саму папку установщика можно удалить, а можно и просто переименовать например в: installer983gf9t4394rt72979.
Похожие посты
Как добавить домен в postmaster?
Ошибка при установке Roundcube Webmail
72 thoughts on “ Настройка Roundcube Webmail ”
Подскажите как сделать вид почтового ящика как у Вас на скриншоте? То есть что б список писем был слева, а превью справа. У меня они находятся друг над другом.
Добрый день!
Перейдите в Настройки — Вид почтового ящика — строка Размещение, далее в выпадающем меню выберите Широкоформатный (3 колонки).
а что делать если такой строки нету?)
О_о как нет? А что в настройках есть? Скрин можете приложить?
Посмотрел, интересно, версия мне кажется старовата, возможно поэтому нет такой настройки. Можно мне сделать тестовый аккаунт? Я бы глянул что там и как. Если есть возможность, то данные можно прислать сюда info@hsp.kz
Потом сразу аккаунт удалите и все 🙂
К сожалению нельзя, я не админ(
версия Roundcube Webmail 1.1.10
На момент написания статьи, у меня была версия 1.3.3, наверное у вас установлена более ранняя версия и там нет такой функции. Используйте программу Mozilla Thunderbird, альтернатива Outlook, да и бесплатна к тому же 🙂 Там настроите как нужно.
Добрый день! А почему отвалилось прошлое решение? В чем причина?
Касаемо контактов в Roundcube, там на сколько я помню есть импорт, но только ручной, я пока не встречал плагинов которые делали бы синхронизацию автоматически. Возможно вам стоит посмотреть в сторону Почты для домена от Яндекс, сервис бесплатный и все контакты можно будет хранить там.
Добрый день!
Владимир подскажите пожалуйста.Совсем не давно я как то вид изменил на мобильный,сокращенный. Потом опять вернул обратно на полный.Теперь не могу вспомнить какими кнопками меняется вид.Версия Roundcube Webmail 1.4.10 [GIT 20201222.1426] Подскажите.
Добрый день! Вы про тему оформления или вид отображения писем и списка?
Доброго времени суток!
Подскажите пожалуйста, в чем причина ошибки 553 при отправке тестового SMTP письма?
Текст: SMTP send: NOT OK(Failed to add recipient ‘————‘. We do not relay without RFC2554 authentication. (Code: 553))
Добрый день!
Сервер на который вы отправляете письмо не принимает его без авторизации, я сталкивался с такой проблемой, но к сожалению не могу вспомнить как решил, вроде в исходный код Roundcube добавлял код и ошибка ушла. Поищу у себя, найду отпишу.
Есть конечно вариант с переустановкой RoundCube, но это на крайний случай.
Помогите настроить подпись. при написании письма значок «подпись» не активен.
Добрый день! Перейдите в Настройки — Профили — Выберите нужный профиль и укажите подпись.
Далее подпись будет автоматически выставляться в каждом письме.
Владимир, спасибо! А не знаете, как вставить под подписью картинку организации, например?
Там в форме где указываете подпись, есть галочка, называется «Подпись в HTML». Поставив её вы сможете использовать язык разметки HTML, с его помощью можно добавить картинку, прописав соответствующий код. Кстати редактировать необходимо в разделе Исходный код, есть такая иконка в редакторе. Примерный код к сожалению не удается добавить =(
Используйте тег «img».
Добрый день, а как настроить папку спам?
Не совсем понял вопроса, что значит как настроить? Фильтр спама или что?
Создали несколько папок по поставщикам. в папках видны сообщения за последний месяц. как посмотреть более старые сообщения, которые точно не удались?
P.S.на другом компе стоит РОР3 подключение и видны все сообщения
Добрый день! Протокол POP3 подразумевает загрузку почты с сервера на компьютер, то есть если письма были загружены на компьютер и затем удалены с сервера, например через протокол IMAP, то при подключении другого компьютера по протоколу POP3, вы увидите только те письма что есть на сервере.
Если сообщения есть на сервере, но не подгружаются на другом компьютере по протоколу POP3, то можно попробовать удалить учетную запись в почтовом клиенте и добавить заново. Дождаться загрузки сообщений. Еще стоит проверить настройки программы, есть функция которая ограничивает скачивание писем, например загрузка писем за 90 дней, те что старее загружаться не будут. Надеюсь помог 🙂
Как добавить письмо в чёрный список? Что то не могу найти фильтрацию и т.п
Добрый день! Это можно сделать только если у вас установлено дополнение к Roundcube. С помощью фильтра (Filters) можно создать черный список и добавить туда не только любого адресата, так и фильтр по заголовку письма или тексту самого сообщения.
а где это дополнение взять? может у вас есть мануал? спасибо заранее.
Все плагины есть в репозитории Rouncube — https://github.com/roundcube/roundcubemail/wiki
Конкретно фильтра, вот — https://github.com/6ec123321/filters/
Скачиваете архив, загружаете содержимое в папку плагинов Roundcube и далее правите конфиги.
Мануал по установке и настройке еще не писал, но в сети вы можете найти инструкции.
а где это дополнение взять? может у вас есть мануал? спасибо заранее.
Источник
This document discusses how to install the Roundcube PHP webmail application on IIS under Windows Server while retaining some of the functionality lost from the .htaccess file security and configuration changes automatically available to Apache installations.
Applies To
- Windows Server 2012, 2012 R2, 2016, 2019, 2022
- Internet Information Services
Prerequisites
- IIS installed via Server Manager / PowerShell with at least the following enabled:
- Fast CGI (CGI)
- ISAPI Extensions
- ISAPI Filters
- Default Document
- HTTP Errors
- Static Content
- Request Filtering
- Static and dynamic content compression (optional but recommended)
- URL Rewrite
- MySQL Connector/ODBC 8.0 (or suitable database driver). This document will use MySQL 8.0
- PHP 5.4.1 or higher (but not PHP 8.0 at the time of writing). PHP 7.4.xx is recommended
- PHP should be registered in IIS Manager > Handler Mappings as follows:
- Request path: *.php
- Module: FastCgiModule
- Executable (optional): “<drive>:\<path>\php-cgi.exe”
- Your PHP.ini file should enable the following extensions:
- php_fileinfo.dll
- php_intl.dll
- php_mysqli.dll (if using MySQL/MariaDB)
- php_pdo_mysql.dll (if using MySQL/MariaDB)
- php_mbstring.dll
- php_openssl.dll
- You may also wish to consider obtaining the (optional) non-bundled Pspell and IconV extensions
- Be sure to set a value for date.timezone in the PHP.ini file based upon allowed values found at http://php.net/date.timezone
- In the PHP.ini file, file uploads should be set to on via
file_uploads = Onand a value set forupload_tmp_dir = <path>
Note: IUSR and you application pool identity should have read/write/modify permission on this folder. See installation step 12 below for details on how to add permissions for the application pool identity
- PHP should be registered in IIS Manager > Handler Mappings as follows:
- Create a new website in IIS for your Roundcube install. In this document the website will be named webmail.mydomain.com
- It is recommended that you create a dedicated application pool for your site. In this document the application pool will be named webmail.mydomain.com. Ensure that it has the following settings if the application pool will be used exclusively by your Roundcube installation:
- .NET CLR Version: No Managed Code
- Identity: ApplicationPoolIdentity
- The website should be located on an NTFS volume. In this document the path C:\iisroot\webmail.mydomain.com will be used
- Setup any host headers and bindings required as per your installation
- It is recommended that you create a dedicated application pool for your site. In this document the application pool will be named webmail.mydomain.com. Ensure that it has the following settings if the application pool will be used exclusively by your Roundcube installation:
Installation
Download your preferred build of Roundcube from the Roundcube website. The Roundcube redistributable is available in three packages: ‘dependent’, ‘complete’ and ‘framework’. You should choose the ‘complete’ package for use with IIS. This document will follow the installation of version 1.5.2 Stable.
View: Roundcube
Use 7-zip or another archival utility to open the .tar.gz package file
- Extract everything from the .tar.gz file in to
C:\iisroot\webmail.mydomain.comexcept for the ‘public_html’ folder.
The public_html folder contains POSIX symbolic links that 7-zip cannot map onto NTFS. As a substitute we will re-create these using IIS virtual directories. - Create a new, empty folder called public_html in C:\iisroot\webmail.mydomain.com i.e.
C:\iisroot\webmail.mydomain.com\public_html - Open IIS Manager and navigate to Sites > webmail.mydomain.com. Expand webmail.mydomain.com in the left-hand navigation panel so that you can see the folder list.
- Right click on public_html and choose ‘Add Virtual directory…’ to create a virtual directory. You will need to do this three times to create the following folder maps:
- Alias: plugins
Physical path: C:\iisroot\webmail.mydomain.com\plugins - Alias: program
Physical path: C:\iisroot\webmail.mydomain.com\program - Alias: skins
Physical path: C:\iisroot\webmail.mydomain.com\skins
- Alias: plugins
- In IIS Manager return to the home screen and select MIME Types (or if you do not want to add it globally, select MIME Types for your webmail.mydomain.com site)
- Click ‘Add…’ and fill in the following:
- File name extension: .webp
- MIME type: image/webp
- In Windows Explorer browse to C:\iisroot
- Right click on the
webmail.mydomain.comfolder, go to properties and open the security tab - Click the Advanced button. disable inheritance and copy all of the existing security entries
- Delete the ‘Users’ entry
- Add
IUSRwith Modify permissions for ‘This folder, subfolders and files’ - Add ‘
IIS AppPool\webmail.mydomain.com‘ with Modify access controls for ‘This folder, subfolders and files’
Note: You must type ‘IIS AppPool\<application pool name>’ manually; you will not be able to locate it in the users and groups lookup. If Windows Explorer cannot locate the user, ensure that you have created the application pool as indicated in the prerequisites section. If you are using the Default application Pool rather than a dedicated one then the username will be ‘IIS AppPool\DefaultAppPool‘.Once you have finished you should at a minimum have permissions set for SYSTEM, IUSR and your IIS application pool. - Click OK until you have closed the folder properties and returned to Windows Explorer
- Download the following file and save it in
C:\iisroot\webmail.mydomain.com\config:
http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
This file provides a list of valid mime types that can be used to validate file upload and downloads. You should periodically refresh this file on your install.
Note: This file can be placed anywhere, including in a common location that is shared between multiple tenant sites on your server. The application pool identity requires read access to the file. - Open Notepad
- Paste in the following lines of XML
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<!-- Prevent access to the contents of this directory and all sub-directories -->
<denyUrlSequences>
<add sequence="/" />
</denyUrlSequences>
</requestFiltering>
</security>
</system.webServer>
</configuration>
This file prevents HTTP connections from accessing content found in a folder - Save a copy of the file with the filename web.config in the following locations:
C:\iisroot\webmail.mydomain.com\binC:\iisroot\webmail.mydomain.com\configC:\iisroot\webmail.mydomain.com\logsC:\iisroot\webmail.mydomain.com\program\includeC:\iisroot\webmail.mydomain.com\program\libC:\iisroot\webmail.mydomain.com\program\localizationC:\iisroot\webmail.mydomain.com\SQLC:\iisroot\webmail.mydomain.com\temp
- In IIS Manager navigate to your webmail.mydomain.com website and select the ‘HTTP Response Headers’ option.
- Delete the ‘Powered-By’ entry
- Click ‘Add…’ and set the following values:
- Name: X-Robots-Tag
Value: noindex, nofollow - Name: X-Content-Type-Options
Value: nosniff - Name: X-Frame-Options
Value: SAMEORIGIN - Name: X-XSS-Protection
Value: 1; mode=blockNote: You may need to adjust these for your environment. Testing is advised.
- Name: X-Robots-Tag
- Click on ‘Set Common Headers…’ and set the following:
- Enable ‘Enable HTTP keep-alive’
- Enable ‘Expire Web content’
- Select After and set the value to 30 days
- Open your web browser and navigate to http(s)://webmail.mydomain.com/installer
- You can now follow the installer wizard which will help you to generate a custom config.inc.php file.When specifying paths, for example for the log_dir and temp_dir you must specify a full NTFS path and not attempt to use a relative path i.e. use
C:\iisroot\webmail.mydomain.com\tempandC:\iisroot\webmail.mydomain.com\logsnot /temp and /logsFor enhanced security, it is recommended that you place your temp folder and logs folder outside of a publically accessible folder.Once you have completed the wizard, download the config.inc.php file generated by the wizard and place it in C:\iisroot\webmail.mydomain.com\config - At the bottom of the config file add the following lines:
$config['mime_types'] = 'C:\iisroot\webmail.mydomain.com\config\mime.types';
$config['enable_installer'] = false; - Delete the
C:\iisroot\webmail.mydomain.com\installerfolder - [Optional if using HTTPS] Go to the webmail.domain.com site in IIS Manager, select the URL Rewrite settings option and click on ‘Add Rule(s)…’
- Choose Inbound rules > Blank rule
- Configure the new rule as follows:
Name: Force HTTPS
Requested URL: Matches the Pattern
Using: Regular Expressions
Pattern: (.*)
Ignore case: Enabled
Logical grouping: Match AllAdd an input as follows:
Condition input: {HTTPS}
Check if input string: Matches the Pattern
Pattern: ^OFF$
Ignore case: EnabledThis will disable the use of unencrypted HTTP connections from using your webmail service, forcing all connections to HTTPS
You should now have a working Roundcube installation running on your IIS server.
Troubleshooting
The following represent issues that I have experienced when installing and configuring Roundcube on IIS.
The UI shows an error “Connection error (failed to reach the server)” however e-mail is successfully delivered to the intended recipient and appears in the sent items folder
This is caused by an NTFS permissions issue on the logs directory. If Roundcube cannot write to its log file, an error indicating that the SMTP server could not be contacted is displayed to the user. Review the permissions on your Temp and Logs folder, pay specific attention to ensuring that IUSR and your ‘IIS AppPool\<name>’ have modify permissions on both folders including directory traversal into those folders (i.e. on the parent folder(s) too).
The Roundcube login screen loads, however you cannot log-in using a valid username and password. Error messages including the phrase “Empty startup greeting” are logged in the Roundcube log file
This is caused by a communication error between the HTTPd server and the IMAP server. It could be an invalid IP address or FQDN in your configuration file. It could be caused by a firewall or iy may be caused by anti-SPAM/anti-brute-force security mehanisms on your mail server. If you IMAP server is configured to automatically ban users who present invalid credentials more than # times, then your HTTPd servers IP address may have been added to a ban list. Ensure that your mail server has not been banned and that its IP address is added to a white list.
How to install Roundcube webmail on Windows? Roundcube is a popular, open-source webmail client known for its user-friendly interface and robust features. Installing it on a Windows system involves several steps, including setting up a web server, configuring PHP, and installing the Roundcube application. This guide provides a detailed walkthrough to help you how to install Roundcube Webmail on Windows and run on a Windows machine.
Prerequisites
Before you start, ensure you have the following:
- Windows OS: A Windows 10 or later version is recommended.
- Administrator Privileges: You’ll need admin access to install and configure the necessary software.
- Internet Access: To download required components.
- Email Server: Roundcube is a webmail client, so you’ll need an existing email server (e.g., Postfix, Dovecot, or Microsoft Exchange).
- Web Server Software: Apache or IIS (Internet Information Services).
- PHP: Version 7.4 or higher.
- Database: MySQL, MariaDB, or PostgreSQL.
How to Install Roundcube Webmail on Windows? Step-by-Step Guide
Step-1: Install a Web Server
The 1st step is to install a web server. For this guide, we’ll use XAMPP, which bundles Apache, MySQL, PHP, and Perl, making it easier to set up.
- Download XAMPP:
- Visit the official XAMPP website.
- Download the installer compatible with your Windows version.
- Install XAMPP:
- Run the installer and follow the prompts.
- During installation, ensure Apache and MySQL components are selected.
- Start Apache and MySQL:
- Open the XAMPP Control Panel.
- Click the “Start” buttons for Apache and MySQL.
Step-2: Configure PHP
Roundcube requires specific PHP modules to function correctly.
- Locate the PHP Configuration File:
- In your XAMPP installation directory (e.g., C:\xampp\php), locate the php.ini file.
- Enable Required PHP Extensions:
- Open php.ini in a text editor.
- Uncomment the following lines (remove the semicolon at the beginning):
extension=openssl
extension=pdo_mysql
extension=mbstring
extension=intl
extension=fileinfo - Save and close the file.
- Restart Apache:
- Go back to the XAMPP Control Panel and restart Apache to apply the changes.
Step-3: Set Up the Database
Roundcube requires a database to store user data and configurations.
- Access phpMyAdmin:
- Open a browser and navigate to http://localhost/phpmyadmin.
- Create a Database:
- Click on the “New” button in the left-sidebar.
- Enter a name for your database (e.g., roundcube).
- Choose “utf8mb4_general_ci” as the collation and click “Create.”
- Create a Database User:
- Go to the “Privileges” tab and click “Add user account.”
- Enter a username and a strong password.
- Assign this user all privileges for the roundcube database.
Step-4: Download and Extract Roundcube
- Download Roundcube:
- Visit the Roundcube website.
- Download the latest stable version.
- Extract Files:
- Extract the downloaded archive to the htdocs directory in your XAMPP installation (e.g., C:\xampp\htdocs\roundcube).
Step-5: Configure Roundcube
- Start the Installer:
- Open a browser and navigate to http://localhost/roundcube/installer.
- System Requirements Check:
- The installer will check for required components and modules. Resolve any missing dependencies as indicated.
- Database Configuration:
- Provide the database details:
- Database Type: MySQL
- Database Server: localhost
- Database Name: roundcube
- Database User: The username you created earlier
- Password: The password you created earlier
- Click “Initialize Database.”
- Provide the database details:
- SMTP and IMAP Settings:
- Enter the details for your email server:
- IMAP Server: Your email server’s address (e.g., imap.example.com)
- SMTP Server: Your email server’s address (e.g., smtp.example.com)
- Authentication: Provide the credentials for your email account.
- Complete Installation:
- Once all configurations are set, click “Create Config” and save the generated configuration file as config.inc.php in the config directory (e.g., C:\xampp\htdocs\roundcube\config).
- Remove the installer directory for security purposes.
Step-6: Test Roundcube
- Access Roundcube:
- Open a browser and navigate to http://localhost/roundcube.
- Log In:
- Enter your email credentials to log in and test the installation.
- Verify Functionality:
- Check if you can send & receive emails without issues.
Troubleshooting Tips
- Port Conflicts:
- If Apache fails to start, ensure no other application is using port 80 or 443.
- Change the port settings in the httpd.conf file if necessary.
- PHP Errors:
- Double-check the php.ini configuration to ensure all required extensions are enabled.
- Database Connection Issues:
- Verify the database credentials and ensure the MySQL service is running.
Conclusion
By following these steps, you can successfully install Roundcube webmail on a Windows system. Roundcube provides a robust and user-friendly interface for managing your email, making it an excellent choice for individuals and organizations alike. With its open-source nature, you can also customize it to suit your specific needs.
Roundcube — это популярное веб-приложение для управления электронной почтой, обеспечивающее удобный интерфейс и мощные функции. Оно поддерживает IMAP и SMTP, а также позволяет пользователям управлять своей почтой через браузер. В этой статье мы подробно рассмотрим, как установить и настроить Roundcube на вашем сервере.
Ознакомиться с тарифами VPS хостинга можно тут
1. Что такое Roundcube?
Roundcube — это клиент веб-почты с открытым исходным кодом, который предоставляет пользователям полный набор функций для работы с электронной почтой. Он имеет:
- Удобный интерфейс на основе AJAX.
- Поддержку нескольких языков.
- Возможность интеграции с различными почтовыми серверами.
- Расширяемость за счет плагинов.
2. Системные требования
Перед установкой Roundcube убедитесь, что ваш сервер соответствует следующим минимальным требованиям:
- Веб-сервер (Apache, Nginx или другой).
- PHP версии 7.3 или выше.
- Расширения PHP:
mbstring,gd,intl,json,mysqliиxml. - База данных (MySQL, PostgreSQL или SQLite).
3. Установка Roundcube
3.1 Подготовка окружения
Перед началом установки Roundcube необходимо подготовить сервер:
-
Обновите пакеты:
sudo apt update
sudo apt upgrade -
Установите необходимые пакеты:
sudo apt install apache2 php php-mbstring php-xml php-mysql php-gd php-intl
3.2 Скачивание Roundcube
Затем скачайте последнюю версию Roundcube с официального сайта:wget https://github.com/roundcube/roundcubemail/releases/download/1.6.0/roundcubemail-1.6.0-complete.tar.gz
Примечание: Замените версию на последнюю стабильную, если она изменится.
3.3 Распаковка и размещение файлов
Распакуйте архив и переместите файлы в нужную директорию:tar -xzf roundcubemail-1.6.0-complete.tar.gz
sudo mv roundcubemail-1.6.0 /var/www/html/roundcube
3.4 Настройка прав доступа
Настройте права доступа к директории Roundcube:sudo chown -R www-data:www-data /var/www/html/roundcube
sudo chmod -R 755 /var/www/html/roundcube
4. Настройка базы данных
Roundcube требует базу данных для хранения пользовательских данных и настроек. В этой части мы создадим базу данных и пользователя.
4.1 Создание базы данных
-
Войдите в MySQL:
mysql -u root -p -
Создайте базу данных для Roundcube:
CREATE DATABASE roundcube; -
Создайте пользователя и предоставьте ему доступ к базе данных:
CREATE USER 'roundcubeuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON roundcube.* TO 'roundcubeuser'@'localhost';
FLUSH PRIVILEGES;
Замените 'password' на надежный пароль.
4.2 Импортирование структуры базы данных
Перейдите в директорию Roundcube и импортируйте структуру базы данных:cd /var/www/html/roundcube/SQL
mysql -u roundcubeuser -p roundcube < mysql.initial.sql
5. Настройка конфигурации Roundcube
Теперь, когда база данных готова, необходимо настроить Roundcube.
5.1 Копирование конфигурационного файла
Скопируйте файл конфигурации по умолчанию:cp config/config.inc.php.sample config/config.inc.php
5.2 Редактирование конфигурационного файла
Откройте файл config.inc.php для редактирования:nano config/config.inc.php
В этом файле вам нужно будет изменить следующие параметры:
-
База данных:
$config['db_dsnw'] = 'mysql://roundcubeuser:password@localhost/roundcube';Замените
passwordна пароль, который вы установили ранее. -
Путь к плагинам (если нужно):
$config['plugins'] = array('managesieve', 'zipdownload');
6. Настройка веб-сервера
6.1 Настройка Apache
Если вы используете Apache, создайте конфигурационный файл для Roundcube:sudo nano /etc/apache2/sites-available/roundcube.conf
Добавьте в файл следующий конфигурационный код:Alias /roundcube /var/www/html/roundcube
<Directory /var/www/html/roundcube/>
Options +FollowSymLinks
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_route=$1 [QSA,L]
</IfModule>
6.2 Включение конфигурации и модулей
Включите новый сайт и необходимые модули:sudo a2ensite roundcube.conf
sudo a2enmod rewrite
sudo systemctl restart apache2
7. Завершение установки
Теперь, когда все настройки завершены, откройте веб-браузер и перейдите по адресу:http://your-server-ip/roundcube
Следуйте инструкциям на экране для завершения установки. Если все настройки правильные, вы увидите интерфейс Roundcube.
8. Настройка Roundcube
После успешной установки и первоначальной настройки Roundcube вы можете настраивать его в соответствии с вашими потребностями.
8.1 Настройка почтовых аккаунтов
Чтобы Roundcube мог работать с вашим почтовым сервером, необходимо настроить параметры доступа к почтовым ящикам. Это можно сделать через файл config/config.inc.php.
-
Настройте параметры доступа к почтовым ящикам:
$config['default_host'] = 'ssl://imap.your-email-provider.com';
$config['smtp_server'] = 'ssl://smtp.your-email-provider.com';
Замените your-email-provider.com на адреса вашего почтового провайдера.
8.2 Настройка плагинов
Roundcube поддерживает множество плагинов, которые могут расширить его функциональность. Чтобы установить плагин, выполните следующие шаги:
-
Загрузите плагин и разместите его в директории
plugins:cd /var/www/html/roundcube/plugins
git clone https://github.com/roundcube/pluginname.git -
Включите плагин, добавив его имя в массив
$config['plugins']в файлеconfig.inc.php.
8.3 Изменение тем оформления
Вы можете настроить внешний вид Roundcube, изменив тему оформления. Для этого просто загрузите новую тему в директорию skins и настройте её в конфигурационном файле.
9. Обновление Roundcube
Чтобы обновить Roundcube до последней версии, выполните следующие шаги:
-
Создайте резервную копию текущей версии:
tar -czf roundcube-backup.tar.gz /var/www/html/roundcube -
Загрузите последнюю версию Roundcube и распакуйте её:
wget https://github.com/roundcube/roundcubemail/releases/download/1.6.0/roundcubemail-1.6.0-complete.tar.gz
tar -xzf roundcubemail-1.6.0-complete.tar.gz -
Скопируйте конфигурационные файлы из резервной копии в новую версию:
cp -r /var/www/html/roundcube/config/* /var/www/html/roundcubemail/config/ -
Обновите базу данных, если требуется:
cd /var/www/html/roundcubemail/SQL
mysql -u roundcubeuser -p roundcube < mysql.upgrade.sql
10. Устранение неполадок
Если вы столкнулись с проблемами при установке или настройке Roundcube, вот несколько распространенных решений:
- Проблемы с доступом к базе данных: Проверьте параметры подключения к базе данных в файле
config.inc.php. - Ошибка 500: Убедитесь, что у вас правильно настроены права доступа к файлам и директориям.
- Не отображается интерфейс: Проверьте, включены ли необходимые модули PHP и правильно ли настроен веб-сервер.
Заключение
Roundcube — это мощное и удобное веб-приложение для работы с электронной почтой. Установив и настроив его, вы получите доступ к множеству функций и возможностей управления почтой. Надеемся, что эта статья помогла вам в процессе установки и настройки Roundcube на вашем сервере.
Теперь вы готовы использовать Roundcube для управления своей электронной почтой. Успехов в работе с этим мощным инструментом!
