Roundcube Community Forum

 

Login without domain name

Started by rvwilliams, November 16, 2017, 05:41:52 AM

Previous topic - Next topic

rvwilliams

I have two mail servers with virtually the same config.  Both are running Roundcube 1.3.3.  If I log in to Roundcube on the 1st server with just a user name (not the email address) the email address in the top right corner has an incorrect domain name.  If I log in to the 2nd server in the same way, the email address in the top right corner is correct.  Which setting is used to append the domain name to the username when the full email address is not used to log in?

SKaero


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