| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /* |
|---|
| 4 | +-----------------------------------------------------------------------+ |
|---|
| 5 | | Main configuration file | |
|---|
| 6 | | | |
|---|
| 7 | | This file is part of the RoundCube Webmail client | |
|---|
| 8 | | Copyright (C) 2005, RoundCube Dev. - Switzerland | |
|---|
| 9 | | Licensed under the GNU GPL | |
|---|
| 10 | | | |
|---|
| 11 | +-----------------------------------------------------------------------+ |
|---|
| 12 | |
|---|
| 13 | */ |
|---|
| 14 | |
|---|
| 15 | $rcmail_config = array(); |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace |
|---|
| 19 | $rcmail_config['debug_level'] = 5; |
|---|
| 20 | |
|---|
| 21 | // enable caching of messages and mailbox data in the local database. |
|---|
| 22 | // this is recommended if the IMAP server does not run on the same machine |
|---|
| 23 | $rcmail_config['enable_caching'] = TRUE; |
|---|
| 24 | |
|---|
| 25 | // automatically create a new RoundCube user when log-in the first time. |
|---|
| 26 | // a new user will be created once the IMAP login succeeds. |
|---|
| 27 | // set to false if only registered users can use this service |
|---|
| 28 | $rcmail_config['auto_create_user'] = TRUE; |
|---|
| 29 | |
|---|
| 30 | // the mail host chosen to perform the log-in |
|---|
| 31 | // leave blank to show a textbox at login, give a list of hosts |
|---|
| 32 | // to display a pulldown menu or set one host as string. |
|---|
| 33 | // To use SSL connection, enter ssl://hostname:993 |
|---|
| 34 | $rcmail_config['default_host'] = ''; |
|---|
| 35 | |
|---|
| 36 | // TCP port used for IMAP connections |
|---|
| 37 | $rcmail_config['default_port'] = 143; |
|---|
| 38 | |
|---|
| 39 | // This domain will be used to form e-mail addresses of new users |
|---|
| 40 | // Specify an array with 'host' => 'domain' values to support multiple hosts |
|---|
| 41 | $rcmail_config['mail_domain'] = 'roundcube.net'; |
|---|
| 42 | |
|---|
| 43 | // Path to a virtuser table file to resolve user names and e-mail addresses |
|---|
| 44 | $rcmail_config['virtuser_file'] = ''; |
|---|
| 45 | |
|---|
| 46 | // use this host for sending mails. |
|---|
| 47 | // to use SSL connection, set ssl://smtp.host.com |
|---|
| 48 | // if left blank, the PHP mail() function is used |
|---|
| 49 | $rcmail_config['smtp_server'] = ''; |
|---|
| 50 | |
|---|
| 51 | // SMTP port (default is 25; 465 for SSL) |
|---|
| 52 | $rcmail_config['smtp_port'] = 25; |
|---|
| 53 | |
|---|
| 54 | // SMTP username (if required) if you use %u as the username RoundCube |
|---|
| 55 | // will use the current username for login |
|---|
| 56 | $rcmail_config['smtp_user'] = ''; |
|---|
| 57 | |
|---|
| 58 | // SMTP password (if required) if you use %p as the password RoundCube |
|---|
| 59 | // will use the current user's password for login |
|---|
| 60 | $rcmail_config['smtp_pass'] = ''; |
|---|
| 61 | |
|---|
| 62 | // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use |
|---|
| 63 | // best server supported one) |
|---|
| 64 | $rcmail_config['smtp_auth_type'] = ''; |
|---|
| 65 | |
|---|
| 66 | // Log sent messages |
|---|
| 67 | $rcmail_config['smtp_log'] = TRUE; |
|---|
| 68 | |
|---|
| 69 | // these cols are shown in the message list |
|---|
| 70 | // available cols are: subject, from, to, cc, replyto, date, size, encoding |
|---|
| 71 | $rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size'); |
|---|
| 72 | |
|---|
| 73 | // relative path to the skin folder |
|---|
| 74 | $rcmail_config['skin_path'] = 'skins/default/'; |
|---|
| 75 | |
|---|
| 76 | // use this folder to store temp files (must be writebale for apache user) |
|---|
| 77 | $rcmail_config['temp_dir'] = 'temp/'; |
|---|
| 78 | |
|---|
| 79 | // use this folder to store log files (must be writebale for apache user) |
|---|
| 80 | $rcmail_config['log_dir'] = 'logs/'; |
|---|
| 81 | |
|---|
| 82 | // session lifetime in minutes |
|---|
| 83 | $rcmail_config['session_lifetime'] = 10; |
|---|
| 84 | |
|---|
| 85 | // check client IP in session athorization |
|---|
| 86 | $rcmail_config['ip_check'] = TRUE; |
|---|
| 87 | |
|---|
| 88 | // the default locale setting |
|---|
| 89 | $rcmail_config['locale_string'] = 'en'; |
|---|
| 90 | |
|---|
| 91 | // use this format for short date display |
|---|
| 92 | $rcmail_config['date_short'] = 'D H:i'; |
|---|
| 93 | |
|---|
| 94 | // use this format for detailed date/time formatting |
|---|
| 95 | $rcmail_config['date_long'] = 'd.m.Y H:i'; |
|---|
| 96 | |
|---|
| 97 | // add this user-agent to message headers when sending |
|---|
| 98 | $rcmail_config['useragent'] = 'RoundCube Webmail/0.1b'; |
|---|
| 99 | |
|---|
| 100 | // use this name to compose page titles |
|---|
| 101 | $rcmail_config['product_name'] = 'RoundCube Webmail'; |
|---|
| 102 | |
|---|
| 103 | // only list folders within this path |
|---|
| 104 | $rcmail_config['imap_root'] = ''; |
|---|
| 105 | |
|---|
| 106 | // store sent message is this mailbox |
|---|
| 107 | // leave blank if sent messages should not be stored |
|---|
| 108 | $rcmail_config['sent_mbox'] = 'Sent'; |
|---|
| 109 | |
|---|
| 110 | // move messages to this folder when deleting them |
|---|
| 111 | // leave blank if they should be deleted directly |
|---|
| 112 | $rcmail_config['trash_mbox'] = 'Trash'; |
|---|
| 113 | |
|---|
| 114 | // display these folders separately in the mailbox list |
|---|
| 115 | $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash'); |
|---|
| 116 | |
|---|
| 117 | // default sort col |
|---|
| 118 | $rcmail_config['message_sort_col'] = 'date'; |
|---|
| 119 | |
|---|
| 120 | // default sort order |
|---|
| 121 | $rcmail_config['message_sort_order'] = 'DESC'; |
|---|
| 122 | |
|---|
| 123 | // Set TRUE if deleted messages should not be displayed |
|---|
| 124 | // This will make the application run slower |
|---|
| 125 | $rcmail_config['skip_deleted'] = FALSE; |
|---|
| 126 | |
|---|
| 127 | // path to a text file which will be added to each sent message |
|---|
| 128 | // paths are relative to the RoundCube root folder |
|---|
| 129 | $rcmail_config['generic_message_footer'] = ''; |
|---|
| 130 | |
|---|
| 131 | // this string is used as a delimiter for message headers when sending |
|---|
| 132 | $rcmail_config['mail_header_delimiter'] = "\r\n"; |
|---|
| 133 | |
|---|
| 134 | // in order to enable public ldap search, create a config array |
|---|
| 135 | // like the Verisign example below. if you would like to test, |
|---|
| 136 | // simply uncomment the Verisign example. |
|---|
| 137 | /** |
|---|
| 138 | * example config for Verisign directory |
|---|
| 139 | * |
|---|
| 140 | * $rcmail_config['ldap_public']['Verisign'] = array('hosts' => array('directory.verisign.com'), |
|---|
| 141 | * 'port' => 389, |
|---|
| 142 | * 'base_dn' => '', |
|---|
| 143 | * 'search_fields' => array('Email' => 'mail', 'Name' => 'cn'), |
|---|
| 144 | * 'name_field' => 'cn', |
|---|
| 145 | * 'mail_field' => 'mail', |
|---|
| 146 | * 'scope' => 'sub', |
|---|
| 147 | * 'fuzzy_search' => 0); |
|---|
| 148 | */ |
|---|
| 149 | |
|---|
| 150 | |
|---|
| 151 | /***** these settings can be overwritten by user's preferences *****/ |
|---|
| 152 | |
|---|
| 153 | // show up to X items in list view |
|---|
| 154 | $rcmail_config['pagesize'] = 40; |
|---|
| 155 | |
|---|
| 156 | // use this timezone to display date/time |
|---|
| 157 | $rcmail_config['timezone'] = 1; |
|---|
| 158 | |
|---|
| 159 | // prefer displaying HTML messages |
|---|
| 160 | $rcmail_config['prefer_html'] = TRUE; |
|---|
| 161 | |
|---|
| 162 | // show pretty dates as standard |
|---|
| 163 | $rcmail_config['prettydate'] = TRUE; |
|---|
| 164 | |
|---|
| 165 | // end of config file |
|---|
| 166 | ?> |
|---|