Author Topic: Roundcube not disply correctly my domain name.  (Read 3339 times)

Offline carlos.aat

  • Newbie
  • *
  • Posts: 5
Roundcube not disply correctly my domain name.
« on: October 07, 2009, 02:25:30 PM »
Hello, I'm new to roundcube.

I have setup correctly roundcube in my server (CentOs 5.2) with Dovecot and Postfix and it works great, fast and sleek, but i have one problem,all the outgoing email is sent as user@localhost.mydomain.com.mx instead of user@mydomain.com.mx, I have already change parameters in my main.inc.php but I'm not been able to make it work.

I must say that i dont think tha it is a postfix problem,because my Thunderbird users had no problem. Some time ago I have the same problem with Squirrelmail but tweaking the configuration file  work it out.
 
If someone knows hot to work this out  please post it , as far is the only problem that I have.
Thanks.


#As you may noticed English is not my firs language :(

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,611
    • http://SKaero.com/
Roundcube not disply correctly my domain name.
« Reply #1 on: October 07, 2009, 09:34:15 PM »
Have you changed the email in Settings>Identities?

Offline carlos.aat

  • Newbie
  • *
  • Posts: 5
Roundcube not disply correctly my domain name.
« Reply #2 on: October 08, 2009, 09:34:51 AM »
Yes in fact I do, and It works, but after Edit my identities the mail takes longer to get  to their destination....  Why is that?:confused:

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,611
    • http://SKaero.com/
Roundcube not disply correctly my domain name.
« Reply #3 on: October 08, 2009, 09:37:56 AM »
It sounds like it may be using php mail, do you have SMTP setup?

Offline carlos.aat

  • Newbie
  • *
  • Posts: 5
Roundcube not disply correctly my domain name.
« Reply #4 on: October 08, 2009, 01:00:00 PM »
php mail? I don't understand exactly what you are saying, I belive my postfix and dovecot configurations are ok, because my Thunderbird and outlook clients work fine.

Anyway is there a way to change the identities in an automatic way,  no because I'm lazy, but I have (or going to have)  A LOT of roundcube users, and it will take a long time to do that manually, thank for the replies, appreciated.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,611
    • http://SKaero.com/
Roundcube not disply correctly my domain name.
« Reply #5 on: October 08, 2009, 01:10:04 PM »
Can you post your /config/main.inc.php so I can see how your RoundCube installation is setup?

Offline carlos.aat

  • Newbie
  • *
  • Posts: 5
Roundcube not disply correctly my domain name.
« Reply #6 on: October 08, 2009, 02:07:02 PM »
Quote from: skaero;21947
Can you post your /config/main.inc.php so I can see how your RoundCube installation is setup?


Code: [Select]
?php

 +-----------------------------------------------------------------------+
 | Main configuration file                                               |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 +-----------------------------------------------------------------------+

*/

$rcmail_config = array();

$rcmail_config['debug_level'] = 1;

$rcmail_config['log_driver'] = 'file';

$rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';

$rcmail_config['syslog_id'] = 'roundcube';

$rcmail_config['syslog_facility'] = LOG_USER;

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

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

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

$rcmail_config['enable_caching'] = TRUE;

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

$rcmail_config['force_https'] = FALSE;

$rcmail_config['auto_create_user'] = FALSE;

$rcmail_config['default_host'] = 'localhost';

$rcmail_config['default_port'] = 143;

$rcmail_config['imap_auth_type'] = null;

$rcmail_config['imap_root'] = null;
$rcmail_config['imap_delimiter'] = null;

$rcmail_config['username_domain'] = '';

$rcmail_config['mail_domain'] = preg_replace("/^www\./i", "", $_SERVER['HTTP_HOST']);

$rcmail_config['virtuser_file'] = '';

$rcmail_config['virtuser_query'] = '';

$rcmail_config['smtp_server'] = '';

$rcmail_config['smtp_port'] = 25;

$rcmail_config['smtp_user'] = '';

$rcmail_config['smtp_pass'] = '';

$rcmail_config['smtp_auth_type'] = '';

$rcmail_config['smtp_helo_host'] = '';

$rcmail_config['smtp_log'] = TRUE;

$rcmail_config['sql_debug'] = false;

$rcmail_config['imap_debug'] = false;

$rcmail_config['smtp_debug'] = false;

$rcmail_config['sendmail_delay'] = 0;

$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size', 'flag', 'attachment');

$rcmail_config['skin_include_php'] = FALSE;

$rcmail_config['session_lifetime'] = 10;

$rcmail_config['ip_check'] = false;

$rcmail_config['double_auth'] = false;

$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';

$rcmail_config['language'] = null;

$rcmail_config['date_short'] = 'D H:i';

$rcmail_config['date_long'] = 'd.m.Y H:i';

$rcmail_config['date_today'] = 'H:i';

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

$rcmail_config['product_name'] = 'RoundCube Webmail';

$rcmail_config['drafts_mbox'] = 'Drafts';

$rcmail_config['junk_mbox'] = 'Junk';

$rcmail_config['sent_mbox'] = 'Sent';

$rcmail_config['trash_mbox'] = 'Trash';

$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');

$rcmail_config['create_default_folders'] = FALSE;

$rcmail_config['protect_default_folders'] = TRUE;

$rcmail_config['quota_zero_as_unlimited'] = FALSE;

$rcmail_config['mdn_requests'] = 0;

$rcmail_config['default_charset'] = 'ISO-8859-1';

$rcmail_config['enable_spellcheck'] = TRUE;

$rcmail_config['spellcheck_engine'] = 'googie';

$rcmail_config['spellcheck_uri'] = '';

$rcmail_config['spellcheck_languages'] = NULL;

