Roundcube Community Forum

 

username

Started by kklo, June 19, 2015, 05:48:43 PM

Previous topic - Next topic

kklo

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

SKaero

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'] = '';

kklo

#2
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?

JohnDoh

When you are entering the username don't put the @ sign on the end.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

kklo

It worked.
thank you