Skip to main content

Posts

Showing posts from 2018

CWP: After adding Hostname SSL, Roundcube unable to load the message in a Frame (Solved)

I have successfully added Let's Encrypt SSL certificate for my Sever Hostname/FQDN but the issue is that When I am logging on my Roundcube mail , The messages is not showing on a same Frame.

Open the file
# vi /usr/local/apache/conf.d/ssl.conf Header always set X-Frame-Options DENY
and can be changed to
# vi /usr/local/apache/conf.d/ssl.conf Header always set X-Frame-Options SAMEASORIGIN Now login to your webmail and check .

Solved : CWP Roundcube Login Problem [ Connection to storage server failed ]

I'm getting problem after CWP mail server migration from existing server to new server. It's showing  Connection to storage server failed ,
General Troubleshooting Tips
Run “postfix check” to make Postfix look for obvious configuration errors. If it returns no output then no problem was found.Read your /var/log/dovecot.log & /var/log/mail.log and look for warnings and errors. I'm getting the following information from /var/log/dovecot.log
I get “Permission denied” from Dovecot in the mail.log file. You have the permissions wrong.
Run the following command
# chown -R vmail:mail /var/vmail Finally all user's of that domain can login successfully .
This post is based on this article.
Link 1
Link 2

CWP: How to check Roundcube All Configuration using Roundcube Webmail Installer

I am going to show you that How to check Roundcube All Configuration using Roundcube Webmail Installer. In this way you will see all the details about PHP version, missing PHP extensions, available databases, required 3rd party libs, php.ini/.htaccess settings and many more details.

Let's do the following
[root@host ~]# cd /usr/local/src/ [root@host src]# git clone https://github.com/roundcube/roundcubemail.git Cloning into 'roundcubemail'... remote: Enumerating objects: 210, done. remote: Counting objects: 100% (210/210), done. remote: Compressing objects: 100% (141/141), done. remote: Total 117796 (delta 72), reused 130 (delta 63), pack-reused 117586 Receiving objects: 100% (117796/117796), 57.28 MiB | 1.62 MiB/s, done. Resolving deltas: 100% (81855/81855), done. Go to the following directory
[root@host src]# cd roundcubemail/ [root@host roundcubemail]# pwd /usr/local/src/roundcubemail [root@host roundcubemail]# cp -rvf installer /usr/local/cwpsrv/var/services/roundcube…

CWP: Configure Default Roundcube settings as you want

Few users doesn't satisfied with default Rouncube feature's , Sometimes they demand more features that's why we will change the default setting as we want .
I'm showing some changes in below :
Edit the file as follows
# vi /usr/local/cwpsrv/var/services/roundcube/config/defaults.inc.php // Log successful/failed logins to /userlogins or to syslog $config['log_logins'] = true; // Log IMAP conversation to /imap or to syslog $config['imap_debug'] = true; // Log SMTP conversation to /smtp or to syslog $config['smtp_debug'] = true;// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA. // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING! $config['enable_installer'] = false; // provide an URL where a user can get support for this Roundcube installation // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE! $config['support_url'] = 'https://datahead.biz/support/'; // replace Roundcu…

Protect CWP RoundCube From Brute Force Attack with Google reCaptcha

reCaptcha plugin for RoundCube is a good way to protect your server against brute-force attacks on a Webmail. We will install it from the plugin's repository https://github.com/dsoares/rcguard.git. The addon was tested on CWP7.admin, CentOS Linux release 7.6.1810 (Core ) and RoundCube version 1.2.3 & also this addon tested with RoundCube version 1.3.8 Let's add the Google's reCaptcha into the RoundCube's login form on CWP.

Step 1: First install git on your server. If it's missing you can install it either from your OS repository with a package manager or from sources.
Install Git
# yum install git -yClone the plugin through git
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/ # git clone https://github.com/dsoares/rcguard.git rcguard If you see an error you should read everything carefully and try to resolve it. Please feel free to contact us if anything goes wrong here.
Change directory permission
# chown -R cwpsvc:cwpsvc rcguard/Rename the config file
# cd rcg…

CWP: How to Install tasklist or todolist for Rouncube

This plugin currently supports a local database as well as a Kolab groupware server as backends for tasklists and todo items storage.

