Roundcube Community Forum

 

Bad email address domain format

Started by Franck, March 28, 2018, 02:38:21 AM

Previous topic - Next topic

Franck

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

JohnDoh

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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Franck

Thank you very much, it works fine.

Regards