$rcmail_config['generic_message_footer'] = '';

$rcmail_config['http_received_header'] = false;

$rcmail_config['http_received_header_encrypt'] = false;

$rcmail_config['mail_header_delimiter'] = NULL;

$rcmail_config['session_domain'] = '';

$rcmail_config['address_book_type'] = 'sql';

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

 * example config for Verisign directory
 *
$rcmail_config['ldap_public']['Verisign'] = array(
  'name'          => 'Verisign.com',
  'hosts'         => array('directory.verisign.com'),
  'port'          => 389,
  'use_tls'    => false,
  'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
  // %fu - The full username provided, assumes the username is an email
  //       address, uses the username_domain value if not an email address.
  // %u  - The username prior to the '@'.
  // %d  - The domain name after the '@'.
  'base_dn'       => '',
  'bind_dn'       => '',
  'bind_pass'     => '',
  'writable'      => false,   // Indicates if we can write to the LDAP directory or not.
  // If writable is true then these fields need to be populated:
  // LDAP_Object_Classes, required_fields, LDAP_rdn
  'LDAP_Object_Classes' => array("top", "inetOrgPerson"), // To create a new contact these are the object classes to specify (or any other classes you wish to use).
  'required_fields'     => array("cn", "sn", "mail"),     // The required fields needed to build a new contact as required by the object classes (can include additional fields not required by the object classes).
  'LDAP_rdn'      => 'mail', // The RDN field that is used for new entries, this field needs to be one of the search_fields, the base of base_dn is appended to the RDN to insert into the LDAP directory.
  'ldap_version'  => 3,       // using LDAPv3
  'search_fields' => array('mail', 'cn'),  // fields to search in
  'name_field'    => 'cn',    // this field represents the contact's name
  'email_field'   => 'mail',  // this field represents the contact's e-mail
  'surname_field' => 'sn',    // this field represents the contact's last name
  'firstname_field' => 'gn',  // this field represents the contact's first name
  'sort'          => 'cn',    // The field to sort the listing by.
  'scope'         => 'sub',   // search mode: sub|base|list
  'filter'        => '',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
  'fuzzy_search'  => true);   // server allows wildcard search
*/

$rcmail_config['autocomplete_addressbooks'] = array('sql');

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

$rcmail_config['identities_level'] = 0;

$rcmail_config['include_host_config'] = false;

$rcmail_config['max_pagesize'] = 200;

$rcmail_config['mime_magic'] = '/usr/share/misc/magic';

$rcmail_config['message_sort_col'] = 'date';

$rcmail_config['message_sort_order'] = 'DESC';

$rcmail_config['enable_installer'] = false;

$rcmail_config['log_logins'] = false;

 * 'Delete always'
 * This setting reflects if mail should be always marked as deleted,
 * even if moving to "Trash" fails. This is necessary in some setups
 * because a) people may not have a Trash folder or b) they are over
 * quota (and Trash is included in the quota).
 *
 * This is a failover setting for iil_C_Move when a message is moved
 * to the Trash.
 */
$rcmail_config['delete_always'] = false;

$rcmail_config['min_keep_alive'] = 60;


$rcmail_config['skin'] = 'default';

$rcmail_config['pagesize'] = 40;

$rcmail_config['timezone'] = 'auto';

$rcmail_config['dst_active'] = (bool)date('I');

$rcmail_config['prefer_html'] = TRUE;

$rcmail_config['show_images'] = 0;

$rcmail_config['htmleditor'] = FALSE;

$rcmail_config['prettydate'] = TRUE;

$rcmail_config['draft_autosave'] = 300;

$rcmail_config['preview_pane'] = TRUE;

$rcmail_config['focus_on_new_message'] = true;

$rcmail_config['logout_purge'] = FALSE;

$rcmail_config['logout_expunge'] = FALSE;

$rcmail_config['inline_images'] = TRUE;

$rcmail_config['mime_param_folding'] = 1;

$rcmail_config['skip_deleted'] = FALSE;

$rcmail_config['read_when_deleted'] = TRUE;

$rcmail_config['flag_for_deletion'] = FALSE;

$rcmail_config['keep_alive'] = 60;

$rcmail_config['check_all_folders'] = FALSE;

$rcmail_config['display_next'] = FALSE;


?>

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,611
    • http://SKaero.com/
Roundcube not disply correctly my domain name.
« Reply #7 on: October 09, 2009, 02:56:36 AM »
Change your default host to your mail server its usually mail.yourdomain.com, its what the imap server that you would same as the one for Thunderbird.
Code: [Select]
$rcmail_config['default_host'] = 'localhost';

Offline carlos.aat

  • Newbie
  • *
  • Posts: 5
Roundcube not disply correctly my domain name.
« Reply #8 on: October 09, 2009, 05:30:22 PM »
Quote from: skaero;21957
Change your default host to your mail server its usually mail.yourdomain.com, its what the imap server that you would same as the one for Thunderbird.
Code: [Select]
$rcmail_config['default_host'] = 'localhost';


After reading your post i Immediately do the changes you suggest, but.... the it says that my user or password is incorrect, (i always log with just the user name, not username@domain.com.mx) the I try to login as username@domain.com.mx but the same error :confused:

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,611
    • http://SKaero.com/
Roundcube not disply correctly my domain name.
« Reply #9 on: October 10, 2009, 02:44:41 AM »
It sound like you have the mail server incorrect, try changing the following items
Code: [Select]
$rcmail_config['mail_domain'] = 'domain.com.mx';
Code: [Select]
$rcmail_config['username_domain'] = 'domain.com.mx';
Try it with default_host set to your mail server and to localhost
Code: [Select]
$rcmail_config['default_host'] = 'localhost';