Author Topic: Multiple Domains Login with out filling host field on login page.  (Read 5253 times)

Offline resellertr

  • Newbie
  • *
  • Posts: 2
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@email.com to mail.email.com.

I searched forum but can not find exact answer.

Offline resellertr

  • Newbie
  • *
  • Posts: 2
Multiple Domains Login with out filling host field on login page.
« Reply #1 on: December 05, 2010, 10:55:58 PM »
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;