I'm setting up roundcube on an account hosted by Mosso.com.
I've set my host to:
$rcmail_config['mail_domain'] = 'jtpre.com';
However, even though the server box is hidden at the login screen it will only log in if I put then entire email address for the username. I'm using the latest beta build from the website, not CVS.
Can someone point out what I'm missing here?
-Geuis
As I understand this is because there are many one-domain-per-ip servers which will not understand such login names. I applied a JavaScript patch for auto-appending domain.
-----Original Message----- From: "Geuis Teses" geuis.teses@gmail.com To: "RoundCube Dev" dev@lists.roundcube.net Date: Tue, 18 Apr 2006 11:48:08 -0400 Subject: RC doesn't append @domain.com even with host specificed
I'm setting up roundcube on an account hosted by Mosso.com.
I've set my host to:
$rcmail_config['mail_domain'] = 'jtpre.com';
However, even though the server box is hidden at the login screen it will only log in if I put then entire email address for the username. I'm using the latest beta build from the website, not CVS.
Can someone point out what I'm missing here?
-Geuis
Well, I fixed this by changing this line in index.php:
else if (isset($_POST['_user']) && isset($_POST['_pass']) && rcmail_login($_POST['_user'], $_POST['_pass'], $host))
By changing it to:
else if (isset($_POST['_user']) && isset($_POST['_pass']) && rcmail_login($_POST['_user'].'@jtpre.com', $_POST['_pass'], $host))
In my case, I hard-coded our domain. A more general fix might be like this:
else if (isset($_POST['_user']) && isset($_POST['_pass']) && rcmail_login($_POST['_user'].'@'.$host, $_POST['_pass'], $host))
Hope this helps someone.
Geuis
On 4/18/06, Aux aux@liqu.id.lv wrote:
As I understand this is because there are many one-domain-per-ip servers which will not understand such login names. I applied a JavaScript patch for auto-appending domain.
-----Original Message----- From: "Geuis Teses" geuis.teses@gmail.com To: "RoundCube Dev" dev@lists.roundcube.net Date: Tue, 18 Apr 2006 11:48:08 -0400 Subject: RC doesn't append @domain.com even with host specificed
I'm setting up roundcube on an account hosted by Mosso.com.
I've set my host to:
$rcmail_config['mail_domain'] = 'jtpre.com';
However, even though the server box is hidden at the login screen it will only log in if I put then entire email address for the username. I'm using the latest beta build from the website, not CVS.
Can someone point out what I'm missing here?
-Geuis
Looks like you just catched the wrong config parameter. Since mail servers use different forms for logins, there are two parameters doing similar things:
'mail_domain' will append the given string to the user name in order to form a valid e-mail address when creating a new user identity after the first login. This is only used if the mail server does not require full e-mail addresses for login.
'username_domain' would do what you are looking for. The given string will be added to the user name before performing the IMAP login.
Both config parameters can also contain an array with entries for each IMAP host name. Example: array('imap-host' => 'mail-domain').
Regards, Thomas
Geuis Teses wrote:
I'm setting up roundcube on an account hosted by Mosso.com http://Mosso.com.
I've set my host to:
$rcmail_config['mail_domain'] = 'jtpre.com http://jtpre.com';
However, even though the server box is hidden at the login screen it will only log in if I put then entire email address for the username. I'm using the latest beta build from the website, not CVS.
Can someone point out what I'm missing here?
-Geuis