1. Install the dependencies with Composer (This has to be done from the Roundcube root directory)
# cd /usr/local/cwpsrv/var/services/roundcube # php composer.phar require sabre/vobject 3.3.3 # composer require kolab/tasklist Follow the snapshot instruction
Edit the Configurations as Follows
# pwd /usr/local/cwpsrv/var/services/roundcube # vi plugins/tasklist/config.inc.php // backend type (database, kolab) $config['tasklist_driver'] = 'database'; // default sorting order of tasks listing (auto, datetime, startdatetime, flagged, complete, changed) $config['tasklist_sort_col'] = 'auto'; // default sorting order for tasks listing (asc or desc) $config['tasklist_sort_order'] = 'asc'; Initialize the tasklist DataBase
# cd plugins/tasklist/ # mysql roundcube < drivers/database/SQL/mysql.initial.sql
IMPORTA…

CWP: How to Install Calendar for Rouncube

Goto the Rouncube Plugin Directory
# cd /usr/local/cwpsrv/var/services/roundcube # composer require kolab/calendar Follow the snapshot instruction
Edit the configuration as follows
# vi plugins/calendar/config.inc.php // backend type (database, google, kolab) $config['calendar_driver'] = "database"; // default calendar view (agendaDay, agendaWeek, month) $config['calendar_default_view'] = "month"; // show a birthdays calendar from the user's address book(s) $config['calendar_contact_birthdays'] = true; // general date format (only set if different from default date format and not user configurable) $config['calendar_date_format'] = "dd-MM-yyyy"; // time format (only set if different from default date format) // $config['calendar_time_format'] = "HH:mm"; // short date format (used for column titles) // $config['calendar_date_short'] = 'M-d'; // long date format (used for calendar ti…

CWP: How to upgrade from RoundCube Mail Version 1.2.3 to RoundCube Mail Version 1.3.8

The new Version of Roundcube 1.3 have clear Interface with modern look also in this version some major security holes were fixed. It is recommended to update the roundcube to latest version. Under latest version you can also configure calendar plugin faultlessly which are available on roundcube plugins site.

PHP Configuration
As any other PHP application some of its aspects depend on PHP settings. You should use php.ini or .htaccess (Apache module) or .user.ini (CGI/FastCGI SAPI) depending on your server setup. Roundcube when running will check most critical settings, try to set them and let you know if something's wrong. Here's a minimal list of settings that you might need to use (with suggested value):
# vi /usr/local/php/php.ini # vi /usr/local/cwp/php71/php.ini Memory limit: memory_limit=64M,Options that control logging: display_errors=Off, log_errors=On, error_log=logs/errors.log,Options that control file uploads (e.g. max attachment size): upload_max_filesize=5M, post_max…

CWP: How to Install new Theme (Roundcube Plus free skins ) for Roundcube

Visit the following website https://roundcubeplus.com/portfolio for Roundcube Theme and select 'Skin - Litecube Free' and Follow the next procedure to download.
After  successfully registration, You will get the License key and download link .
$config['license_key'] = 'RCP-wZpzy---xrq8'; In order to use the skins or plugins, you must add your license key to the Roundcube config file. Edit the file config/config.inc.phpand place this line at the end:
# vi /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php $config['license_key'] = 'RCP-wZpzy---xrq8'; Roundcube Plus free skins add a new look to the Roundcube program. They are simplified versions of their commercial counterparts: they don't include the mobile support.
Installation steps1. Upload the tar.gz file to /usr/local/src directory

2. Copy the directories 'skins' and 'plugins' to the directory where your Roundcube is installed.
# cd /usr/local/src/ # tar xvzf round…

CWP: How to Add/Enable Roundcube Plugins

Go to bottom of the configuration file of /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php there is a list of plugins that Roundcube loads. The “archive” , “zipdownload”  , “managesieve” and  “password” plugins are already enabled.
Go to the Plugin directory and list all the plugins
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/# llYou can check all plugins from the plugins directory.
Add the “markasjunk” , “emoticons” and“new_user_dialog” plugins so that the setting looks like this:
# vi /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php $config['plugins'] = array(    'archive',    'zipdownload',    'managesieve',    'password',    'rcguard',   'markasjunk',    'emoticons',    'new_user_dialog', ); Plugin emoticons add smileys, and is responsible for the markasjunk plugin adds a toolbar button that moves the email to the Spam folder. And thanks to the plugi…

CWP: How to Change Roundcube Theme

Easy and Best Way to Change Roundcube Theme Go to The Following directory

Step: 1
# cd /usr/local/cwpsrv/var/services/roundcube/config # vi defaults.inc.php
Step: 2
# cd /usr/local/cwpsrv/var/services/roundcube/config # vi config.inc.php

CWP: How to install composer.phar or Could not open input file: composer.phar (solved)

Go to your Roundcube Directory
# cd /usr/local/cwpsrv/var/services/roundcube # php composer.phar install Could not open input file: composer.phar # composer --version -bash: composer: command not found # curl -sS https://getcomposer.org/installer | php # php composer.phar install # curl -sS https://getcomposer.org/installer | php # mv composer.phar /usr/local/bin/composer.phar # alias composer='/usr/local/bin/composer.phar' # composer --version This post is based on this article.
Link 1
Link 2

