Alter the settings of your RoundCube webmail login page using a customĀ config file
In reality, Roundcube’s adaptability allows for many customizations. All the settings are stored in the main configuration file. Here, instead of advising you to alter the original config file, we suggest you simply include our own custom webmail config file alongside the original. Whenever an update is released in the future, all we have to do is re-include this specialised file and we’re good to go.
Tricks to change Roundcube webmail title, logo image, footer, user login without domain name specifying
Steps to include custom config file:
- Create a new file called ‘custom_config.inc.php’
- Include these attributes inside the php file
$rcmail_config['username_domain'] = '%n';
preg_match("/[^\.\/]+\.[^\.\/]+$/", $_SERVER['HTTP_HOST'], $matches);
$rcmail_config['product_name'] = $matches[0];
$rcmail_config['skin_logo'] = '../logo.png';
3. Place this file into the same location of the original config file (Eg: /etc/roundcube/custom_config.inc.php)
4. Include this file entry at after the very last line of the roundcube webmail’s config.inc.php
Eg:
// end of config file
include 'custom_config.inc.php';