On Thu, 2008-05-01 at 23:32 -0500, Kyle Wheeler wrote:
I do that; it's pretty easy, once you figure it out, but it's not really an obvious trick.
Why is it a trick, though? There appears to be two documented methods to do multiple domains with one install - either one should be enough
I've never played with that... I prefer things I can read all at once.
Here's what I do:
$vdomainmapping = array( 'domain1.com' => 'domain1.com', 'www.domain1.com' => 'domain1.com', 'domain2.com' => 'domain2.com', 'www.domain2.com' => 'domain2.com', ); if (isset($vdomainmapping[$_SERVER['HTTP_HOST']])) { $rcmail_config['username_domain'] = $vdomainmapping[$_SERVER['HTTP_HOST']]; } else { $rcmail_config['username_domain'] = ''; }
Holy shit. Firstly, where do I put that? Secondly, why the hell is any of that necessary when roundcube is supposed to have easily configurable, built in support for multiple domains?! I'm absolutely dumb founded.
Thanks for the reply. I appreciate it.
Regards,
Ranbir