How can i make that the user can select some domains to login with roundcube.... example:
@mydomain1.com
@mydomain2.com
Hope you understand...
With best Regards...
your KSS
You need to look in /config/main.inc.php for the default_host variable and set as follows (using domains from your example):
// the mail host chosen to perform the log-in
// leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// For example %n = mail.domain.tld, %d = domain.tld
$rcmail_config['default_host'] = array('mydomain1.com', 'mydomain2.com');
That solution works only if i have different imap hosts. But what should I do if my setup is one IMAP server serving mailboxes in multiple domains?
I just want users can manually select their domain suffix (@example1.com, @example2.com) from drop-down list near username input form.
I have searchd a lot here but cant find a define solution. Any suggestions?
Thanks in advanse.