Author Topic: username  (Read 2954 times)

Offline kklo

  • Newbie
  • *
  • Posts: 4
username
« 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: username
« Reply #1 on: June 19, 2015, 09:31:22 PM »
I'm not sure what you mean, are you looking for the username_domain config variable?
Code: [Select]
// 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'] = '';

Offline kklo

  • Newbie
  • *
  • Posts: 4
Re: username
« Reply #2 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: paolo@domain.com
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?
« Last Edit: June 20, 2015, 05:14:25 AM by kklo »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Re: username
« Reply #3 on: June 20, 2015, 06:01:13 AM »
When you are entering the username don't put the @ sign on the end.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline kklo

  • Newbie
  • *
  • Posts: 4
Re: username
« Reply #4 on: June 20, 2015, 06:26:26 AM »
It worked.
thank you