Let's add a calendar plugin to Roundcube webmail. The plugin allows you to create several types of calendars, add events, etc., which adds to the convenience of work. Once installed, the plugin can be configured in the Roundcube configuration.
This guide assumes that you have already configured the mail server itself and that you need to install the calendar plugin. More information about setting up a mail server can be found here:
You can also order a VPS with a pre-configured operating system and get a ready-made corporate mail server for the price of a VPS server.
1. Install the Calendar Roundcube Plugin
cd /tmp
git clone https://git.kolab.org/diffusion/RPK/roundcubemail-plugins-kolab.git
cd /usr/share/nginx/html/webmail/plugins
cp -r /tmp/roundcubemail-plugins-kolab/plugins/calendar .
cp -r /tmp/roundcubemail-plugins-kolab/plugins/libcalendaring .
cp -r /tmp/roundcubemail-plugins-kolab/plugins/libkolab .
2. Copy settings
cd calendar/
cp config.inc.php.dist config.inc.php
vi config/config.inc.php
Let's add our plugin to the main Roundcube config
$config['plugins'] = array(
(...)
'calendar',
);
3. Install tables in the database
cd ../../
bin/initdb.sh --dir=plugins/calendar/drivers/database/SQL
4. Install the missing modules
apt install php-sabre-*
apt install composer
cd /usr/share/nginx/html/webmail
composer require sabre/dav ~3.2.0 --no-update
composer require sabre/dav ~3.2.0
4.1 When prompted to install roundcube/plugin-installer
When asked to install the module (roundcube/plugin-installer), answer n (No).
You can check the calendar, an icon will appear in the left menu of Roundcube.
In some cases, the calendar is displayed without styles, in this case you need to run the following commands
apt install node-less
lessc -x /usr/share/nginx/html/webmail/plugins/libkolab/skins/elastic/libkolab.less > /usr/share/nginx/html/webmail/plugins/libkolab/skins/elastic/libkolab.min.css
Refresh the page, the calendar should display correctly.