Author Topic: how to add more than one domain name on roundcube  (Read 4449 times)

Offline tik@nast

  • Newbie
  • *
  • Posts: 3
how to add more than one domain name on roundcube
« on: July 28, 2009, 01:08:18 AM »
i'm a new member and also new for using roundcube, i installed roundcube with xampp(database) and Hmailserver. due to my work place that need to provide account in many domain so i don't know the step to configure my roundcube to run for many domains in one server.

Offline tik@nast

  • Newbie
  • *
  • Posts: 3
please help
« Reply #1 on: July 28, 2009, 10:48:57 PM »
when i try to configure 2 domain in the main.inc.php file by put the command below:
$rcmail_config['include_host_config'] = array(
  'mail.tik.net' => 'tik.inc.php',
  'mail.nast.com' => 'nast.inc.php'
);

and then i copy the main.inc.php file and remame is as tik.inc.php and nast.inc.php and change a little bit configure such as:
1. $rcmail_config['default_host'] = 'mail.tik.net';
2.$rcmail_config['username_domain'] = 'tik.net';
3.$rcmail_config['smtp_server'] = 'mail.tik.net';
4.$rcmail_config['smtp_helo_host'] = 'mail.tik.net';
by now i can't not go to the phpmyadmin page so it's getting error to connect with the database. please give me some advice

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
how to add more than one domain name on roundcube
« Reply #2 on: July 29, 2009, 03:35:12 AM »
i dont really see how changing your RC config would affect access to phpmyadmin could you give us some more info?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline tik@nast

  • Newbie
  • *
  • Posts: 3
how to add more than one domain name on roundcube
« Reply #3 on: July 29, 2009, 05:44:30 AM »
now, i reinstall all again, so i would like you to give me some advice how to configure RC if i want it to use for multiple domain, my RC work with XAMPP and hmailserver

thanks

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
how to add more than one domain name on roundcube
« Reply #4 on: July 30, 2009, 02:27:32 PM »
do all your domains connect to the same imap server? if they do then probably all you need to change is:
$rcmail_config['username_domain']
$rcmail_config['mail_domain']
and you can use a little bit of php to generate the values for those based on the URL used to access the site. If you are not sure how to do that please search the forum there are lots of examples.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…