Author Topic: How to autoselect server based on email domain?  (Read 618 times)

Offline Nicram

  • Newbie
  • *
  • Posts: 1
    • Homepage
How to autoselect server based on email domain?
« on: June 01, 2022, 07:31:01 AM »
My users use full email address for login into Roundcube 1.5.2.
I'm setting up another email server, and i would like to use the same Roundcube site.

What i already done are those settings in
$config['default_host'] = array('', '');
$config['smtp_server'] = 'tls://%h';

With this, at user login page, there is drop-down list where user can select correct server.
I would prefer, that when is logging in, it use "", and when it use "".
Is there any possibility to do that using
Thank You for help!

I found this:
i made new file called in config directory.
Put inside:

$config['default_host'] = 'tls://';
$config['username_domain'] = '';
$config['smtp_server'] = 'tls://';

and i've added $config['include_host_config'] = true; inside But it also didn't help me.
« Last Edit: June 01, 2022, 01:52:35 PM by Nicram »