commit | author | age
|
4e17e6
|
1 |
<?php |
T |
2 |
|
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
acc005
|
5 |
| Main configuration file with default settings | |
4e17e6
|
6 |
| | |
e019f2
|
7 |
| This file is part of the Roundcube Webmail client | |
acc005
|
8 |
| Copyright (C) 2005-2013, The Roundcube Dev Team | |
7fe381
|
9 |
| | |
T |
10 |
| Licensed under the GNU General Public License version 3 or | |
|
11 |
| any later version with exceptions for skins & plugins. | |
|
12 |
| See the README file for a full license statement. | |
4e17e6
|
13 |
+-----------------------------------------------------------------------+ |
T |
14 |
*/ |
|
15 |
|
acc005
|
16 |
$config = array(); |
AM |
17 |
|
|
18 |
// ---------------------------------- |
|
19 |
// SQL DATABASE |
|
20 |
// ---------------------------------- |
|
21 |
|
|
22 |
// Database connection string (DSN) for read+write operations |
|
23 |
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database |
|
24 |
// Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv |
|
25 |
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php |
|
26 |
// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646' |
9bacb2
|
27 |
$config['db_dsnw'] = 'mysql://roundcube:@localhost/roundcubemail'; |
acc005
|
28 |
|
AM |
29 |
// Database DSN for read-only operations (if empty write database will be used) |
|
30 |
// useful for database replication |
|
31 |
$config['db_dsnr'] = ''; |
|
32 |
|
92d18c
|
33 |
// Disable the use of already established dsnw connections for subsequent reads |
TB |
34 |
$config['db_dsnw_noread'] = false; |
|
35 |
|
acc005
|
36 |
// use persistent db-connections |
AM |
37 |
// beware this will not "always" work as expected |
|
38 |
// see: http://www.php.net/manual/en/features.persistent-connections.php |
|
39 |
$config['db_persistent'] = false; |
|
40 |
|
|
41 |
// you can define specific table (and sequence) names prefix |
|
42 |
$config['db_prefix'] = ''; |
|
43 |
|
a69f99
|
44 |
// Mapping of table names and connections to use for ALL operations. |
TB |
45 |
// This can be used in a setup with replicated databases and a DB master |
|
46 |
// where read/write access to cache tables should not go to master. |
|
47 |
$config['db_table_dsn'] = array( |
|
48 |
// 'cache' => 'r', |
|
49 |
// 'cache_index' => 'r', |
|
50 |
// 'cache_thread' => 'r', |
|
51 |
// 'cache_messages' => 'r', |
|
52 |
); |
|
53 |
|
4e17e6
|
54 |
|
2d08c5
|
55 |
// ---------------------------------- |
A |
56 |
// LOGGING/DEBUGGING |
|
57 |
// ---------------------------------- |
|
58 |
|
e077c1
|
59 |
// system error reporting, sum of: 1 = log; 4 = show, 8 = trace |
acc005
|
60 |
$config['debug_level'] = 1; |
4e17e6
|
61 |
|
b77d0d
|
62 |
// log driver: 'syslog' or 'file'. |
acc005
|
63 |
$config['log_driver'] = 'file'; |
b77d0d
|
64 |
|
0ad27c
|
65 |
// date format for log entries |
A |
66 |
// (read http://php.net/manual/en/function.date.php for all format characters) |
acc005
|
67 |
$config['log_date_format'] = 'd-M-Y H:i:s O'; |
0ad27c
|
68 |
|
b77d0d
|
69 |
// Syslog ident string to use, if using the 'syslog' log driver. |
acc005
|
70 |
$config['syslog_id'] = 'roundcube'; |
b77d0d
|
71 |
|
A |
72 |
// Syslog facility to use, if using the 'syslog' log driver. |
|
73 |
// For possible values see installer or http://php.net/manual/en/function.openlog.php |
acc005
|
74 |
$config['syslog_facility'] = LOG_USER; |
b77d0d
|
75 |
|
3e3429
|
76 |
// Log sent messages to <log_dir>/sendmail or to syslog |
acc005
|
77 |
$config['smtp_log'] = true; |
b77d0d
|
78 |
|
060467
|
79 |
// Log successful/failed logins to <log_dir>/userlogins or to syslog |
acc005
|
80 |
$config['log_logins'] = false; |
b77d0d
|
81 |
|
fcc7f8
|
82 |
// Log session authentication errors to <log_dir>/session or to syslog |
acc005
|
83 |
$config['log_session'] = false; |
fcc7f8
|
84 |
|
2d08c5
|
85 |
// Log SQL queries to <log_dir>/sql or to syslog |
acc005
|
86 |
$config['sql_debug'] = false; |
cc97ea
|
87 |
|
2d08c5
|
88 |
// Log IMAP conversation to <log_dir>/imap or to syslog |
acc005
|
89 |
$config['imap_debug'] = false; |
6dc026
|
90 |
|
2d08c5
|
91 |
// Log LDAP conversation to <log_dir>/ldap or to syslog |
acc005
|
92 |
$config['ldap_debug'] = false; |
cc9570
|
93 |
|
2d08c5
|
94 |
// Log SMTP conversation to <log_dir>/smtp or to syslog |
acc005
|
95 |
$config['smtp_debug'] = false; |
f5d61d
|
96 |
|
2d08c5
|
97 |
// ---------------------------------- |
A |
98 |
// IMAP |
|
99 |
// ---------------------------------- |
4e17e6
|
100 |
|
768e33
|
101 |
// The mail host chosen to perform the log-in. |
AM |
102 |
// Leave blank to show a textbox at login, give a list of hosts |
42b113
|
103 |
// to display a pulldown menu or set one host as string. |
f86e8f
|
104 |
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// |
bb8721
|
105 |
// Supported replacement variables: |
d359dc
|
106 |
// %n - hostname ($_SERVER['SERVER_NAME']) |
B |
107 |
// %t - hostname without the first part |
|
108 |
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) |
b04c51
|
109 |
// %s - domain name after the '@' from e-mail address provided at login screen |
d359dc
|
110 |
// For example %n = mail.domain.tld, %t = domain.tld |
768e33
|
111 |
// WARNING: After hostname change update of mail_host column in users table is |
AM |
112 |
// required to match old user data records with the new host. |
9bacb2
|
113 |
$config['default_host'] = 'localhost'; |
4e17e6
|
114 |
|
42b113
|
115 |
// TCP port used for IMAP connections |
acc005
|
116 |
$config['default_port'] = 143; |
42b113
|
117 |
|
00f347
|
118 |
// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null to use |
4dd417
|
119 |
// best server supported one) |
acc005
|
120 |
$config['imap_auth_type'] = null; |
b026c3
|
121 |
|
00290a
|
122 |
// If you know your imap's folder delimiter, you can specify it here. |
A |
123 |
// Otherwise it will be determined automatically |
acc005
|
124 |
$config['imap_delimiter'] = null; |
030c84
|
125 |
|
00290a
|
126 |
// If IMAP server doesn't support NAMESPACE extension, but you're |
A |
127 |
// using shared folders or personal root folder is non-empty, you'll need to |
|
128 |
// set these options. All can be strings or arrays of strings. |
e3af1f
|
129 |
// Folders need to be ended with directory separator, e.g. "INBOX." |
A |
130 |
// (special directory "~" is an exception to this rule) |
02491a
|
131 |
// These can be used also to overwrite server's namespaces |
acc005
|
132 |
$config['imap_ns_personal'] = null; |
AM |
133 |
$config['imap_ns_other'] = null; |
|
134 |
$config['imap_ns_shared'] = null; |
00290a
|
135 |
|
d8c440
|
136 |
// By default IMAP capabilities are readed after connection to IMAP server |
A |
137 |
// In some cases, e.g. when using IMAP proxy, there's a need to refresh the list |
|
138 |
// after login. Set to True if you've got this case. |
acc005
|
139 |
$config['imap_force_caps'] = false; |
d8c440
|
140 |
|
f75f65
|
141 |
// By default list of subscribed folders is determined using LIST-EXTENDED |
A |
142 |
// extension if available. Some servers (dovecot 1.x) returns wrong results |
|
143 |
// for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225 |
|
144 |
// Enable this option to force LSUB command usage instead. |
ed3e51
|
145 |
// Deprecated: Use imap_disabled_caps = array('LIST-EXTENDED') |
acc005
|
146 |
$config['imap_force_lsub'] = false; |
f75f65
|
147 |
|
3c5489
|
148 |
// Some server configurations (e.g. Courier) doesn't list folders in all namespaces |
AM |
149 |
// Enable this option to force listing of folders in all namespaces |
acc005
|
150 |
$config['imap_force_ns'] = false; |
3c5489
|
151 |
|
ed3e51
|
152 |
// List of disabled imap extensions. |
AM |
153 |
// Use if your IMAP server has broken implementation of some feature |
|
154 |
// and you can't remove it from CAPABILITY string on server-side. |
|
155 |
// For example UW-IMAP server has broken ESEARCH. |
|
156 |
// Note: Because the list is cached, re-login is required after change. |
7c6848
|
157 |
$config['imap_disabled_caps'] = array(); |
ed3e51
|
158 |
|
bc94e2
|
159 |
// IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout) |
acc005
|
160 |
$config['imap_timeout'] = 0; |
f07d23
|
161 |
|
a1fe6b
|
162 |
// Optional IMAP authentication identifier to be used as authorization proxy |
acc005
|
163 |
$config['imap_auth_cid'] = null; |
a1fe6b
|
164 |
|
A |
165 |
// Optional IMAP authentication password to be used for imap_auth_cid |
acc005
|
166 |
$config['imap_auth_pw'] = null; |
a1fe6b
|
167 |
|
8edb3d
|
168 |
// Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'. |
acc005
|
169 |
$config['imap_cache'] = null; |
5cf5ee
|
170 |
|
A |
171 |
// Enables messages cache. Only 'db' cache is supported. |
acc005
|
172 |
$config['messages_cache'] = false; |
5cf5ee
|
173 |
|
61ccdf
|
174 |
// Lifetime of IMAP indexes cache. Possible units: s, m, h, d, w |
acc005
|
175 |
$config['imap_cache_ttl'] = '10d'; |
61ccdf
|
176 |
|
67ac6e
|
177 |
// Lifetime of messages cache. Possible units: s, m, h, d, w |
acc005
|
178 |
$config['messages_cache_ttl'] = '10d'; |
5cf5ee
|
179 |
|
21601b
|
180 |
// Maximum cached message size in kilobytes. |
AM |
181 |
// Note: On MySQL this should be less than (max_allowed_packet - 30%) |
|
182 |
$config['messages_cache_threshold'] = 50; |
|
183 |
|
|
184 |
|
2d08c5
|
185 |
// ---------------------------------- |
A |
186 |
// SMTP |
|
187 |
// ---------------------------------- |
f88d41
|
188 |
|
c3b676
|
189 |
// SMTP server host (for sending mails). |
2d08c5
|
190 |
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// |
c3b676
|
191 |
// If left blank, the PHP mail() function is used |
bb8721
|
192 |
// Supported replacement variables: |
A |
193 |
// %h - user's IMAP hostname |
d359dc
|
194 |
// %n - hostname ($_SERVER['SERVER_NAME']) |
B |
195 |
// %t - hostname without the first part |
|
196 |
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) |
11be93
|
197 |
// %z - IMAP domain (IMAP hostname without the first part) |
d359dc
|
198 |
// For example %n = mail.domain.tld, %t = domain.tld |
acc005
|
199 |
$config['smtp_server'] = ''; |
4e17e6
|
200 |
|
e52aae
|
201 |
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the |
T |
202 |
// deprecated SSL over SMTP (aka SMTPS)) |
acc005
|
203 |
$config['smtp_port'] = 25; |
968bdc
|
204 |
|
e019f2
|
205 |
// SMTP username (if required) if you use %u as the username Roundcube |
d206c1
|
206 |
// will use the current username for login |
acc005
|
207 |
$config['smtp_user'] = ''; |
4e17e6
|
208 |
|
e019f2
|
209 |
// SMTP password (if required) if you use %p as the password Roundcube |
d206c1
|
210 |
// will use the current user's password for login |
acc005
|
211 |
$config['smtp_pass'] = ''; |
4e17e6
|
212 |
|
d206c1
|
213 |
// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use |
S |
214 |
// best server supported one) |
acc005
|
215 |
$config['smtp_auth_type'] = ''; |
d206c1
|
216 |
|
63d4d6
|
217 |
// Optional SMTP authentication identifier to be used as authorization proxy |
acc005
|
218 |
$config['smtp_auth_cid'] = null; |
63d4d6
|
219 |
|
a1fe6b
|
220 |
// Optional SMTP authentication password to be used for smtp_auth_cid |
acc005
|
221 |
$config['smtp_auth_pw'] = null; |
a39212
|
222 |
|
aca3d2
|
223 |
// SMTP HELO host |
S |
224 |
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages |
|
225 |
// Leave this blank and you will get the server variable 'server_name' or |
b07426
|
226 |
// localhost if that isn't defined. |
acc005
|
227 |
$config['smtp_helo_host'] = ''; |
aca3d2
|
228 |
|
bc94e2
|
229 |
// SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout) |
cd9e41
|
230 |
// Note: There's a known issue where using ssl connection with |
AM |
231 |
// timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511) |
acc005
|
232 |
$config['smtp_timeout'] = 0; |
b07426
|
233 |
|
AM |
234 |
// ---------------------------------- |
|
235 |
// LDAP |
|
236 |
// ---------------------------------- |
|
237 |
|
|
238 |
// Type of LDAP cache. Supported values: 'db', 'apc' and 'memcache'. |
acc005
|
239 |
$config['ldap_cache'] = 'db'; |
b07426
|
240 |
|
AM |
241 |
// Lifetime of LDAP cache. Possible units: s, m, h, d, w |
acc005
|
242 |
$config['ldap_cache_ttl'] = '10m'; |
f07d23
|
243 |
|
2d08c5
|
244 |
// ---------------------------------- |
A |
245 |
// SYSTEM |
|
246 |
// ---------------------------------- |
64608b
|
247 |
|
2d08c5
|
248 |
// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA. |
A |
249 |
// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING! |
acc005
|
250 |
$config['enable_installer'] = false; |
4e17e6
|
251 |
|
e04e31
|
252 |
// don't allow these settings to be overriden by the user |
acc005
|
253 |
$config['dont_override'] = array(); |
e04e31
|
254 |
|
4a05e8
|
255 |
// define which settings should be listed under the 'advanced' block |
TB |
256 |
// which is hidden by default |
|
257 |
$config['advanced_prefs'] = array(); |
|
258 |
|
c04b23
|
259 |
// provide an URL where a user can get support for this Roundcube installation |
T |
260 |
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE! |
acc005
|
261 |
$config['support_url'] = ''; |
c04b23
|
262 |
|
T |
263 |
// replace Roundcube logo with this image |
|
264 |
// specify an URL relative to the document root of this Roundcube installation |
d81d69
|
265 |
// an array can be used to specify different logos for specific template files, '*' for default logo |
P |
266 |
// for example array("*" => "/images/roundcube_logo.png", "messageprint" => "/images/roundcube_logo_print.png") |
acc005
|
267 |
$config['skin_logo'] = null; |
c04b23
|
268 |
|
T |
269 |
// automatically create a new Roundcube user when log-in the first time. |
|
270 |
// a new user will be created once the IMAP login succeeds. |
|
271 |
// set to false if only registered users can use this service |
acc005
|
272 |
$config['auto_create_user'] = true; |
c04b23
|
273 |
|
565c47
|
274 |
// Enables possibility to log in using email address from user identities |
acc005
|
275 |
$config['user_aliases'] = false; |
565c47
|
276 |
|
2d08c5
|
277 |
// use this folder to store log files (must be writeable for apache user) |
A |
278 |
// This is used by the 'file' log driver. |
57def0
|
279 |
$config['log_dir'] = RCUBE_INSTALL_PATH . 'logs/'; |
d559cb
|
280 |
|
2d08c5
|
281 |
// use this folder to store temp files (must be writeable for apache user) |
57def0
|
282 |
$config['temp_dir'] = RCUBE_INSTALL_PATH . 'temp/'; |
19862b
|
283 |
|
de8687
|
284 |
// expire files in temp_dir after 48 hours |
DC |
285 |
// possible units: s, m, h, d, w |
|
286 |
$config['temp_dir_ttl'] = '48h'; |
|
287 |
|
2d08c5
|
288 |
// enforce connections over https |
A |
289 |
// with this option enabled, all non-secure connections will be redirected. |
|
290 |
// set the port for the ssl connection as value of this option if it differs from the default 443 |
acc005
|
291 |
$config['force_https'] = false; |
acb08f
|
292 |
|
00e18b
|
293 |
// tell PHP that it should work as under secure connection |
A |
294 |
// even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set) |
|
295 |
// e.g. when you're running Roundcube behind a https proxy |
377bc6
|
296 |
// this option is mutually exclusive to 'force_https' and only either one of them should be set to true. |
acc005
|
297 |
$config['use_https'] = false; |
00e18b
|
298 |
|
1cca4f
|
299 |
// Allow browser-autocompletion on login form. |
A |
300 |
// 0 - disabled, 1 - username and host only, 2 - username, host, password |
acc005
|
301 |
$config['login_autocomplete'] = 0; |
fbe24e
|
302 |
|
c72325
|
303 |
// Forces conversion of logins to lower case. |
AM |
304 |
// 0 - disabled, 1 - only domain part, 2 - domain and local part. |
df95e7
|
305 |
// If users authentication is case-insensitive this must be enabled. |
AM |
306 |
// Note: After enabling it all user records need to be updated, e.g. with query: |
|
307 |
// UPDATE users SET username = LOWER(username); |
acc005
|
308 |
$config['login_lc'] = 2; |
ae39c4
|
309 |
|
95d90f
|
310 |
// Includes should be interpreted as PHP files |
acc005
|
311 |
$config['skin_include_php'] = false; |
fd8c50
|
312 |
|
b6267d
|
313 |
// display software version on login screen |
acc005
|
314 |
$config['display_version'] = false; |
b6267d
|
315 |
|
95d90f
|
316 |
// Session lifetime in minutes |
acc005
|
317 |
$config['session_lifetime'] = 10; |
7902df
|
318 |
|
ae7027
|
319 |
// Session domain: .example.org |
acc005
|
320 |
$config['session_domain'] = ''; |
cf2da2
|
321 |
|
ae7027
|
322 |
// Session name. Default: 'roundcube_sessid' |
acc005
|
323 |
$config['session_name'] = null; |
bd34ca
|
324 |
|
8d2963
|
325 |
// Session authentication cookie name. Default: 'roundcube_sessauth' |
TB |
326 |
$config['session_auth_name'] = null; |
|
327 |
|
ae7027
|
328 |
// Session path. Defaults to PHP session.cookie_path setting. |
acc005
|
329 |
$config['session_path'] = null; |
ae7027
|
330 |
|
42de33
|
331 |
// Backend to use for session storage. Can either be 'db' (default), 'memcache' or 'php' |
TB |
332 |
// If set to 'memcache', a list of servers need to be specified in 'memcache_hosts' |
63e992
|
333 |
// Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed |
42de33
|
334 |
// Setting this value to 'php' will use the default session save handler configured in PHP |
acc005
|
335 |
$config['session_storage'] = 'db'; |
63e992
|
336 |
|
T |
337 |
// Use these hosts for accessing memcached |
71ee56
|
338 |
// Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file |
acc005
|
339 |
$config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' ); |
63e992
|
340 |
|
4e17e6
|
341 |
// check client IP in session athorization |
acc005
|
342 |
$config['ip_check'] = false; |
4e17e6
|
343 |
|
a77cf2
|
344 |
// check referer of incoming requests |
acc005
|
345 |
$config['referer_check'] = false; |
a77cf2
|
346 |
|
c170bf
|
347 |
// X-Frame-Options HTTP header value sent to prevent from Clickjacking. |
T |
348 |
// Possible values: sameorigin|deny. Set to false in order to disable sending them |
acc005
|
349 |
$config['x_frame_options'] = 'sameorigin'; |
c170bf
|
350 |
|
bac7d1
|
351 |
// this key is used to encrypt the users imap password which is stored |
T |
352 |
// in the session record (and the client cookie if remember password is enabled). |
|
353 |
// please provide a string of exactly 24 chars. |
acc005
|
354 |
$config['des_key'] = 'rcmail-!24ByteDESkey*Str'; |
bac7d1
|
355 |
|
2d08c5
|
356 |
// Automatically add this domain to user names for login |
A |
357 |
// Only for IMAP servers that require full e-mail addresses for login |
|
358 |
// Specify an array with 'host' => 'domain' values to support multiple hosts |
6a642d
|
359 |
// Supported replacement variables: |
A |
360 |
// %h - user's IMAP hostname |
d359dc
|
361 |
// %n - hostname ($_SERVER['SERVER_NAME']) |
B |
362 |
// %t - hostname without the first part |
|
363 |
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) |
11be93
|
364 |
// %z - IMAP domain (IMAP hostname without the first part) |
d359dc
|
365 |
// For example %n = mail.domain.tld, %t = domain.tld |
acc005
|
366 |
$config['username_domain'] = ''; |
2d08c5
|
367 |
|
96f59c
|
368 |
// Force domain configured in username_domain to be used for login. |
AM |
369 |
// Any domain in username will be replaced by username_domain. |
|
370 |
$config['username_domain_forced'] = false; |
|
371 |
|
2d08c5
|
372 |
// This domain will be used to form e-mail addresses of new users |
A |
373 |
// Specify an array with 'host' => 'domain' values to support multiple hosts |
bb8721
|
374 |
// Supported replacement variables: |
A |
375 |
// %h - user's IMAP hostname |
|
376 |
// %n - http hostname ($_SERVER['SERVER_NAME']) |
|
377 |
// %d - domain (http hostname without the first part) |
11be93
|
378 |
// %z - IMAP domain (IMAP hostname without the first part) |
d359dc
|
379 |
// For example %n = mail.domain.tld, %t = domain.tld |
acc005
|
380 |
$config['mail_domain'] = ''; |
2d08c5
|
381 |
|
A |
382 |
// Password charset. |
|
383 |
// Use it if your authentication backend doesn't support UTF-8. |
|
384 |
// Defaults to ISO-8859-1 for backward compatibility |
acc005
|
385 |
$config['password_charset'] = 'ISO-8859-1'; |
2d08c5
|
386 |
|
A |
387 |
// How many seconds must pass between emails sent by a user |
acc005
|
388 |
$config['sendmail_delay'] = 0; |
2d08c5
|
389 |
|
751b22
|
390 |
// Maximum number of recipients per message. Default: 0 (no limit) |
acc005
|
391 |
$config['max_recipients'] = 0; |
751b22
|
392 |
|
d1851b
|
393 |
// Maximum allowednumber of members of an address group. Default: 0 (no limit) |
T |
394 |
// If 'max_recipients' is set this value should be less or equal |
acc005
|
395 |
$config['max_group_members'] = 0; |
d1851b
|
396 |
|
9bacb2
|
397 |
// Name your service. This is displayed on the login screen and in the window title |
acc005
|
398 |
$config['product_name'] = 'Roundcube Webmail'; |
2d08c5
|
399 |
|
9bacb2
|
400 |
// Add this user-agent to message headers when sending |
TB |
401 |
$config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION; |
2d08c5
|
402 |
|
A |
403 |
// try to load host-specific configuration |
|
404 |
// see http://trac.roundcube.net/wiki/Howto_Config for more details |
acc005
|
405 |
$config['include_host_config'] = false; |
2d08c5
|
406 |
|
A |
407 |
// path to a text file which will be added to each sent message |
e019f2
|
408 |
// paths are relative to the Roundcube root folder |
acc005
|
409 |
$config['generic_message_footer'] = ''; |
2d08c5
|
410 |
|
5852c1
|
411 |
// path to a text file which will be added to each sent HTML message |
e019f2
|
412 |
// paths are relative to the Roundcube root folder |
acc005
|
413 |
$config['generic_message_footer_html'] = ''; |
5852c1
|
414 |
|
2d08c5
|
415 |
// add a received header to outgoing mails containing the creators IP and hostname |
acc005
|
416 |
$config['http_received_header'] = false; |
2d08c5
|
417 |
|
A |
418 |
// Whether or not to encrypt the IP address and the host name |
|
419 |
// these could, in some circles, be considered as sensitive information; |
|
420 |
// however, for the administrator, these could be invaluable help |
|
421 |
// when tracking down issues. |
acc005
|
422 |
$config['http_received_header_encrypt'] = false; |
2d08c5
|
423 |
|
ac8edb
|
424 |
// This string is used as a delimiter for message headers when sending |
A |
425 |
// a message via mail() function. Leave empty for auto-detection |
acc005
|
426 |
$config['mail_header_delimiter'] = NULL; |
2d08c5
|
427 |
|
6b6f2e
|
428 |
// number of chars allowed for line when wrapping text. |
T |
429 |
// text wrapping is done when composing/sending messages |
acc005
|
430 |
$config['line_length'] = 72; |
6b6f2e
|
431 |
|
T |
432 |
// send plaintext messages as format=flowed |
acc005
|
433 |
$config['send_format_flowed'] = true; |
2d08c5
|
434 |
|
232535
|
435 |
// According to RFC2298, return receipt envelope sender address must be empty. |
AM |
436 |
// If this option is true, Roundcube will use user's identity as envelope sender for MDN responses. |
acc005
|
437 |
$config['mdn_use_from'] = false; |
232535
|
438 |
|
2d08c5
|
439 |
// Set identities access level: |
A |
440 |
// 0 - many identities with possibility to edit all params |
|
441 |
// 1 - many identities with possibility to edit all params but not email address |
|
442 |
// 2 - one identity with possibility to edit all params |
|
443 |
// 3 - one identity with possibility to edit all params but not email address |
f12585
|
444 |
// 4 - one identity with possibility to edit only signature |
acc005
|
445 |
$config['identities_level'] = 0; |
2d08c5
|
446 |
|
f7b58a
|
447 |
// Mimetypes supported by the browser. |
T |
448 |
// attachments of these types will open in a preview window |
|
449 |
// either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf' |
acc005
|
450 |
$config['client_mimetypes'] = null; # null == default |
f7b58a
|
451 |
|
0a8397
|
452 |
// Path to a local mime magic database file for PHPs finfo extension. |
TB |
453 |
// Set to null if the default path should be used. |
acc005
|
454 |
$config['mime_magic'] = null; |
0a8397
|
455 |
|
9e1605
|
456 |
// Absolute path to a local mime.types mapping table file. |
0a8397
|
457 |
// This is used to derive mime-types from the filename extension or vice versa. |
9e1605
|
458 |
// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system, |
TB |
459 |
// download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types |
acc005
|
460 |
$config['mime_types'] = null; |
2d08c5
|
461 |
|
0501b6
|
462 |
// path to imagemagick identify binary |
acc005
|
463 |
$config['im_identify_path'] = null; |
0501b6
|
464 |
|
T |
465 |
// path to imagemagick convert binary |
acc005
|
466 |
$config['im_convert_path'] = null; |
0501b6
|
467 |
|
031491
|
468 |
// Size of thumbnails from image attachments displayed below the message content. |
TB |
469 |
// Note: whether images are displayed at all depends on the 'inline_images' option. |
|
470 |
// Set to 0 to display images in full size. |
acc005
|
471 |
$config['image_thumbnail_size'] = 240; |
031491
|
472 |
|
0501b6
|
473 |
// maximum size of uploaded contact photos in pixel |
acc005
|
474 |
$config['contact_photo_size'] = 160; |
0501b6
|
475 |
|
2d08c5
|
476 |
// Enable DNS checking for e-mail address validation |
acc005
|
477 |
$config['email_dns_check'] = false; |
2d08c5
|
478 |
|
e04e31
|
479 |
// Disables saving sent messages in Sent folder (like gmail) (Default: false) |
AM |
480 |
// Note: useful when SMTP server stores sent mail in user mailbox |
acc005
|
481 |
$config['no_save_sent_messages'] = false; |
e04e31
|
482 |
|
2d08c5
|
483 |
// ---------------------------------- |
A |
484 |
// PLUGINS |
|
485 |
// ---------------------------------- |
|
486 |
|
|
487 |
// List of active plugins (in plugins/ directory) |
acc005
|
488 |
$config['plugins'] = array(); |
2d08c5
|
489 |
|
A |
490 |
// ---------------------------------- |
|
491 |
// USER INTERFACE |
|
492 |
// ---------------------------------- |
|
493 |
|
f52c93
|
494 |
// default messages sort column. Use empty value for default server's sorting, |
e0efd8
|
495 |
// or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc' |
acc005
|
496 |
$config['message_sort_col'] = ''; |
2d08c5
|
497 |
|
f52c93
|
498 |
// default messages sort order |
acc005
|
499 |
$config['message_sort_order'] = 'DESC'; |
2d08c5
|
500 |
|
A |
501 |
// These cols are shown in the message list. Available cols are: |
e0efd8
|
502 |
// subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority' |
acc005
|
503 |
$config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment'); |
2d08c5
|
504 |
|
c8ae24
|
505 |
// the default locale setting (leave empty for auto-detection) |
T |
506 |
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR |
acc005
|
507 |
$config['language'] = null; |
4e17e6
|
508 |
|
1cc9e2
|
509 |
// use this format for date display (date or strftime format) |
acc005
|
510 |
$config['date_format'] = 'Y-m-d'; |
1cc9e2
|
511 |
|
T |
512 |
// give this choice of date formats to the user to select from |
b32fab
|
513 |
// Note: do not use ambiguous formats like m/d/Y |
AM |
514 |
$config['date_formats'] = array('Y-m-d', 'Y/m/d', 'Y.m.d', 'd-m-Y', 'd/m/Y', 'd.m.Y', 'j.n.Y'); |
1cc9e2
|
515 |
|
T |
516 |
// use this format for time display (date or strftime format) |
acc005
|
517 |
$config['time_format'] = 'H:i'; |
1cc9e2
|
518 |
|
T |
519 |
// give this choice of time formats to the user to select from |
acc005
|
520 |
$config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A'); |
1cc9e2
|
521 |
|
T |
522 |
// use this format for short date display (derived from date_format and time_format) |
acc005
|
523 |
$config['date_short'] = 'D H:i'; |
4e17e6
|
524 |
|
1cc9e2
|
525 |
// use this format for detailed date/time formatting (derived from date_format and time_format) |
acc005
|
526 |
$config['date_long'] = 'Y-m-d H:i'; |
4e17e6
|
527 |
|
1966c5
|
528 |
// store draft message is this mailbox |
S |
529 |
// leave blank if draft messages should not be stored |
d08333
|
530 |
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) |
acc005
|
531 |
$config['drafts_mbox'] = 'Drafts'; |
1966c5
|
532 |
|
b4b081
|
533 |
// store spam messages in this mailbox |
d08333
|
534 |
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) |
acc005
|
535 |
$config['junk_mbox'] = 'Junk'; |
b4b081
|
536 |
|
4e17e6
|
537 |
// store sent message is this mailbox |
T |
538 |
// leave blank if sent messages should not be stored |
d08333
|
539 |
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) |
acc005
|
540 |
$config['sent_mbox'] = 'Sent'; |
4e17e6
|
541 |
|
T |
542 |
// move messages to this folder when deleting them |
|
543 |
// leave blank if they should be deleted directly |
d08333
|
544 |
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) |
acc005
|
545 |
$config['trash_mbox'] = 'Trash'; |
4e17e6
|
546 |
|
fa4cd2
|
547 |
// display these folders separately in the mailbox list. |
83ce4b
|
548 |
// these folders will also be displayed with localized names |
d08333
|
549 |
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP) |
acc005
|
550 |
$config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash'); |
4e17e6
|
551 |
|
85e65c
|
552 |
// Disable localization of the default folder names listed above |
acc005
|
553 |
$config['show_real_foldernames'] = false; |
52deb1
|
554 |
|
95ebcd
|
555 |
// automatically create the above listed default folders on first login |
acc005
|
556 |
$config['create_default_folders'] = false; |
b2ff3d
|
557 |
|
c8c1e0
|
558 |
// protect the default folders from renames, deletes, and subscription changes |
acc005
|
559 |
$config['protect_default_folders'] = true; |
c8c1e0
|
560 |
|
2d08c5
|
561 |
// if in your system 0 quota means no limit set this option to true |
acc005
|
562 |
$config['quota_zero_as_unlimited'] = false; |
876b15
|
563 |
|
996066
|
564 |
// Make use of the built-in spell checker. It is based on GoogieSpell. |
e9ac14
|
565 |
// Since Google only accepts connections over https your PHP installatation |
T |
566 |
// requires to be compiled with Open SSL support |
acc005
|
567 |
$config['enable_spellcheck'] = true; |
ed5d29
|
568 |
|
66df08
|
569 |
// Enables spellchecker exceptions dictionary. |
A |
570 |
// Setting it to 'shared' will make the dictionary shared by all users. |
acc005
|
571 |
$config['spellcheck_dictionary'] = false; |
66df08
|
572 |
|
b52166
|
573 |
// Set the spell checking engine. Possible values: |
TB |
574 |
// - 'googie' - the default |
|
575 |
// - 'pspell' - requires the PHP Pspell module and aspell installed |
|
576 |
// - 'enchant' - requires the PHP Enchant module |
|
577 |
// - 'atd' - install your own After the Deadline server or check with the people at http://www.afterthedeadline.com before using their API |
|
578 |
// Since Google shut down their public spell checking service, you need to |
|
579 |
// connect to a Nox Spell Server when using 'googie' here. Therefore specify the 'spellcheck_uri' |
acc005
|
580 |
$config['spellcheck_engine'] = 'googie'; |
5d2b7f
|
581 |
|
b52166
|
582 |
// For locally installed Nox Spell Server or After the Deadline services, |
TB |
583 |
// please specify the URI to call it. |
|
584 |
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 or |
|
585 |
// the After the Deadline package from http://www.afterthedeadline.com. |
|
586 |
// Leave empty to use the public API of service.afterthedeadline.com |
acc005
|
587 |
$config['spellcheck_uri'] = ''; |
996066
|
588 |
|
T |
589 |
// These languages can be selected for spell checking. |
|
590 |
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch'); |
01a8c5
|
591 |
// Leave empty for default set of available language. |
acc005
|
592 |
$config['spellcheck_languages'] = NULL; |
996066
|
593 |
|
66df08
|
594 |
// Makes that words with all letters capitalized will be ignored (e.g. GOOGLE) |
acc005
|
595 |
$config['spellcheck_ignore_caps'] = false; |
66df08
|
596 |
|
A |
597 |
// Makes that words with numbers will be ignored (e.g. g00gle) |
acc005
|
598 |
$config['spellcheck_ignore_nums'] = false; |
66df08
|
599 |
|
A |
600 |
// Makes that words with symbols will be ignored (e.g. g@@gle) |
acc005
|
601 |
$config['spellcheck_ignore_syms'] = false; |
66df08
|
602 |
|
62c861
|
603 |
// Use this char/string to separate recipients when composing a new message |
acc005
|
604 |
$config['recipients_separator'] = ','; |
62c861
|
605 |
|
2d08c5
|
606 |
// don't let users set pagesize to more than this value if set |
acc005
|
607 |
$config['max_pagesize'] = 200; |
967b34
|
608 |
|
f22654
|
609 |
// Minimal value of user's 'refresh_interval' setting (in seconds) |
acc005
|
610 |
$config['min_refresh_interval'] = 60; |
2471d3
|
611 |
|
4171c5
|
612 |
// Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option. |
A |
613 |
// By default refresh time is set to 1 second. You can set this value to true |
|
614 |
// or any integer value indicating number of seconds. |
acc005
|
615 |
$config['upload_progress'] = false; |
4171c5
|
616 |
|
63fda8
|
617 |
// Specifies for how many seconds the Undo button will be available |
A |
618 |
// after object delete action. Currently used with supporting address book sources. |
|
619 |
// Setting it to 0, disables the feature. |
acc005
|
620 |
$config['undo_timeout'] = 0; |
63fda8
|
621 |
|
9c41ba
|
622 |
// A static list of canned responses which are immutable for the user |
TB |
623 |
$config['compose_responses_static'] = array( |
|
624 |
// array('name' => 'Canned Response 1', 'text' => 'Static Response One'), |
|
625 |
// array('name' => 'Canned Response 2', 'text' => 'Static Response Two'), |
|
626 |
); |
|
627 |
|
2d08c5
|
628 |
// ---------------------------------- |
A |
629 |
// ADDRESSBOOK SETTINGS |
|
630 |
// ---------------------------------- |
aec82b
|
631 |
|
6153e2
|
632 |
// This indicates which type of address book to use. Possible choises: |
5526f9
|
633 |
// 'sql' (default), 'ldap' and ''. |
6153e2
|
634 |
// If set to 'ldap' then it will look at using the first writable LDAP |
4f9c83
|
635 |
// address book as the primary address book and it will not display the |
S |
636 |
// SQL address book in the 'Address Book' view. |
5526f9
|
637 |
// If set to '' then no address book will be displayed or only the |
JD |
638 |
// addressbook which is created by a plugin (like CardDAV). |
acc005
|
639 |
$config['address_book_type'] = 'sql'; |
4f9c83
|
640 |
|
S |
641 |
// In order to enable public ldap search, configure an array like the Verisign |
|
642 |
// example further below. if you would like to test, simply uncomment the example. |
ecf295
|
643 |
// Array key must contain only safe characters, ie. a-zA-Z0-9_ |
acc005
|
644 |
$config['ldap_public'] = array(); |
5f25a1
|
645 |
|
4f9c83
|
646 |
// If you are going to use LDAP for individual address books, you will need to |
S |
647 |
// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it. |
|
648 |
// |
|
649 |
// The recommended directory structure for LDAP is to store all the address book entries |
|
650 |
// under the users main entry, e.g.: |
|
651 |
// |
|
652 |
// o=root |
|
653 |
// ou=people |
|
654 |
// uid=user@domain |
3b9a53
|
655 |
// mail=contact@contactdomain |
T |
656 |
// |
4f9c83
|
657 |
// So the base_dn would be uid=%fu,ou=people,o=root |
S |
658 |
// The bind_dn would be the same as based_dn or some super user login. |
3b9a53
|
659 |
/* |
f11541
|
660 |
* example config for Verisign directory |
eea43f
|
661 |
* |
acc005
|
662 |
$config['ldap_public']['Verisign'] = array( |
3b9a53
|
663 |
'name' => 'Verisign.com', |
bb8721
|
664 |
// Replacement variables supported in host names: |
A |
665 |
// %h - user's IMAP hostname |
d359dc
|
666 |
// %n - hostname ($_SERVER['SERVER_NAME']) |
B |
667 |
// %t - hostname without the first part |
|
668 |
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) |
11be93
|
669 |
// %z - IMAP domain (IMAP hostname without the first part) |
d359dc
|
670 |
// For example %n = mail.domain.tld, %t = domain.tld |
3b9a53
|
671 |
'hosts' => array('directory.verisign.com'), |
T |
672 |
'port' => 389, |
c64bee
|
673 |
'use_tls' => false, |
0c5210
|
674 |
'ldap_version' => 3, // using LDAPv3 |
e114a6
|
675 |
'network_timeout' => 10, // The timeout (in seconds) for connect + bind arrempts. This is only supported in PHP >= 5.3.0 with OpenLDAP 2.x |
3b9a53
|
676 |
'user_specific' => false, // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login. |
221b40
|
677 |
// When 'user_specific' is enabled following variables can be used in base_dn/bind_dn config: |
3b9a53
|
678 |
// %fu - The full username provided, assumes the username is an email |
T |
679 |
// address, uses the username_domain value if not an email address. |
|
680 |
// %u - The username prior to the '@'. |
|
681 |
// %d - The domain name after the '@'. |
f76765
|
682 |
// %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com" |
1148c6
|
683 |
// %dn - DN found by ldap search when search_filter/search_base_dn are used |
3b9a53
|
684 |
'base_dn' => '', |
T |
685 |
'bind_dn' => '', |
|
686 |
'bind_pass' => '', |
1148c6
|
687 |
// It's possible to bind for an individual address book |
A |
688 |
// The login name is used to search for the DN to bind with |
|
689 |
'search_base_dn' => '', |
|
690 |
'search_filter' => '', // e.g. '(&(objectClass=posixAccount)(uid=%u))' |
2d08ec
|
691 |
// DN and password to bind as before searching for bind DN, if anonymous search is not allowed |
A |
692 |
'search_bind_dn' => '', |
|
693 |
'search_bind_pw' => '', |
3ce7c5
|
694 |
// Optional map of replacement strings => attributes used when binding for an individual address book |
TB |
695 |
'search_bind_attrib' => array(), // e.g. array('%udc' => 'ou') |
c041d5
|
696 |
// Default for %dn variable if search doesn't return DN value |
A |
697 |
'search_dn_default' => '', |
4d982d
|
698 |
// Optional authentication identifier to be used as SASL authorization proxy |
A |
699 |
// bind_dn need to be empty |
|
700 |
'auth_cid' => '', |
|
701 |
// SASL authentication method (for proxy auth), e.g. DIGEST-MD5 |
|
702 |
'auth_method' => '', |
2d3e2b
|
703 |
// Indicates if the addressbook shall be hidden from the list. |
5c9d1f
|
704 |
// With this option enabled you can still search/view contacts. |
A |
705 |
'hidden' => false, |
2d3e2b
|
706 |
// Indicates if the addressbook shall not list contacts but only allows searching. |
T |
707 |
'searchonly' => false, |
0c5210
|
708 |
// Indicates if we can write to the LDAP directory or not. |
3b9a53
|
709 |
// If writable is true then these fields need to be populated: |
T |
710 |
// LDAP_Object_Classes, required_fields, LDAP_rdn |
0c5210
|
711 |
'writable' => false, |
A |
712 |
// To create a new contact these are the object classes to specify |
|
713 |
// (or any other classes you wish to use). |
|
714 |
'LDAP_Object_Classes' => array('top', 'inetOrgPerson'), |
|
715 |
// The RDN field that is used for new entries, this field needs |
|
716 |
// to be one of the search_fields, the base of base_dn is appended |
|
717 |
// to the RDN to insert into the LDAP directory. |
ca3d76
|
718 |
'LDAP_rdn' => 'cn', |
0c5210
|
719 |
// The required fields needed to build a new contact as required by |
A |
720 |
// the object classes (can include additional fields not required by the object classes). |
|
721 |
'required_fields' => array('cn', 'sn', 'mail'), |
|
722 |
'search_fields' => array('mail', 'cn'), // fields to search in |
|
723 |
// mapping of contact fields to directory attributes |
a605b2
|
724 |
// for every attribute one can specify the number of values (limit) allowed. |
T |
725 |
// default is 1, a wildcard * means unlimited |
0c5210
|
726 |
'fieldmap' => array( |
a605b2
|
727 |
// Roundcube => LDAP:limit |
0501b6
|
728 |
'name' => 'cn', |
T |
729 |
'surname' => 'sn', |
|
730 |
'firstname' => 'givenName', |
b2c3c3
|
731 |
'jobtitle' => 'title', |
a605b2
|
732 |
'email' => 'mail:*', |
0501b6
|
733 |
'phone:home' => 'homePhone', |
T |
734 |
'phone:work' => 'telephoneNumber', |
|
735 |
'phone:mobile' => 'mobile', |
ca3d76
|
736 |
'phone:pager' => 'pager', |
e43cc4
|
737 |
'phone:workfax' => 'facsimileTelephoneNumber', |
0501b6
|
738 |
'street' => 'street', |
T |
739 |
'zipcode' => 'postalCode', |
ca3d76
|
740 |
'region' => 'st', |
0501b6
|
741 |
'locality' => 'l', |
a605b2
|
742 |
// if you country is a complex object, you need to configure 'sub_fields' below |
T |
743 |
'country' => 'c', |
b563fc
|
744 |
'organization' => 'o', |
a605b2
|
745 |
'department' => 'ou', |
T |
746 |
'jobtitle' => 'title', |
|
747 |
'notes' => 'description', |
e43cc4
|
748 |
'photo' => 'jpegPhoto', |
a605b2
|
749 |
// these currently don't work: |
T |
750 |
// 'manager' => 'manager', |
|
751 |
// 'assistant' => 'secretary', |
0501b6
|
752 |
), |
a605b2
|
753 |
// Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country' |
T |
754 |
'sub_fields' => array(), |
3f250a
|
755 |
// Generate values for the following LDAP attributes automatically when creating a new record |
TB |
756 |
'autovalues' => array( |
|
757 |
// 'uid' => 'md5(microtime())', // You may specify PHP code snippets which are then eval'ed |
|
758 |
// 'mail' => '{givenname}.{sn}@mydomain.com', // or composite strings with placeholders for existing attributes |
|
759 |
), |
a6d418
|
760 |
'sort' => 'cn', // The field to sort the listing by. |
TB |
761 |
'scope' => 'sub', // search mode: sub|base|list |
|
762 |
'filter' => '(objectClass=inetOrgPerson)', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act |
|
763 |
'fuzzy_search' => true, // server allows wildcard search |
|
764 |
'vlv' => false, // Enable Virtual List View to more efficiently fetch paginated data (if server supports it) |
|
765 |
'vlv_search' => false, // Use Virtual List View functions for autocompletion searches (if server supports it) |
|
766 |
'numsub_filter' => '(objectClass=organizationalUnit)', // with VLV, we also use numSubOrdinates to query the total number of records. Set this filter to get all numSubOrdinates attributes for counting |
|
767 |
'config_root_dn' => 'cn=config', // Root DN to search config entries (e.g. vlv indexes) |
|
768 |
'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit. |
|
769 |
'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit. |
|
770 |
'referrals' => false, // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups |
d1e08f
|
771 |
|
T |
772 |
// definition for contact groups (uncomment if no groups are supported) |
|
773 |
// for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above) |
|
774 |
// if the groups base_dn is empty, the contact base_dn is used for the groups as well |
15d762
|
775 |
// -> in this case, assure that groups and contacts are separated due to the concernig filters! |
a6d418
|
776 |
'groups' => array( |
3ce7c5
|
777 |
'base_dn' => '', |
TB |
778 |
'scope' => 'sub', // Search mode: sub|base|list |
|
779 |
'filter' => '(objectClass=groupOfNames)', |
|
780 |
'object_classes' => array('top', 'groupOfNames'), // Object classes to be assigned to new groups |
|
781 |
'member_attr' => 'member', // Name of the default member attribute, e.g. uniqueMember |
|
782 |
'name_attr' => 'cn', // Attribute to be used as group name |
|
783 |
'email_attr' => 'mail', // Group email address attribute (e.g. for mailing lists) |
|
784 |
'member_filter' => '(objectclass=*)', // Optional filter to use when querying for group members |
|
785 |
'vlv' => false, // Use VLV controls to list groups |
|
786 |
'class_member_attr' => array( // Mapping of group object class to member attribute used in these objects |
|
787 |
'groupofnames' => 'member', |
|
788 |
'groupofuniquenames' => 'uniquemember' |
|
789 |
), |
6039aa
|
790 |
), |
e43cc4
|
791 |
// this configuration replaces the regular groups listing in the directory tree with |
TB |
792 |
// a hard-coded list of groups, each listing entries with the configured base DN and filter. |
|
793 |
// if the 'groups' option from above is set, it'll be shown as the first entry with the name 'Groups' |
|
794 |
'group_filters' => array( |
|
795 |
'departments' => array( |
|
796 |
'name' => 'Company Departments', |
|
797 |
'scope' => 'list', |
|
798 |
'base_dn' => 'ou=Groups,dc=mydomain,dc=com', |
|
799 |
'filter' => '(|(objectclass=groupofuniquenames)(objectclass=groupofurls))', |
9eaf68
|
800 |
'name_attr' => 'cn', |
e43cc4
|
801 |
), |
TB |
802 |
'customers' => array( |
|
803 |
'name' => 'Customers', |
|
804 |
'scope' => 'sub', |
|
805 |
'base_dn' => 'ou=Customers,dc=mydomain,dc=com', |
|
806 |
'filter' => '(objectClass=inetOrgPerson)', |
9eaf68
|
807 |
'name_attr' => 'sn', |
e43cc4
|
808 |
), |
2c8e84
|
809 |
), |
T |
810 |
); |
|
811 |
*/ |
c296b8
|
812 |
|
A |
813 |
// An ordered array of the ids of the addressbooks that should be searched |
|
814 |
// when populating address autocomplete fields server-side. ex: array('sql','Verisign'); |
acc005
|
815 |
$config['autocomplete_addressbooks'] = array('sql'); |
b19097
|
816 |
|
c296b8
|
817 |
// The minimum number of characters required to be typed in an autocomplete field |
A |
818 |
// before address books will be searched. Most useful for LDAP directories that |
|
819 |
// may need to do lengthy results building given overly-broad searches |
acc005
|
820 |
$config['autocomplete_min_length'] = 1; |
c296b8
|
821 |
|
0213f8
|
822 |
// Number of parallel autocomplete requests. |
A |
823 |
// If there's more than one address book, n parallel (async) requests will be created, |
|
824 |
// where each request will search in one address book. By default (0), all address |
|
825 |
// books are searched in one request. |
acc005
|
826 |
$config['autocomplete_threads'] = 0; |
0213f8
|
827 |
|
A |
828 |
// Max. numer of entries in autocomplete popup. Default: 15. |
acc005
|
829 |
$config['autocomplete_max'] = 15; |
0213f8
|
830 |
|
0501b6
|
831 |
// show address fields in this order |
T |
832 |
// available placeholders: {street}, {locality}, {zipcode}, {country}, {region} |
acc005
|
833 |
$config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}'; |
0501b6
|
834 |
|
f21a04
|
835 |
// Matching mode for addressbook search (including autocompletion) |
A |
836 |
// 0 - partial (*abc*), default |
|
837 |
// 1 - strict (abc) |
|
838 |
// 2 - prefix (abc*) |
|
839 |
// Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode |
acc005
|
840 |
$config['addressbook_search_mode'] = 0; |
f21a04
|
841 |
|
2d08c5
|
842 |
// ---------------------------------- |
A |
843 |
// USER PREFERENCES |
|
844 |
// ---------------------------------- |
4e17e6
|
845 |
|
e55ab0
|
846 |
// Use this charset as fallback for message decoding |
acc005
|
847 |
$config['default_charset'] = 'ISO-8859-1'; |
e55ab0
|
848 |
|
67effe
|
849 |
// skin name: folder from skins/ |
acc005
|
850 |
$config['skin'] = 'larry'; |
e58df3
|
851 |
|
3863a9
|
852 |
// Enables using standard browser windows (that can be handled as tabs) |
AM |
853 |
// instead of popup windows |
acc005
|
854 |
$config['standard_windows'] = false; |
3863a9
|
855 |
|
08ffd9
|
856 |
// show up to X items in messages list view |
acc005
|
857 |
$config['mail_pagesize'] = 50; |
08ffd9
|
858 |
|
A |
859 |
// show up to X items in contacts list view |
acc005
|
860 |
$config['addressbook_pagesize'] = 50; |
4e17e6
|
861 |
|
438753
|
862 |
// sort contacts by this col (preferably either one of name, firstname, surname) |
acc005
|
863 |
$config['addressbook_sort_col'] = 'surname'; |
438753
|
864 |
|
f9a967
|
865 |
// the way how contact names are displayed in the list |
T |
866 |
// 0: display name |
|
867 |
// 1: (prefix) firstname middlename surname (suffix) |
|
868 |
// 2: (prefix) surname firstname middlename (suffix) |
|
869 |
// 3: (prefix) surname, firstname middlename (suffix) |
acc005
|
870 |
$config['addressbook_name_listing'] = 0; |
f9a967
|
871 |
|
4e17e6
|
872 |
// use this timezone to display date/time |
5879c0
|
873 |
// valid timezone identifers are listed here: php.net/manual/en/timezones.php |
T |
874 |
// 'auto' will use the browser's timezone settings |
acc005
|
875 |
$config['timezone'] = 'auto'; |
4647e1
|
876 |
|
4e17e6
|
877 |
// prefer displaying HTML messages |
acc005
|
878 |
$config['prefer_html'] = true; |
4e17e6
|
879 |
|
2a4135
|
880 |
// display remote inline images |
A |
881 |
// 0 - Never, always ask |
|
882 |
// 1 - Ask if sender is not in address book |
|
883 |
// 2 - Always show inline images |
acc005
|
884 |
$config['show_images'] = 0; |
712b30
|
885 |
|
271efe
|
886 |
// open messages in new window |
acc005
|
887 |
$config['message_extwin'] = false; |
271efe
|
888 |
|
TB |
889 |
// open message compose form in new window |
acc005
|
890 |
$config['compose_extwin'] = false; |
271efe
|
891 |
|
b19097
|
892 |
// compose html formatted messages by default |
8eefbb
|
893 |
// 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message |
acc005
|
894 |
$config['htmleditor'] = 0; |
b19097
|
895 |
|
30233b
|
896 |
// show pretty dates as standard |
acc005
|
897 |
$config['prettydate'] = true; |
4e17e6
|
898 |
|
d656f1
|
899 |
// save compose message every 300 seconds (5min) |
acc005
|
900 |
$config['draft_autosave'] = 300; |
0566ad
|
901 |
|
b19097
|
902 |
// default setting if preview pane is enabled |
acc005
|
903 |
$config['preview_pane'] = false; |
b19097
|
904 |
|
bc4960
|
905 |
// Mark as read when viewed in preview pane (delay in seconds) |
T |
906 |
// Set to -1 if messages in preview pane should not be marked as read |
acc005
|
907 |
$config['preview_pane_mark_read'] = 0; |
bc4960
|
908 |
|
eaa394
|
909 |
// Clear Trash on logout |
acc005
|
910 |
$config['logout_purge'] = false; |
eaa394
|
911 |
|
A |
912 |
// Compact INBOX on logout |
acc005
|
913 |
$config['logout_expunge'] = false; |
50c753
|
914 |
|
166b61
|
915 |
// Display attached images below the message body |
acc005
|
916 |
$config['inline_images'] = true; |
5e0045
|
917 |
|
ffae15
|
918 |
// Encoding of long/non-ascii attachment names: |
A |
919 |
// 0 - Full RFC 2231 compatible |
|
920 |
// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default) |
|
921 |
// 2 - Full 2047 compatible |
acc005
|
922 |
$config['mime_param_folding'] = 1; |
ffae15
|
923 |
|
2d08c5
|
924 |
// Set true if deleted messages should not be displayed |
2b5852
|
925 |
// This will make the application run slower |
acc005
|
926 |
$config['skip_deleted'] = false; |
2b5852
|
927 |
|
A |
928 |
// Set true to Mark deleted messages as read as well as deleted |
|
929 |
// False means that a message's read status is not affected by marking it as deleted |
acc005
|
930 |
$config['read_when_deleted'] = true; |
2b5852
|
931 |
|
ca8a17
|
932 |
// Set to true to never delete messages immediately |
A |
933 |
// Use 'Purge' to remove messages marked as deleted |
acc005
|
934 |
$config['flag_for_deletion'] = false; |
2b5852
|
935 |
|
aa8359
|
936 |
// Default interval for auto-refresh requests (in seconds) |
AM |
937 |
// These are requests for system state updates e.g. checking for new messages, etc. |
|
938 |
// Setting it to 0 disables the feature. |
acc005
|
939 |
$config['refresh_interval'] = 60; |
95d90f
|
940 |
|
2fd975
|
941 |
// If true all folders will be checked for recent messages |
acc005
|
942 |
$config['check_all_folders'] = false; |
2fd975
|
943 |
|
e54bb7
|
944 |
// If true, after message delete/move, the next message will be displayed |
acc005
|
945 |
$config['display_next'] = true; |
e54bb7
|
946 |
|
f52c93
|
947 |
// 0 - Do not expand threads |
T |
948 |
// 1 - Expand all threads automatically |
|
949 |
// 2 - Expand only threads with unread messages |
acc005
|
950 |
$config['autoexpand_threads'] = 0; |
1cead0
|
951 |
|
651c7b
|
952 |
// When replying: |
AM |
953 |
// -1 - don't cite the original message |
|
954 |
// 0 - place cursor below the original message |
|
955 |
// 1 - place cursor above original message (top posting) |
acc005
|
956 |
$config['reply_mode'] = 0; |
50f56d
|
957 |
|
0207c4
|
958 |
// When replying strip original signature from message |
acc005
|
959 |
$config['strip_existing_sig'] = true; |
0207c4
|
960 |
|
50f56d
|
961 |
// Show signature: |
0207c4
|
962 |
// 0 - Never |
T |
963 |
// 1 - Always |
50f56d
|
964 |
// 2 - New messages only |
0207c4
|
965 |
// 3 - Forwards and Replies only |
acc005
|
966 |
$config['show_sig'] = 1; |
0207c4
|
967 |
|
47ad83
|
968 |
// Use MIME encoding (quoted-printable) for 8bit characters in message body |
acc005
|
969 |
$config['force_7bit'] = false; |
47ad83
|
970 |
|
b975da
|
971 |
// Defaults of the search field configuration. |
T |
972 |
// The array can contain a per-folder list of header fields which should be considered when searching |
|
973 |
// The entry with key '*' stands for all folders which do not have a specific list set. |
acc005
|
974 |
// Please note that folder names should to be in sync with $config['default_folders'] |
AM |
975 |
$config['search_mods'] = null; // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1)); |
b975da
|
976 |
|
3cacf9
|
977 |
// Defaults of the addressbook search field configuration. |
acc005
|
978 |
$config['addressbook_search_mods'] = null; // Example: array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1); |
3cacf9
|
979 |
|
b7f952
|
980 |
// 'Delete always' |
A |
981 |
// This setting reflects if mail should be always deleted |
|
982 |
// when moving to Trash fails. This is necessary in some setups |
|
983 |
// when user is over quota and Trash is included in the quota. |
acc005
|
984 |
$config['delete_always'] = false; |
b7f952
|
985 |
|
1b30a7
|
986 |
// Directly delete messages in Junk instead of moving to Trash |
acc005
|
987 |
$config['delete_junk'] = false; |
1b30a7
|
988 |
|
f22ea7
|
989 |
// Behavior if a received message requests a message delivery notification (read receipt) |
A |
990 |
// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask) |
|
991 |
// 3 = send automatically if sender is in addressbook, otherwise ask the user |
|
992 |
// 4 = send automatically if sender is in addressbook, otherwise ignore |
acc005
|
993 |
$config['mdn_requests'] = 0; |
b25dfd
|
994 |
|
f22ea7
|
995 |
// Return receipt checkbox default state |
acc005
|
996 |
$config['mdn_default'] = 0; |
f22ea7
|
997 |
|
A |
998 |
// Delivery Status Notification checkbox default state |
f1fba2
|
999 |
// Note: This can be used only if smtp_server is non-empty |
acc005
|
1000 |
$config['dsn_default'] = 0; |
f22ea7
|
1001 |
|
eeb85f
|
1002 |
// Place replies in the folder of the message being replied to |
acc005
|
1003 |
$config['reply_same_folder'] = false; |
eeb85f
|
1004 |
|
a509bb
|
1005 |
// Sets default mode of Forward feature to "forward as attachment" |
acc005
|
1006 |
$config['forward_attachment'] = false; |
a509bb
|
1007 |
|
d73448
|
1008 |
// Defines address book (internal index) to which new contacts will be added |
A |
1009 |
// By default it is the first writeable addressbook. |
|
1010 |
// Note: Use '0' for built-in address book. |
acc005
|
1011 |
$config['default_addressbook'] = null; |
d73448
|
1012 |
|
1d5779
|
1013 |
// Enables spell checking before sending a message. |
acc005
|
1014 |
$config['spellcheck_before_send'] = false; |
1d5779
|
1015 |
|
710b1b
|
1016 |
// Skip alternative email addresses in autocompletion (show one address per contact) |
acc005
|
1017 |
$config['autocomplete_single'] = false; |
710b1b
|
1018 |
|
7e263e
|
1019 |
// Default font for composed HTML message. |
A |
1020 |
// Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New, |
|
1021 |
// Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana |
acc005
|
1022 |
$config['default_font'] = 'Verdana'; |
7e263e
|
1023 |
|
7dff44
|
1024 |
// Default font size for composed HTML message. |
D |
1025 |
// Supported sizes: 8pt, 10pt, 12pt, 14pt, 18pt, 24pt, 36pt |
189958
|
1026 |
$config['default_font_size'] = '10pt'; |
7dff44
|
1027 |
|
969cb0
|
1028 |
// Enables display of email address with name instead of a name (and address in title) |
acc005
|
1029 |
$config['message_show_email'] = false; |
b972b4
|
1030 |
|
AM |
1031 |
// Default behavior of Reply-All button: |
|
1032 |
// 0 - Reply-All always |
|
1033 |
// 1 - Reply-List if mailing list is detected |
|
1034 |
$config['reply_all_mode'] = 0; |