Roundcube Community Forum

 

Multiple Domains Login with out filling host field on login page.

Started by resellertr, December 05, 2010, 10:12:59 PM

Previous topic - Next topic

resellertr

Hi,

I installed round cube on rc.mydomain.com , I want any one to use my rc.mydomain.com to check their mail. They will only enter email address and password, roundcube will use their mail server by replacing [email protected] to mail.email.com.

I searched forum but can not find exact answer.

resellertr

I found solution

I modified mail.inc.php

$usersplit = explode('@', get_input_value('_user', RCUBE_INPUT_POST));
$host = "mail.$usersplit[1]";
$rcmail_config['default_host'] = $host;