v1.4.X

 

 


V 1.4.X Setting

 

最少要有的 config: config.inc.php

$config['db_dsnw'] = 'mysql://roundcube:?@localhost/roundcubemail';
$config['default_host'] = 'localhost';
$config['des_key'] = '123456789012345678901234';      // 必須是 24 個字

其他 setting

//// 自定 SMTP Server
// 沒有這 setting 時, 它會用 php 的 mail function
$config['smtp_server'] = 'localhost';
$config['smtp_port'] = 587;
// login setting, 填上後, 會無視了 Allow local, 始終會 SASL login
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['smtp_auth_type'] = 'PLAIN';

// /etc/hosts 內要有 "127.0.0.1 mail.datahunter.org"
$config['smtp_helo_host'] = 'mail.datahunter.org';

//// Data
$config['default_charset'] = 'UTF-8';

//// UI
$config['language'] = 'zh_TW';
$config['timezone'] = 'Asia/Hong_Kong';
$config['htmleditor'] = 1;
$config['product_name'] = 'My Webmail';
//// list / threads (threads: Show multiple emails in a thread as a single conversation)
$config['default_list_mode'] = 'list';

//// Security
$config['log_logins'] = true;         // Log successful/failed logins to <log_dir>/userlogins.log or to syslog
$config['login_autocomplete'] = 1;    // 1 = username and host only
$config['display_product_info'] = 0;  // login page 底的 "Roundcube Webmail"
$config['ip_check'] = true;
$config['smtp_log'] = true;
$config['use_https'] = false;
$config['session_domain'] = 'mail.datahunter.org';

//// Cache Setting
// table: cache
$config['imap_cache'] = db;
// Lifetime of IMAP indexes cache.
$config['imap_cache_ttl'] = '14d';
// Enables messages cache. table: cache_messages
$config['messages_cache'] = true;
$config['messages_cache_ttl'] = '7';
// Note: On MySQL this should be less than (max_allowed_packet - 30%)
$config['messages_cache_threshold'] = 50;

//// Performance
// Set true if deleted messages should not be displayed
// This will make the application run slower
$config['skip_deleted'] = true;

// reply setting
// 1  - place cursor above original message (top posting)
$config['reply_mode'] = 1;
// Default behavior of Reply-All button: 0 - Reply-All always
$config['reply_all_mode'] = 0;

// don't let users set pagesize to more than this value if set
$config['max_pagesize'] = 100;

// If true all folders will be checked for recent messages
$config['check_all_folders'] = false;

// Daylight saving time
$config['dst_active'] = false;

// By default the most secure method (from supported) will be selected.
$config['imap_auth_type'] = 'PLAIN';

//// Other
$config['session_lifetime'] = 60;
$config['create_default_folders'] = true;
$config['skin_logo'] = 'cust/logo_358x55.png';

Plugin

$config['plugins'] = array(
        'jqueryui',
        'archive',
        'emoticons',
        'autologon',
        'hide_blockquote',
        'newmail_notifier',
        'show_additional_headers',
        'attachment_reminder',
);

 


SMTP TLS/SSL Settings

 

smtp_server

$config['smtp_server'] = 'localhost';

 

  • Prefix ssl:// or tls:// (ie. tls://localhost:465)
  • If left blank, the PHP mail() function is used

smtp_conn_options

$config['smtp_conn_options'] = array(
    'ssl' => array(
        'verify_peer'      => false,
        'verify_peer_name' => false,
    ),
);

 

 

Creative Commons license icon Creative Commons license icon