Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: techdude on July 17, 2010, 02:37:24 PM

Title: Multiple Domains & Mail Servers
Post by: techdude on July 17, 2010, 02:37:24 PM
I would like to use a single Roundcube install for accessing users emails accounts from two separate domains which are both run on their own server.

So for example:

example1.com is running on server1.mysite.com and example2.com is running on server2.mysite.com. I would like to setup Roundcube so that Roundcube checks the entered username, pulls the domain entered then selects the proper IMAP and SMTP server depending on the domain in the username.

So if the user enters [email protected], then RC reads the example1.com, does a If/Then (like if username contains 'example1.com' then use mail.example1.com as imap and smtp) and uses mail.example1.com as the email server for IMAP and SMTP.

Any idea how to do this? I tried to do a IF/THEN in the config file but it didn't work.
Title: Multiple Domains & Mail Servers
Post by: JohnDoh on July 18, 2010, 04:41:24 AM
is something like this what you are looking for? http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/5718-simple-multiple-domains-login.html