To change the roundcube webmail login page attributes via custom config file..
Actually roundcube is very flexible to change many things. All the attributes are in the main config file to play over. Here the idea we provide is not to go and change anything on the original config file, but we adding our custom webmail config file together with the original. So,in future if there is any updates, we simply just include this custom file again - That's it..!
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; $rcmail_config['skin_logo'] = '../logo.png';
- Place this file into the same location of the original config file (Eg: /etc/roundcube/custom_config.inc.php)
- 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';