Third Party Contributions > Old Style Plug-Ins
Multiple Domains Login
wheaties82:
First off I am a noob to this so go gentle on me . . . I am experiencing a strange issue with Roundcube 0.2-beta.
I have an email server that has two virtual domains and Postfix is configured to accept mail for either domainA or domainB. so johndoe@domainA can also be johndoe@domainB -- same email (aka johndoe can log into domainA or domainB and see the same Maildir files) just different mail servers are used for sending / receiving.
I have installed RC for domainA already with its own independent database and user. It is functioning properly.
In a separate folder with a new installation (independent directory from domainA) I have another installation referencing a (new) seperate database and user. The installation summary ends without an issue -- everything says it is ok, I can even send a test email. The strange issue is when I attempt to do a test login (or normal login) I get a timeout error. Below are examples:
[08-Dec-2008 23:02:50] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /var/www/domainB/webmail/program/lib/imap.inc on line 317
[08-Dec-2008 23:08:23] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /var/www/domainB/webmail/program/lib/imap.inc on line 208
I have verified that domainB is working with IMAP as I can login to the account via thunderbird and send and receive without any problems. I have verified that all my MX and DNS records are correct -- as I can send and receive email no problem
I have tried sharing the same database as domainA but I get the same results -- a timeout and error referrencing imap.inc
I have read the posts included in this thread but they all seem to point to solutions where the user has to enter '@domainA' after the username -- and my server is not configured to do that -- it only needs the username.
Am I incorrect in assuming that Roundcube is capable of having two independent installations referencing different domains on the same server?
:confused::confused::confused:
zhylninc:
and nginx config
location / {
proxy_pass http://192.168.1.2/;
proxy_set_header Host $host;
}
proxy_set_header Host $host;
;)
egrogg:
--- Quote from: Mickey;7794 ---I'll just add my 2 cents here. This works fine for us with multiple domains:
we have mail.***.com domains pointing to one rc install. This hack works
like: if the domain has a prefix "mail" then it get's rid of the server part and
@domain part in login. if no "mail" prefix found it displays the standard login
form where you have to type in everything:
in config/main.inc.php add this:
--- Code: ---function getDomain() {
$host=$_SERVER['HTTP_HOST'];
$prefix='mail';
$arr=explode('.',$host);
if ($arr[0]==$prefix) { unset($arr[0]); $host=implode('.',$arr); }
else { $host=''; }
return $host;
}
--- End code ---
and modify the following 2 config lines:
--- Code: ---$rcmail_config['default_host'] = getDomain();
--- End code ---
--- Code: ---$rcmail_config['username_domain'] = getDomain();
--- End code ---
Hope this is helps for someone,
Mickey
--- End quote ---
This solution works great! Perfect instructions!
is there a way to change the logo and the "Welcome to *** webmail" per domain?
I have them going to wmail.domain1.com and wmail.domain2.com
SKaero:
Do the same thing for $rcmail_config['product_name'].
egrogg:
Ahh..I C...
I am guessing here but maybe for the logo there would need to be some kind of "if" statement? I am not a programmer so, maybe if someone would know how to do that, it would be great...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version