Roundcube Community Forum


how to change login format

Started by faziatic, July 03, 2006, 06:06:25 AM

Previous topic - Next topic


I'm using a fix mail server with roundcube ( and I don't want to insert the whole email-address as username every time I log in. So I'd like to know if it is possible just to enter the username?

instead of

Thanks in advance,



well depends on your mailserver. Maybe your mailserver supports logins with only the username.


In fact I have to use the whole address in my outlook-account but I thought it was possible to "hide" the but send it anyway. I used Uebimiau in the past and there was this kind of option .....
So no chance to workaround somehow ? via php?

thx so far


Atleast for SMTP you can use the %u and %p. Try to set them to:


Hello, thanks for the quick answer.
Unfortunately it doesn't change anything.
Looking for another solution I was trying to choose from a dropdown-box betweeen 2 domains.
I read these lines in another thread:

$rcmail_config['default_host'] = '';
If you leave this blank, you will be able to specify your host via a textbox on the loginscreen.

$rcmail_config['mail_domain'] = '';
If you use no default_host you are able to create a dropdown box with several servers.

My lines look like this:

$rcmail_config['default_host'] = '';
$rcmail_config['default_port'] = 143;
$rcmail_config['mail_domain'] = array(''=> '', ''=> '');

but all I see on the login-page are three fields, (username, password, mail-server). Shouldn't I get a dropdown-list with the 2 domains?



Well the other problem is, you don't need the mailserver, but the login.
The Mailserver setting is the mailserver. It doesn't have any influence on the login afaik :S


My main problem is that I don't want to type the whole address. So if I had the chance to either choose froma dropdown-box with 2 different domains or just to type in the username without domainname... it would be marvellous.
I'll try to find a workaround , always hoping that someone comes up with a solution :-\


I know there was a patch for this on the old forum. Maybe someone will repost this.


That would be awesome ;D
Summa summarum, Roundcube is amazing... really like it :)



If anybody want to login via username only without, he can do the following:

Edit the file: program/include/

Inside the function rcmail_login($user, $pass, $host=NULL), after the :

global $CONFIG, $IMAP, $DB, $sess_user_lang;
$user_id = NULL;

add these lines:

$headers = apache_request_headers();
foreach ($headers as $header => $value) {

Then we can login using username only, there is no need to provide the full email address.

Good Luck for every body. :)


I tried that and it let me log in but returned a blank page. :'(