Hi,
If I understand well the solution with the array, it only works if you
are using different virtual hostname with apache (ie mail.roundcube.net
and mail.roundcube.com), not for 1 hostname who is seeing many imap servers
the good solution, is to give the good port in the main_inc.php (see the
mail of M Little)
$rcmail_config['default_host'] = array(
'ip_serveur_1:port1'=> 'name serveur 1',
'ip_serveur_2:port2'=>'name serveur 2' ) ;
//$rcmail_config['default_port'] = 143;
Le 20.07.2010 16:10, Arminas a écrit :
Hi,
you can also try specifying an array of different configuration files
as it is explained at http://trac.roundcube.net/wiki/Howto_Config .
But it is not working for me.
If you try the solution please give us a feedback.
Good luck,
Arminas
2010/7/20 Ludovic Stolycia <[email protected]
<mailto:[email protected]>>
Hi,
This is my first post :)
I'm managing one roundcube webmail connected to 2 differents imaps
servers, using array in $rcmail_config['default_host'].
The trouble is : serveur 1 and 2 listen on two differents non standard
port so using $rcmail_config['default_port'] = 143 is impossible.
$rcmail_config['default_host'] = array('ip_serveur_1'=>'name
serveur 1',
'ip_serveur_2'=>'name serveur 2' ) ;
$rcmail_config['default_port'] = 143;
So I made a modification in program/include/rcmail.php
diff rcmail.php rcmail.php.ori
464,469c464,465
<
< if (is_array($config['default_port'])) {
< $imap_port = $imap_port ? $imap_port :
$config['default_port'][$host] ;
< } else {
< $imap_port = $imap_port ? $imap_port :
$config['default_port'];
< }
---
>
> $imap_port = $imap_port ? $imap_port : $config['default_port'];
and now in rcmail_config['default_port'] I can use an array too
in config/main.inc.php
$rcmail_config['default_host'] = array('ip_serveur_1'=>'name
serveur 1',
'ip_serveur_2'=>'name serveur 2' ) ;
//$rcmail_config['default_port'] = 143;
$rcmail_config['default_port'] = array('ip_serveur_1'=>'port1',
'ip_serveur_2'=>'port2' ) ;;
If this changes is ok and usefull, I guess it would be nice to
integrate
the modification
Thanks,
Ludovic
--
ONERA
BP72 - 29 avenue de la Division Leclerc
FR-92322
CHATILLON CEDEX
Tel: +33 (0) 146 733 939
_______________________________________________
List info: http://lists.roundcube.net/dev/
--
ONERA
BP72 - 29 avenue de la Division Leclerc
FR-92322
CHATILLON CEDEX
Tel: +33 (0) 146 733 939
_______________________________________________
List info: http://lists.roundcube.net/dev/