Author Topic: Bad email address domain format  (Read 2682 times)

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Bad email address domain format
« 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:
Code: [Select]
$config['default_host'] = 'myhostname.domain.tld';
Users connect with their ldap uid.

The email address created in the identities table is like uid@myhostname.domain.tld.
But i need to have uid@domain.tld

Thank's for help and regards
« Last Edit: March 28, 2018, 05:39:25 AM by Franck »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Re: Bad email address domain format
« Reply #1 on: March 28, 2018, 03:00:37 AM »
try
Code: [Select]
// 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ā€¦

Offline Franck

  • Jr. Member
  • **
  • Posts: 26
Re: Bad email address domain format
« Reply #2 on: March 28, 2018, 05:39:01 AM »
Thank you very much, it works fine.

Regards