Roundcube Community Forum

Release Support => Release Discussion => Topic started by: zeuslinux on September 09, 2013, 10:59:14 AM

Title: Wrong identity email automatically created for new user
Post by: zeuslinux on September 09, 2013, 10:59:14 AM
Sorry my bad english.

I already have an working email server for SMTP, IMAP, etc and with IMP / Horde as production webmail in this same server. It is registered as mail.mydomain

I made another server with Roundcube installed for use ONLY as webmail. It is working and configured to send emails (SMTP) and to see Inbox and all the other IMAP boxes (IMAP) using the other server (mail.mydomain).

My roundcube installation is configured to automatically create a new Roundcube user when log-in the first time:

$rcmail_config['auto_create_user'] = true

The problem is that the default user identities are being created as user@mail.mydomain  and not user@mydomain (the correct). Roundcube is putting the name of IMAP server in the user email. I don't want this ! How can I correct this problem ?




Part of my configuration (config/main.inc.php):


// ----------------------------------
// IMAP
// ----------------------------------

$rcmail_config['default_host'] = 'mail.mydomain';

$rcmail_config['default_port'] = 143;

$rcmail_config['imap_auth_type'] = null;

$rcmail_config['imap_delimiter'] = null;

$rcmail_config['imap_ns_personal'] = null;
$rcmail_config['imap_ns_other']    = null;
$rcmail_config['imap_ns_shared']   = null;

$rcmail_config['imap_force_caps'] = false;

$rcmail_config['imap_force_lsub'] = false;

$rcmail_config['imap_force_ns'] = false;

$rcmail_config['imap_timeout'] = 60;

$rcmail_config['imap_auth_cid'] = null;

$rcmail_config['imap_auth_pw'] = null;

$rcmail_config['imap_cache'] = null;

$rcmail_config['messages_cache'] = false;

// ----------------------------------
// SMTP
// ----------------------------------
$rcmail_config['smtp_server'] = 'mail.mydomain';

$rcmail_config['smtp_port'] = 25;

$rcmail_config['smtp_user'] = '%u';

$rcmail_config['smtp_pass'] = '%p';

$rcmail_config['smtp_auth_type'] = '';

$rcmail_config['smtp_auth_cid'] = null;

$rcmail_config['smtp_auth_pw'] = null;

$rcmail_config['smtp_helo_host'] = 'roundcube.mydomain';

$rcmail_config['smtp_timeout'] = 60;

// ----------------------------------
// SYSTEM
// ----------------------------------

$rcmail_config['enable_installer'] = false;

$rcmail_config['dont_override'] = array();

$rcmail_config['support_url'] = 'http://roundcube.net/doc/help/0.9/en_US/';

$rcmail_config['skin_logo'] = null;

// automatically create a new Roundcube user when log-in the first time.
// a new user will be created once the IMAP login succeeds.
// set to false if only registered users can use this service
$rcmail_config['auto_create_user'] = true;

// Enables possibility to log in using email address from user identities
$rcmail_config['user_aliases'] = false;

$rcmail_config['log_dir'] = 'logs/';

$rcmail_config['temp_dir'] = 'temp/';

$rcmail_config['message_cache_lifetime'] = '10d';

$rcmail_config['force_https'] = true;

$rcmail_config['use_https'] = false;

$rcmail_config['login_autocomplete'] = 0;

$rcmail_config['login_lc'] = 2;

$rcmail_config['skin_include_php'] = false;

$rcmail_config['display_version'] = false;

$rcmail_config['session_lifetime'] = 10;

$rcmail_config['session_domain'] = '';

$rcmail_config['session_name'] = null;

$rcmail_config['session_auth_name'] = null;

$rcmail_config['session_path'] = null;

$rcmail_config['session_storage'] = 'db';

$rcmail_config['memcache_hosts'] = null;

$rcmail_config['ip_check'] = false;

$rcmail_config['referer_check'] = false;

$rcmail_config['x_frame_options'] = 'sameorigin';

$rcmail_config['des_key'] = '************';

$rcmail_config['username_domain'] = '';

$rcmail_config['mail_domain'] = '';

// // $rcmail_config['password_charset'] = 'ISO-8859-1';

$rcmail_config['sendmail_delay'] = 0;
$rcmail_config['max_recipients'] = 0;

$rcmail_config['max_group_members'] = 0;


$rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;

$rcmail_config['product_name'] = 'Webmail - Roundcube';

$rcmail_config['include_host_config'] = false;

$rcmail_config['generic_message_footer'] = '';

$rcmail_config['generic_message_footer_html'] = '';

$rcmail_config['http_received_header'] = false;

$rcmail_config['http_received_header_encrypt'] = false;

$rcmail_config['mail_header_delimiter'] = NULL;

$rcmail_config['line_length'] = 72;

$rcmail_config['send_format_flowed'] = true;

$rcmail_config['mdn_use_from'] = false;

$rcmail_config['identities_level'] = 0;

$rcmail_config['client_mimetypes'] = null;  # null == default

$rcmail_config['mime_magic'] = null;

$rcmail_config['mime_types'] = null;

$rcmail_config['im_identify_path'] = null;

$rcmail_config['im_convert_path'] = null;

$rcmail_config['image_thumbnail_size'] = 240;

$rcmail_config['contact_photo_size'] = 160;

$rcmail_config['email_dns_check'] = false;

$rcmail_config['no_save_sent_messages'] = false;
Title: Re: Wrong identity email automatically created for new user
Post by: JohnDoh on September 09, 2013, 11:26:38 AM
you need to set $rcmail_config['username_domain'] to the domain you want in your config.
Title: Re: Wrong identity email automatically created for new user
Post by: zeuslinux on September 09, 2013, 11:58:06 AM
you need to set $rcmail_config['username_domain'] to the domain you want in your config.

Thanks for you reply.

When I tried to use

$rcmail_config['username_domain']='mydomain';

I cannot login in RoucCube. I think my IMAP server only accepts username and not username@domain.

However I solved my problem when I used this:

// This domain will be used to form e-mail addresses of new users
$rcmail_config['mail_domain'] = 'mydomain';


Title: Re: Wrong identity email automatically created for new user
Post by: JohnDoh on September 09, 2013, 04:20:26 PM
sorry. yes you are right. i made a mistake mail_domain is the right one. glad you got it working.