How to know default webmail client that user uses for email box Horde or Roundcube on a cPanel server

To check the default webmail client that a user uses for their email box on a cPanel server, you can use the following command:

egrep "roundcube|horde" /home/*/.cpanel/nvdata/*_default_webmail_app

It will show a user, email box and default webmail app that set up by the user by default

 … Read the rest

SMTP : Message size exceeds server limit

Check the message_size_limit value

exim -bP | grep message_size_limit

message_size_limit = 50M

Increase if needed in

Since recently:

Rebuild and restart exim:

service exim restart

If you’re still getting the problem please view the following explanation:

SMTP Error: Message size exceeds server limit


 … Read the rest

How to fix RoundCube’s error: DATABASE ERROR: CONNECTION FAILED!

Mysql server and InnoDB engine must to be running!

Check mysql connection:

cat /usr/local/cpanel/base/3rdparty/roundcube/config/ |grep mysql:
$config['db_dsnw'] = 'mysql://roundcube:lasMubMX08D3HKtr@unix(/var/lib/mysql/mysql.sock)/roundcube';
mysql -u roundcube -p
show tables;

All tables should be in place:

| Tables_in_roundcube |
| cache               |
| cache_index         |
| cache_messages      |
| cache_shared        |
| cache_thread        |
| contactgroupmembers |
| contactgroups       |
| contacts            |
| cp_schema_version   |
| dictionary          |
| identities          |
| searches            |
| session             |
| system              |
| users               |
15 rows in set (0.00 sec)

Cpanel keeps roundcube backups here:


Go ahead and drop broken database

mysqladmin drop roundcube

Rebuild roundcube using the following two commands:

rpm -e --nodeps cpanel-roundcubemail

/usr/local/cpanel/scripts/check_cpanel_rpms --fix

Database roundcube should be recreated automatically.
Read the rest