Roundcube Community Forum

Release Support => Pending Issues => Topic started by: kklo on June 19, 2015, 05:48:43 PM

Title: username
Post by: kklo on June 19, 2015, 05:48:43 PM
Hi

I am new to the forum and roundcube.
Users only have a single domain. It is possible user log in using only the front of the  @domain.com

I tried to use the config.inc.php as follows:
$ config ['default_host'] = 'tls: //mail.%s';
$ config ['smtp_server'] = 'tls: //% h';

but it worked.

eg.
Login: username@
Password: *****

Thanks
kklo
Title: Re: username
Post by: SKaero on June 19, 2015, 09:31:22 PM
I'm not sure what you mean, are you looking for the username_domain config variable?

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['username_domain'] = '';
Title: Re: username
Post by: kklo on June 20, 2015, 04:23:43 AM
Hi,

I put to the suggested line, but did not work

I have 50 e-mail users in a single domain, using SMTP / POP3
usually the login is done as follows:

User: [email protected]
Password: ******

as the field is equal for all and to streamline the login these users thought about doing it for the following log:

User: Paolo@
Password: *****

is it possible?
Title: Re: username
Post by: JohnDoh on June 20, 2015, 06:01:13 AM
When you are entering the username don't put the @ sign on the end.
Title: Re: username
Post by: kklo on June 20, 2015, 06:26:26 AM
It worked.
thank you