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

Offline SadKnight

  • Newbie
  • *
  • Posts: 4
Help about "Alternate Solution for the Multiple Host Domain"2
« on: August 22, 2012, 03:32:27 AM »
Hi!

Let's imagine that my webmail is installed on webmail8.local.
From that installation I want to check email of domain2.com and domain3.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['default_host'] = array(
  'domain2.com' => 'local',
  'domain3.com' => 'internet');

$rcmail_config['include_host_config'] = array(
  'domain2.com' => 'domain2_config.inc.php',
  'domain3.com' => 'domain3_config.inc.php'
);

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

<?php

// ----------------------------------
// IMAP
// ----------------------------------
$rcmail_config['smtp_server'] = 'domain2.com';


And I have created the file domain3_config.inc.php with this content:

<?php

// ----------------------------------
// IMAP
// ----------------------------------
$rcmail_config['smtp_server'] = 'domain3.com';


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

include_host_config is depends to $_SERVER['HTTP_HOST'] not $rcmail_config['default_host']
e.g.

Thanks in advance!
« Last Edit: August 22, 2012, 04:55:30 AM by SadKnight »

Offline SadKnight

  • Newbie
  • *
  • Posts: 4
Re: Help about "Alternate Solution for the Multiple Host Domain"2
« Reply #1 on: August 29, 2012, 04:01:36 AM »
No one tell me how can I solve this problem? Or tell me how make the work with two mail servers?

Offline tilka

  • Newbie
  • *
  • Posts: 6
Re: Help about "Alternate Solution for the Multiple Host Domain"2
« Reply #2 on: September 09, 2012, 02:42:29 AM »
i use alternate plugin into ispconfig3