Author Topic: Multiple IMAP/SMTP Servers - How to?  (Read 2376 times)

Offline techdude

  • Jr. Member
  • **
  • Posts: 38
Multiple IMAP/SMTP Servers - How to?
« 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?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,541
    • http://SKaero.com/
Multiple IMAP/SMTP Servers - How to?
« Reply #1 on: September 26, 2010, 04:36:51 PM »
You could use the accounts plugin myroundcube - Project Hosting on Google Code 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.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Multiple IMAP/SMTP Servers - How to?
« Reply #2 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.
« Last Edit: September 27, 2010, 01:04:11 AM by rosali »
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline turbodjl

  • Newbie
  • *
  • Posts: 1
Multiple IMAP/SMTP Servers - How to?
« Reply #3 on: September 29, 2010, 10:28:09 AM »
Rosali,
Where would I enter that code? I am in the same situation as the OP..

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Multiple IMAP/SMTP Servers - How to?
« Reply #4 on: September 29, 2010, 10:32:40 AM »
in ./config/main.inc.php
Regards,
Rosali
__________________
MyRoundcube Project (commercial)