[RCD] $rcmail_config['default_host'] = array('ssl://mail.%s:993', 'ssl://%s:993');

Thomas Bruederli thomas at roundcube.net
Sat Feb 22 13:49:49 CET 2014

On Thu, Feb 20, 2014 at 6:29 PM,  <sbremal at hotmail.com> wrote:
> Hello
> What should be changed in the source that the above line functions
> correctly?
> I have different e-mail accounts with different IMAP host name patterns:
> some use mail subdomain, others do not. Would be glad to see this working.
> Thanks!

Using pleaceholders from user input should be avoided because it open
potential exploitation paths.
You should consider to install an IMAP proxy [1,2,3] which forwards
connections to the according backends. Or let users from different
domains use individual hosts for webmail access. Set up virtual hosts
for webmail.donald.com and webmail.jerry.com which still can point to
one single Roundcube installation. Read
http://trac.roundcube.net/wiki/Howto_Config/Multidomains how to handle
this in Roundcube's config.

[1] http://www.imapproxy.org/
[2] http://horms.net/projects/perdition/
[3] http://www.whatastruggle.com/nginx-as-an-imappop3-proxy

More information about the dev mailing list