CWP: Customize Roundcube Webclient for Branding!

Roundcube is an open source webmail client. And out of all the opensource webmail clients it probably is one of the best. Many hosting packages come with an option to install of use roundcube.
Changing Roundcube Logo
# cd /usr/local/cwpsrv/var/services/roundcube/skins/larry/images# cp -p roundcube_logo.png roundcube_logo.png.orig Upload your own logo here with named roundcube_logo.png and Replace the existing & Give the following Permission
# chown -R cwpsvc:cwpsvc roundcube_logo.pngChanging Roundcube Favicon 
# cd /usr/local/cwpsrv/var/services/roundcube/skins/larry/images # cp -p favicon.ico favicon.ico.orig Upload your own Favicon here with named favicon.ico and Replace the existing & Give the Following Permission
# chown -R cwpsvc:cwpsvc favicon.icoAnd Finally Do the same thing for this location
# cd /usr/local/cwpsrv/var/services/roundcube/skins/classic/imagesChanging Roundcube Title & Add Support URL
# cd /usr/local/cwpsrv/var/services/roundcube # vi config/config.inc.php …

CWP: How to enable Vacation Option in Rouncube Webmail using managesieve

By default 'managesieve' plugin is enabled in CentOS Webpanel (CWP) Rouncube's Plugins array . And we need to ensure that the 'managesieve plugin is enable by do the following  (Go to Line number 79) , If not then add the plugin manually 
# vi /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php $config['plugins'] = array(    'archive',    'zipdownload',    'managesieve',    'password', ); So it would look like the following (From Line number 79):
Configuring the 'managesieve' plugin
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/ # cp -p managesieve/config.inc.php.dist managesieve/config.inc.php # vi managesieve/config.inc.php // Enables separate management interface for vacation responses (out-of-office) // 0 - no separate section (default), // 1 - add Vacation section, // 2 - add Vacation section, but hide Filters section $config['managesieve_vacation'] = 1; Here is the outpu…

CWP: Configure Roundcube Password Policy

First Ensure The Roundcube Password Plugins is enabled in the following configuration file . I'm showing you the minimum changes but you can change your own rules .
# cat /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php  $config['plugins'] = array(    'archive',    'zipdownload',    'managesieve',    'password',  ); Configuring the password plugin
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/cp -p password/config.inc.php.dist password/config.inc.php The first setting deals with the minimal length of the password. I recommend to enforce at least 8 characters.
# vi password/config.inc.php // Determine whether current password is required to change password. // Default: false. $config['password_confirm_current'] = true; // Require the new password to be a certain length. // set to blank to allow passwords of any length $config['password_minimum_length'] = 8; // Enables logging of password …

CWP: Configuring Default Installed Roundcube Plugins after CentOS WebPanel Fresh Installation

There are some (Probably 4) Roundcube Plugins will be installed automatically when you install CWP that's need to be configured. Go to Line number 79,
# vi /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php $config['plugins'] = array(    'archive',    'zipdownload',    'managesieve',    'password', ); So it would look like the following (From Line number 79):
1.There is no config.inc.php file in archive plugin directory. So no need to configure the 'archive' plugin.
2.Configuring the 'zipdownload' plugin
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/cp -p zipdownload/config.inc.php.dist zipdownload/config.inc.php3.Configuring the 'managesieve' plugin
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/cp -p managesieve/config.inc.php.dist managesieve/config.inc.php4.Configuring the 'password' plugin
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/cp -p password/co…

How to Upgrade PHP 5.6 to PHP 7.3.x Stable Release on CentOS 7 for VestaCP ?

In this tutorial I’ll show you how to upgrade from PHP 5.6.x to PHP 7.3.x , I’ve tested on production server before writing this tutorial and its just working fine without any issue.  Now go to yum repo directory and Check  remi repo is available for php73
Note: If you want use Presta 1.7.5 then use PHP 7.2 , Details : Link 1
For Apache : update to PHP 7.2.x & MariaDB 10.1
For NGINX : update to PHP 7.2.x & MariaDB 10.1
Go to Yum Directory:
# cd /etc/yum.repos.d # ll Now install yum-utils, a group of useful tools that enhance yum’s default package management features. Yum-utils can be used for manipulating package repositories and additional package management operations such as enabling or disabling packages without any manual configuration by a system administrator.
You can install it as follows:
# yum install yum-utils In this step, you need to enable Remi repository using yum-config-manager utility, as the default repository for installing PHP.
# yum-config-manager --enable r…