Edit: Haha, sorry about the post resurrection; didn't notice this was from way back in January
Hi all, just installed Roundcube a few days ago and I'm liking it quite a lot. I too got tired of typing in my full email address when logging in, so I put the following in main.inc.php:
// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple host
$hostStr = $_SERVER['HTTP_HOST'];
$wPos = strPos($hostStr, '.')+1;
$rcmail_config['username_domain'] = substr($hostStr,$wPos);
Basically just grabs the browser domain and strips the first element. So as long as the user's logging in at the right domain, they should be fine. Works a treat for me, thought I'd share in case anyone else wants it. I saw some stuff with database calls, etc. earlier in this thread, but that's way beyond me at this point... I'm no programmer, and certainly not a PHP one.