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
zamri Linux System Administrator Kolej ShahPutra Kuantan Pahang Malaysia Tel : 609.573.777.7 ext 119 web : http://muhdzamri.blogspot.com
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 mailto:user@webmail.mydomain.org. My hostname is webmail.mydomain.org http://webmail.mydomain.org. How do i change this to user@mydomain.org mailto: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 http://muhdzamri.blogspot.com
On 6/10/07, Brett Patterson brett@bpatterson.net wrote:
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
Nope. My mail server requires me to login without full email address. I've changed as suggested by you but to no avail. Do i need to restart apache or do i need to delete the users first in database? FYI, I use virtuser_query to dbmail's db for authentication.
On 10-Jun-2007, at 06:18, Brett Patterson wrote:
$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');
I know this is an ancient message, but I want to be a bit clearer
about this.
Assuming my mail server is mail.maindomain.tld and that my web server
is www.maindomain.tld (where roundcube is) and that I have 3 domains
hosted there: first.tld, second.tld, and third.tld. Now, the users to
maindomain.tld do not need to specify their domain, so the config
looks like this:
$rcmail_config['username_domain'] = array('mail.maindomain.tld'=>'', 'mail.maindomain.tld'=>'first.tld', 'mail.maindomain.tld'=>'second.tld', 'mail.maindomain.tld'=>'third.tld');
$rcmail_config['mail_domain'] =
array('mail.maindomain.tld'=>'maindomain.tld',
'mail.maindomain.tld'=>'first.tld',
'mail.maindomain.tld'=>'second.tld',
'mail.maindomain.tld'=>'third.tld');
Is that right?