Skaero, thank you for your patience :-)
Well, I deleted 'cpanellogut' from the array, but still the logout is not redirected to the https URL. Just to help, I reproduce the steps I took when installing the logout_redirect plugin
1. I downloaded it and when unzipped, it will result in a folder named logout_redirect-master
2. I deleted the -master part and uploaded it to the roundcube/plugins folder in the server
3. On config.inc.php I added 'logout_redirect' to end of the array as follows: // List of active plugins (in plugins/ directory)
$config['plugins'] = array('cpanellogin','attachment_reminder','redundant_attachments','newmail_notifier','vcard_attachments','zipdownload','logout_redirect');
4. At the end of the config.inc.php file I pasted the code:
/* %d will be replaced with the default user identity email domain part
* i.e. email@domain.com will replace %d with "domain.com"
**/
$config['logout_redirect_url'] = 'https://www.mydomain.com/';
5. For every code change I did, I deleted Chrome's cookies.
Are all those steps/code ok?
Wild guesses:
Perhaps the redirect will not work with https?
When doing the login: from mydomain.com's home page, I click on a hyperlink that takes me to the WHM Webmail login page. I type user id and password and access the webmail. On logout it will redirect again to the WHM Webmail page (and not to mydomain.com's home page). Perhaps on the WHM Webmail login it will add a cookie that makes it return to the same login page on logout?