Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Franck on March 28, 2018, 02:38:21 AM

Title: Bad email address domain format
Post by: Franck on March 28, 2018, 02:38:21 AM
Hello,
In a fresh install of rcd 1.3.5 i have un issue with the domain part of the users emails.
In config.inc.php my imap config is in the format:
$config['default_host'] = 'myhostname.domain.tld';

Users connect with their ldap uid.

The email address created in the identities table is like [email protected].
But i need to have [email protected]

Thank's for help and regards
Title: Re: Bad email address domain format
Post by: JohnDoh on March 28, 2018, 03:00:37 AM
try

// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['mail_domain'] = '';


note: this will only apply to new users, existing users will need to update their identity manually or an admin can bulk update in the roundcube database
Title: Re: Bad email address domain format
Post by: Franck on March 28, 2018, 05:39:01 AM
Thank you very much, it works fine.

Regards