In the main.inc.php file if you look at username_domain you can map out and mail_domain you can define what domain to tack on to the username based upon what mail server they logged in on.

If you only allow one mail server (mail.yourdomain.com) to be used, then you can set the two items above like so:
$rcmail_config['username_domain'] = 'yourdomain.com';
$rcmail_config['mail_domain'] = 'yourdomain.com';


Otherwise, if you use multiple IMAP servers, you'd specify it like so:
$rcmail_config['username_domain'] = array('webmail.yourdomain.com'=>'yourdomain.com');
$rcmail_config['mail_domain'] = array('webmail.yourdomain.com'=>'yourdomain.com');


Hope that helps.

~Brett
zamri wrote:
Hi all,
 
I'm new to this list and newbie of roundcube.
 
How do I set all users email address with domain other than my server's hostname? I noticed all users sent email using roundcube have different domain name after @ such as user@webmail.mydomain.org. My hostname is webmail.mydomain.org. How do i change this to user@mydomain.org. I assumed it grabs my hostname and use it for users' email addresses.
My server:
Mandriva 2006
dbmail-2.2.5
postfix
 
thanks in advance.
--
zamri
Linux System Administrator
Kolej ShahPutra Kuantan
Pahang Malaysia
Tel : 609.573.777.7 ext 119
web : http://muhdzamri.blogspot.com