btaylor101
February 23rd, 2009, 11:48 PM
I have a working Postfix/Courier/Roundcube installation and I am trying to add another domain. I was able to do this successfully and send/receive email from both domains. The question I have is setting up Roundcube to only accept the domain that matches the website. I want webmail.mydomain.com to only allow logins with email addresses from user@mydomain.com and webmail.mydomain2.net to only allow logins with email address from user@mydomain2.net. The necessary configs are posted below. If anyone can help that would be great.
main.inc.php
$rcmail_config['include_host_config'] = array(
'webmail.mydomain.com' => config1_config.inc.php',
'webmail.mydomain2.net' => config2_config.inc.php'
config1_config.inc.php
$rcmail_config['username_domain'] = 'mydomain.com';
config2_config.inc.php
$rcmail_config['username_domain'] = 'mydomain2.net';
main.inc.php
$rcmail_config['include_host_config'] = array(
'webmail.mydomain.com' => config1_config.inc.php',
'webmail.mydomain2.net' => config2_config.inc.php'
config1_config.inc.php
$rcmail_config['username_domain'] = 'mydomain.com';
config2_config.inc.php
$rcmail_config['username_domain'] = 'mydomain2.net';