Author Topic: Login without domain name  (Read 5926 times)

Offline rvwilliams

  • Newbie
  • *
  • Posts: 1
Login without domain name
« on: November 16, 2017, 05:41:52 AM »
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?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Login without domain name
« Reply #1 on: November 16, 2017, 12:21:30 PM »
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'] = '';