I had to configure webmail service with Roundcube which would allow connecting multi mail servers o one platform. Every mail server had it’s own Roundcube instance already, but idea was, that only one installation can handle all mail servers.
I found out, that this can be done pretty symple with some php in roundcube configuration.
Open your roundcube configuration file, for example:
vi /var/www/roundcube/config/config.inc.php
Fetch correct hostname for specific webmail instance in php variable.
$host = $_SERVER['SERVER_NAME'];
Then you should create switch statement that will be able to manage correct database connection and host for specific server name – mail service. You can also have different types of database. For example mysql and postgres.
Continue Reading
Recent Comments