Author Topic: Help about "Alternate Solution for the Multiple Host Domain"  (Read 3227 times)

Offline sghedo

  • Newbie
  • *
  • Posts: 1
Help about "Alternate Solution for the Multiple Host Domain"
« on: September 29, 2010, 03:22:08 PM »
Hi!

Let's imagine that my webmail is installed on wm.domain1.com.
From that installation I want to check email of domain2.com.

I followed what's written here (Howto_Config ? Roundcube Webmail) on the last point.
That means that I added these rows to the main config file:

$rcmail_config['include_host_config'] = array(
  'mail.domain1.com' => 'domain1_config.inc.php',
  'mail.domain2.com' => 'domain2_config.inc.php'
);

Then I have created the file domain2_config.inc.php with this content:

// ----------------------------------
// IMAP
// ----------------------------------
$rcmail_config['default_host'] = 'imap.domain2.com';
?>

Then I tried to login with one of the accounts setted up on domain2.com butI cant login. Do I have to do anything more?

Thanks in advance!
d

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Help about "Alternate Solution for the Multiple Host Domain"
« Reply #1 on: September 30, 2010, 01:44:02 AM »
Quote
Then I tried to login with one of the accounts setted up on domain2.com butI cant login.
Please provide more information.... is there anything in the rc error log ([rc root]/logs/errors)? is there anything in your imap server log? can you login to the same server using the same creds from a different client?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline dracorp

  • Newbie
  • *
  • Posts: 5
Help about "Alternate Solution for the Multiple Host Domain"
« Reply #2 on: October 11, 2010, 06:57:05 AM »
include_host_config is depends to $_SERVER['HTTP_HOST'] not $rcmail_config['default_host']
e.g.
Code: [Select]
$rcmail_config['include_host_config'] = array(
    'mail.domain1.tld' => 'mail.domain1.tld.inc.php',
    'mail.domain2.tld' => 'mail.domain2.tld.inc.php'
);

When you enter the site http://mail.domain1.tld mail.domain1.tld.inc.php file is read. And when you enter the site http://mail.domain2.tld then mail.domain2 file is read.