Roundcube Community Forum

Release Support => Release Discussion => Topic started by: techdude on September 26, 2010, 04:14:55 PM

Title: Multiple IMAP/SMTP Servers - How to?
Post by: techdude on September 26, 2010, 04:14:55 PM
I have three mail servers (imap/smpt) which are running on three seperate boxes and would like to use a single roundcube install for all three. Is there a way that I can have roundcube use the domain entered? (such as me@domain.com - using the domain.com) for the imap server and smtp server? How could I do this?
Title: Multiple IMAP/SMTP Servers - How to?
Post by: SKaero on September 26, 2010, 04:36:51 PM
You could use the accounts plugin myroundcube - Project Hosting on Google Code (http://code.google.com/p/myroundcube/) I remember seeing a post about using the domain as imap & smtp servers on the forum that you could try searching for and it could be made as a plugin.
Title: Multiple IMAP/SMTP Servers - How to?
Post by: rosali on September 27, 2010, 12:54:32 AM
Not tested, but you could try in main.inc.php

$temparr = array(0=>'',1='localhost');
if(isset($_POST['_user']))
  $temparr = explode('@',get_input_value('_user', RCUBE_INPUT_POST));
else if(isset($_SESSION['username']))
  $temparr = explode('@', $_SESSION['username']);
$rcmail_config['default_host'] = $temparr[1];

... same for SMTP settings.
Title: Multiple IMAP/SMTP Servers - How to?
Post by: turbodjl on September 29, 2010, 10:28:09 AM
Rosali,
Where would I enter that code? I am in the same situation as the OP..
Title: Multiple IMAP/SMTP Servers - How to?
Post by: rosali on September 29, 2010, 10:32:40 AM
in ./config/main.inc.php