Browse Source

Update roundcube role to use backport

- Added backports to apt configuration.
- Updated roundcube task to use the roundcube backport.
- Updated roundcube's main.inc.php configuration file to use the one included
in the backport distribution.  Migrated configuration parameters from the
existing configuration file except in cases where it looked like the Roundcube
team was changing defaults that were not touched by Sovereign's configuration.
I may have gotten some wrong; needs review by Sovereign maintainer.
Mike Ashley 10 years ago
parent
commit
e4c3c8a288
2 changed files with 191 additions and 94 deletions
  1. 184
    93
      roles/webmail/files/etc_roundcube_main.inc.php
  2. 7
    1
      roles/webmail/tasks/roundcube.yml

+ 184
- 93
roles/webmail/files/etc_roundcube_main.inc.php View File

6
 |                                                                       |
6
 |                                                                       |
7
 | This file is part of the Roundcube Webmail client                     |
7
 | This file is part of the Roundcube Webmail client                     |
8
 | Copyright (C) 2005-2011, The Roundcube Dev Team                       |
8
 | Copyright (C) 2005-2011, The Roundcube Dev Team                       |
9
-| Licensed under the GNU GPL                                            |
9
+|                                                                       |
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.                     |
10
 |                                                                       |
13
 |                                                                       |
11
 +-----------------------------------------------------------------------+
14
 +-----------------------------------------------------------------------+
12
 
15
 
18
 // LOGGING/DEBUGGING
21
 // LOGGING/DEBUGGING
19
 // ----------------------------------
22
 // ----------------------------------
20
 
23
 
21
-// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
24
+// system error reporting, sum of: 1 = log; 4 = show, 8 = trace
22
 $rcmail_config['debug_level'] = 1;
25
 $rcmail_config['debug_level'] = 1;
23
 
26
 
24
 // log driver:  'syslog' or 'file'.
27
 // log driver:  'syslog' or 'file'.
25
 $rcmail_config['log_driver'] = 'file';
28
 $rcmail_config['log_driver'] = 'file';
26
 
29
 
27
 // date format for log entries
30
 // date format for log entries
28
-// (read http://php.net/manual/en/function.date.php for all format characters)
31
+// (read http://php.net/manual/en/function.date.php for all format characters)  
29
 $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
32
 $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
30
 
33
 
31
 // Syslog ident string to use, if using the 'syslog' log driver.
34
 // Syslog ident string to use, if using the 'syslog' log driver.
60
 // IMAP
63
 // IMAP
61
 // ----------------------------------
64
 // ----------------------------------
62
 
65
 
63
-// the mail host chosen to perform the log-in
64
-// leave blank to show a textbox at login, give a list of hosts
66
+// The mail host chosen to perform the log-in.
67
+// Leave blank to show a textbox at login, give a list of hosts
65
 // to display a pulldown menu or set one host as string.
68
 // to display a pulldown menu or set one host as string.
66
 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
69
 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
67
 // Supported replacement variables:
70
 // Supported replacement variables:
68
-// %n - http hostname ($_SERVER['SERVER_NAME'])
69
-// %d - domain (http hostname without the first part)
71
+// %n - hostname ($_SERVER['SERVER_NAME'])
72
+// %t - hostname without the first part
73
+// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
70
 // %s - domain name after the '@' from e-mail address provided at login screen
74
 // %s - domain name after the '@' from e-mail address provided at login screen
71
-// For example %n = mail.domain.tld, %d = domain.tld
72
-// $rcmail_config['default_host'] = '';
75
+// For example %n = mail.domain.tld, %t = domain.tld
76
+// WARNING: After hostname change update of mail_host column in users table is
77
+//          required to match old user data records with the new host.
73
 $rcmail_config['default_host'] = 'ssl://127.0.0.1:993';
78
 $rcmail_config['default_host'] = 'ssl://127.0.0.1:993';
74
 
79
 
75
 // TCP port used for IMAP connections
80
 // TCP port used for IMAP connections
76
-// $rcmail_config['default_port'] = 143;
81
+$rcmail_config['default_port'] = 143;
77
 
82
 
78
-// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
83
+// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null to use
79
 // best server supported one)
84
 // best server supported one)
80
 $rcmail_config['imap_auth_type'] = null;
85
 $rcmail_config['imap_auth_type'] = null;
81
 
86
 
104
 // Enable this option to force LSUB command usage instead.
109
 // Enable this option to force LSUB command usage instead.
105
 $rcmail_config['imap_force_lsub'] = false;
110
 $rcmail_config['imap_force_lsub'] = false;
106
 
111
 
112
+// Some server configurations (e.g. Courier) doesn't list folders in all namespaces
113
+// Enable this option to force listing of folders in all namespaces
114
+$rcmail_config['imap_force_ns'] = false;
115
+
107
 // IMAP connection timeout, in seconds. Default: 0 (no limit)
116
 // IMAP connection timeout, in seconds. Default: 0 (no limit)
108
 $rcmail_config['imap_timeout'] = 0;
117
 $rcmail_config['imap_timeout'] = 0;
109
 
118
 
129
 // If left blank, the PHP mail() function is used
138
 // If left blank, the PHP mail() function is used
130
 // Supported replacement variables:
139
 // Supported replacement variables:
131
 // %h - user's IMAP hostname
140
 // %h - user's IMAP hostname
132
-// %n - http hostname ($_SERVER['SERVER_NAME'])
133
-// %d - domain (http hostname without the first part)
141
+// %n - hostname ($_SERVER['SERVER_NAME'])
142
+// %t - hostname without the first part
143
+// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
134
 // %z - IMAP domain (IMAP hostname without the first part)
144
 // %z - IMAP domain (IMAP hostname without the first part)
135
-// For example %n = mail.domain.tld, %d = domain.tld
136
-// $rcmail_config['smtp_server'] = '';
145
+// For example %n = mail.domain.tld, %t = domain.tld
137
 $rcmail_config['smtp_server'] = 'ssl://127.0.0.1';
146
 $rcmail_config['smtp_server'] = 'ssl://127.0.0.1';
138
 
147
 
139
-// SMTP port (default is 25; 465 for SSL)
148
+// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
149
+// deprecated SSL over SMTP (aka SMTPS))
140
 $rcmail_config['smtp_port'] = 465;
150
 $rcmail_config['smtp_port'] = 465;
141
 
151
 
142
 // SMTP username (if required) if you use %u as the username Roundcube
152
 // SMTP username (if required) if you use %u as the username Roundcube
143
 // will use the current username for login
153
 // will use the current username for login
144
-//$rcmail_config['smtp_user'] = '';
145
 $rcmail_config['smtp_user'] = '%u';
154
 $rcmail_config['smtp_user'] = '%u';
146
 
155
 
147
 // SMTP password (if required) if you use %p as the password Roundcube
156
 // SMTP password (if required) if you use %p as the password Roundcube
148
 // will use the current user's password for login
157
 // will use the current user's password for login
149
-//$rcmail_config['smtp_pass'] = '';
150
 $rcmail_config['smtp_pass'] = '%p';
158
 $rcmail_config['smtp_pass'] = '%p';
151
 
159
 
152
 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
160
 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
159
 // Optional SMTP authentication password to be used for smtp_auth_cid
167
 // Optional SMTP authentication password to be used for smtp_auth_cid
160
 $rcmail_config['smtp_auth_pw'] = null;
168
 $rcmail_config['smtp_auth_pw'] = null;
161
 
169
 
162
-// SMTP HELO host
163
-// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
164
-// Leave this blank and you will get the server variable 'server_name' or
165
-// localhost if that isn't defined.
170
+// SMTP HELO host 
171
+// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages 
172
+// Leave this blank and you will get the server variable 'server_name' or 
173
+// localhost if that isn't defined. 
166
 $rcmail_config['smtp_helo_host'] = '';
174
 $rcmail_config['smtp_helo_host'] = '';
167
 
175
 
168
 // SMTP connection timeout, in seconds. Default: 0 (no limit)
176
 // SMTP connection timeout, in seconds. Default: 0 (no limit)
177
+// Note: There's a known issue where using ssl connection with
178
+// timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
169
 $rcmail_config['smtp_timeout'] = 0;
179
 $rcmail_config['smtp_timeout'] = 0;
170
 
180
 
171
 // ----------------------------------
181
 // ----------------------------------
176
 // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
186
 // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
177
 $rcmail_config['enable_installer'] = false;
187
 $rcmail_config['enable_installer'] = false;
178
 
188
 
189
+// don't allow these settings to be overriden by the user
190
+$rcmail_config['dont_override'] = array();
191
+
192
+// provide an URL where a user can get support for this Roundcube installation
193
+// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
194
+$rcmail_config['support_url'] = '';
195
+
196
+// replace Roundcube logo with this image
197
+// specify an URL relative to the document root of this Roundcube installation
198
+$rcmail_config['skin_logo'] = null;
199
+
200
+// automatically create a new Roundcube user when log-in the first time.
201
+// a new user will be created once the IMAP login succeeds.
202
+// set to false if only registered users can use this service
203
+$rcmail_config['auto_create_user'] = true;
204
+
205
+// Enables possibility to log in using email address from user identities
206
+$rcmail_config['user_aliases'] = false;
207
+
179
 // use this folder to store log files (must be writeable for apache user)
208
 // use this folder to store log files (must be writeable for apache user)
180
 // This is used by the 'file' log driver.
209
 // This is used by the 'file' log driver.
181
 $rcmail_config['log_dir'] = 'logs/';
210
 $rcmail_config['log_dir'] = 'logs/';
195
 // tell PHP that it should work as under secure connection
224
 // tell PHP that it should work as under secure connection
196
 // even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
225
 // even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
197
 // e.g. when you're running Roundcube behind a https proxy
226
 // e.g. when you're running Roundcube behind a https proxy
227
+// this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
198
 $rcmail_config['use_https'] = false;
228
 $rcmail_config['use_https'] = false;
199
 
229
 
200
 // Allow browser-autocompletion on login form.
230
 // Allow browser-autocompletion on login form.
201
 // 0 - disabled, 1 - username and host only, 2 - username, host, password
231
 // 0 - disabled, 1 - username and host only, 2 - username, host, password
202
 $rcmail_config['login_autocomplete'] = 0;
232
 $rcmail_config['login_autocomplete'] = 0;
203
 
233
 
204
-// If users authentication is not case sensitive this must be enabled.
205
-// You can also use it to force conversion of logins to lower case.
206
-// After enabling it all user records need to be updated, e.g. with query:
207
-// UPDATE users SET username = LOWER(username);
208
-$rcmail_config['login_lc'] = false;
209
-
210
-// automatically create a new Roundcube user when log-in the first time.
211
-// a new user will be created once the IMAP login succeeds.
212
-// set to false if only registered users can use this service
213
-$rcmail_config['auto_create_user'] = true;
214
-
215
-// replace Roundcube logo with this image
216
-// specify an URL relative to the document root of this Roundcube installation
217
-$rcmail_config['skin_logo'] = null;
234
+// Forces conversion of logins to lower case.
235
+// 0 - disabled, 1 - only domain part, 2 - domain and local part.
236
+// If users authentication is case-insensitive this must be enabled.
237
+// Note: After enabling it all user records need to be updated, e.g. with query:
238
+//       UPDATE users SET username = LOWER(username);
239
+$rcmail_config['login_lc'] = 2;
218
 
240
 
219
 // Includes should be interpreted as PHP files
241
 // Includes should be interpreted as PHP files
220
 $rcmail_config['skin_include_php'] = false;
242
 $rcmail_config['skin_include_php'] = false;
221
 
243
 
244
+// display software version on login screen
245
+$rcmail_config['display_version'] = false;
246
+
222
 // Session lifetime in minutes
247
 // Session lifetime in minutes
223
-// must be greater than 'keep_alive'/60
224
 $rcmail_config['session_lifetime'] = 10;
248
 $rcmail_config['session_lifetime'] = 10;
225
 
249
 
226
-// session domain: .example.org
250
+// Session domain: .example.org
227
 $rcmail_config['session_domain'] = '';
251
 $rcmail_config['session_domain'] = '';
228
 
252
 
229
-// session name. Default: 'roundcube_sessid'
253
+// Session name. Default: 'roundcube_sessid'
230
 $rcmail_config['session_name'] = null;
254
 $rcmail_config['session_name'] = null;
231
 
255
 
256
+// Session authentication cookie name. Default: 'roundcube_sessauth'
257
+$rcmail_config['session_auth_name'] = null;
258
+
259
+// Session path. Defaults to PHP session.cookie_path setting.
260
+$rcmail_config['session_path'] = null;
261
+
232
 // Backend to use for session storage. Can either be 'db' (default) or 'memcache'
262
 // Backend to use for session storage. Can either be 'db' (default) or 'memcache'
233
 // If set to memcache, a list of servers need to be specified in 'memcache_hosts'
263
 // If set to memcache, a list of servers need to be specified in 'memcache_hosts'
234
 // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
264
 // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
235
 $rcmail_config['session_storage'] = 'db';
265
 $rcmail_config['session_storage'] = 'db';
236
 
266
 
237
 // Use these hosts for accessing memcached
267
 // Use these hosts for accessing memcached
238
-// Define any number of hosts in the form hostname:port
239
-$rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211' );
268
+// Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
269
+$rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
240
 
270
 
241
 // check client IP in session athorization
271
 // check client IP in session athorization
242
 $rcmail_config['ip_check'] = false;
272
 $rcmail_config['ip_check'] = false;
258
 // Specify an array with 'host' => 'domain' values to support multiple hosts
288
 // Specify an array with 'host' => 'domain' values to support multiple hosts
259
 // Supported replacement variables:
289
 // Supported replacement variables:
260
 // %h - user's IMAP hostname
290
 // %h - user's IMAP hostname
261
-// %n - http hostname ($_SERVER['SERVER_NAME'])
262
-// %d - domain (http hostname without the first part)
291
+// %n - hostname ($_SERVER['SERVER_NAME'])
292
+// %t - hostname without the first part
293
+// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
263
 // %z - IMAP domain (IMAP hostname without the first part)
294
 // %z - IMAP domain (IMAP hostname without the first part)
264
-// For example %n = mail.domain.tld, %d = domain.tld
295
+// For example %n = mail.domain.tld, %t = domain.tld
265
 $rcmail_config['username_domain'] = '';
296
 $rcmail_config['username_domain'] = '';
266
 
297
 
267
 // This domain will be used to form e-mail addresses of new users
298
 // This domain will be used to form e-mail addresses of new users
271
 // %n - http hostname ($_SERVER['SERVER_NAME'])
302
 // %n - http hostname ($_SERVER['SERVER_NAME'])
272
 // %d - domain (http hostname without the first part)
303
 // %d - domain (http hostname without the first part)
273
 // %z - IMAP domain (IMAP hostname without the first part)
304
 // %z - IMAP domain (IMAP hostname without the first part)
274
-// For example %n = mail.domain.tld, %d = domain.tld
305
+// For example %n = mail.domain.tld, %t = domain.tld
275
 $rcmail_config['mail_domain'] = '';
306
 $rcmail_config['mail_domain'] = '';
276
 
307
 
277
 // Password charset.
308
 // Password charset.
283
 $rcmail_config['sendmail_delay'] = 0;
314
 $rcmail_config['sendmail_delay'] = 0;
284
 
315
 
285
 // Maximum number of recipients per message. Default: 0 (no limit)
316
 // Maximum number of recipients per message. Default: 0 (no limit)
286
-$rcmail_config['max_recipients'] = 0;
317
+$rcmail_config['max_recipients'] = 0; 
287
 
318
 
288
 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
319
 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
289
 // If 'max_recipients' is set this value should be less or equal
320
 // If 'max_recipients' is set this value should be less or equal
290
-$rcmail_config['max_group_members'] = 0;
321
+$rcmail_config['max_group_members'] = 0; 
291
 
322
 
292
 // add this user-agent to message headers when sending
323
 // add this user-agent to message headers when sending
293
 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
324
 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
327
 // send plaintext messages as format=flowed
358
 // send plaintext messages as format=flowed
328
 $rcmail_config['send_format_flowed'] = true;
359
 $rcmail_config['send_format_flowed'] = true;
329
 
360
 
330
-// don't allow these settings to be overriden by the user
331
-$rcmail_config['dont_override'] = array();
361
+// According to RFC2298, return receipt envelope sender address must be empty.
362
+// If this option is true, Roundcube will use user's identity as envelope sender for MDN responses.
363
+$rcmail_config['mdn_use_from'] = false;
332
 
364
 
333
 // Set identities access level:
365
 // Set identities access level:
334
 // 0 - many identities with possibility to edit all params
366
 // 0 - many identities with possibility to edit all params
335
 // 1 - many identities with possibility to edit all params but not email address
367
 // 1 - many identities with possibility to edit all params but not email address
336
 // 2 - one identity with possibility to edit all params
368
 // 2 - one identity with possibility to edit all params
337
 // 3 - one identity with possibility to edit all params but not email address
369
 // 3 - one identity with possibility to edit all params but not email address
370
+// 4 - one identity with possibility to edit only signature
338
 $rcmail_config['identities_level'] = 0;
371
 $rcmail_config['identities_level'] = 0;
339
 
372
 
340
 // Mimetypes supported by the browser.
373
 // Mimetypes supported by the browser.
342
 // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
375
 // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
343
 $rcmail_config['client_mimetypes'] = null;  # null == default
376
 $rcmail_config['client_mimetypes'] = null;  # null == default
344
 
377
 
345
-// mime magic database
346
-$rcmail_config['mime_magic'] = '/usr/share/misc/magic';
378
+// Path to a local mime magic database file for PHPs finfo extension.
379
+// Set to null if the default path should be used.
380
+$rcmail_config['mime_magic'] = null;
381
+
382
+// Absolute path to a local mime.types mapping table file.
383
+// This is used to derive mime-types from the filename extension or vice versa.
384
+// Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
385
+// download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
386
+$rcmail_config['mime_types'] = null;
347
 
387
 
348
 // path to imagemagick identify binary
388
 // path to imagemagick identify binary
349
 $rcmail_config['im_identify_path'] = null;
389
 $rcmail_config['im_identify_path'] = null;
351
 // path to imagemagick convert binary
391
 // path to imagemagick convert binary
352
 $rcmail_config['im_convert_path'] = null;
392
 $rcmail_config['im_convert_path'] = null;
353
 
393
 
394
+// Size of thumbnails from image attachments displayed below the message content.
395
+// Note: whether images are displayed at all depends on the 'inline_images' option.
396
+// Set to 0 to display images in full size.
397
+$rcmail_config['image_thumbnail_size'] = 240;
398
+
354
 // maximum size of uploaded contact photos in pixel
399
 // maximum size of uploaded contact photos in pixel
355
 $rcmail_config['contact_photo_size'] = 160;
400
 $rcmail_config['contact_photo_size'] = 160;
356
 
401
 
357
 // Enable DNS checking for e-mail address validation
402
 // Enable DNS checking for e-mail address validation
358
 $rcmail_config['email_dns_check'] = false;
403
 $rcmail_config['email_dns_check'] = false;
359
 
404
 
405
+// Disables saving sent messages in Sent folder (like gmail) (Default: false)
406
+// Note: useful when SMTP server stores sent mail in user mailbox
407
+$rcmail_config['no_save_sent_messages'] = false;
408
+
360
 // ----------------------------------
409
 // ----------------------------------
361
 // PLUGINS
410
 // PLUGINS
362
 // ----------------------------------
411
 // ----------------------------------
368
 // USER INTERFACE
417
 // USER INTERFACE
369
 // ----------------------------------
418
 // ----------------------------------
370
 
419
 
371
-// default messages sort column. Use empty value for default server's sorting,
372
-// or 'arrival', 'date', 'subject', 'from', 'to', 'size', 'cc'
420
+// default messages sort column. Use empty value for default server's sorting, 
421
+// or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc'
373
 $rcmail_config['message_sort_col'] = '';
422
 $rcmail_config['message_sort_col'] = '';
374
 
423
 
375
 // default messages sort order
424
 // default messages sort order
376
 $rcmail_config['message_sort_order'] = 'DESC';
425
 $rcmail_config['message_sort_order'] = 'DESC';
377
 
426
 
378
 // These cols are shown in the message list. Available cols are:
427
 // These cols are shown in the message list. Available cols are:
379
-// subject, from, to, cc, replyto, date, size, status, flag, attachment, 'priority'
380
-$rcmail_config['list_cols'] = array('subject', 'status', 'from', 'date', 'size', 'flag', 'attachment');
428
+// subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority'
429
+$rcmail_config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
381
 
430
 
382
 // the default locale setting (leave empty for auto-detection)
431
 // the default locale setting (leave empty for auto-detection)
383
 // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
432
 // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
387
 $rcmail_config['date_format'] = 'Y-m-d';
436
 $rcmail_config['date_format'] = 'Y-m-d';
388
 
437
 
389
 // give this choice of date formats to the user to select from
438
 // give this choice of date formats to the user to select from
390
-$rcmail_config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
439
+// Note: do not use ambiguous formats like m/d/Y
440
+$rcmail_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');
391
 
441
 
392
 // use this format for time display (date or strftime format)
442
 // use this format for time display (date or strftime format)
393
 $rcmail_config['time_format'] = 'H:i';
443
 $rcmail_config['time_format'] = 'H:i';
423
 // display these folders separately in the mailbox list.
473
 // display these folders separately in the mailbox list.
424
 // these folders will also be displayed with localized names
474
 // these folders will also be displayed with localized names
425
 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
475
 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
426
-$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
476
+$rcmail_config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
427
 
477
 
428
 // automatically create the above listed default folders on first login
478
 // automatically create the above listed default folders on first login
429
-// $rcmail_config['create_default_folders'] = false;
430
 $rcmail_config['create_default_folders'] = true;
479
 $rcmail_config['create_default_folders'] = true;
431
 
480
 
432
 // protect the default folders from renames, deletes, and subscription changes
481
 // protect the default folders from renames, deletes, and subscription changes
433
 $rcmail_config['protect_default_folders'] = true;
482
 $rcmail_config['protect_default_folders'] = true;
434
 
483
 
435
-// if in your system 0 quota means no limit set this option to true
484
+// if in your system 0 quota means no limit set this option to true 
436
 $rcmail_config['quota_zero_as_unlimited'] = false;
485
 $rcmail_config['quota_zero_as_unlimited'] = false;
437
 
486
 
438
 // Make use of the built-in spell checker. It is based on GoogieSpell.
487
 // Make use of the built-in spell checker. It is based on GoogieSpell.
474
 // don't let users set pagesize to more than this value if set
523
 // don't let users set pagesize to more than this value if set
475
 $rcmail_config['max_pagesize'] = 200;
524
 $rcmail_config['max_pagesize'] = 200;
476
 
525
 
477
-// Minimal value of user's 'keep_alive' setting (in seconds)
478
-// Must be less than 'session_lifetime'
479
-$rcmail_config['min_keep_alive'] = 60;
526
+// Minimal value of user's 'refresh_interval' setting (in seconds)
527
+$rcmail_config['min_refresh_interval'] = 60;
480
 
528
 
481
 // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
529
 // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
482
 // By default refresh time is set to 1 second. You can set this value to true
530
 // By default refresh time is set to 1 second. You can set this value to true
493
 // ----------------------------------
541
 // ----------------------------------
494
 
542
 
495
 // This indicates which type of address book to use. Possible choises:
543
 // This indicates which type of address book to use. Possible choises:
496
-// 'sql' (default) and 'ldap'.
544
+// 'sql' (default), 'ldap' and ''.
497
 // If set to 'ldap' then it will look at using the first writable LDAP
545
 // If set to 'ldap' then it will look at using the first writable LDAP
498
 // address book as the primary address book and it will not display the
546
 // address book as the primary address book and it will not display the
499
 // SQL address book in the 'Address Book' view.
547
 // SQL address book in the 'Address Book' view.
548
+// If set to '' then no address book will be displayed or only the
549
+// addressbook which is created by a plugin (like CardDAV).
500
 $rcmail_config['address_book_type'] = 'sql';
550
 $rcmail_config['address_book_type'] = 'sql';
501
 
551
 
502
 // In order to enable public ldap search, configure an array like the Verisign
552
 // In order to enable public ldap search, configure an array like the Verisign
504
 // Array key must contain only safe characters, ie. a-zA-Z0-9_
554
 // Array key must contain only safe characters, ie. a-zA-Z0-9_
505
 $rcmail_config['ldap_public'] = array();
555
 $rcmail_config['ldap_public'] = array();
506
 
556
 
507
-// If you are going to use LDAP for individual address books, you will need to
557
+// If you are going to use LDAP for individual address books, you will need to 
508
 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
558
 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
509
 //
559
 //
510
 // The recommended directory structure for LDAP is to store all the address book entries
560
 // The recommended directory structure for LDAP is to store all the address book entries
524
 'name'          => 'Verisign.com',
574
 'name'          => 'Verisign.com',
525
 // Replacement variables supported in host names:
575
 // Replacement variables supported in host names:
526
 // %h - user's IMAP hostname
576
 // %h - user's IMAP hostname
527
-// %n - http hostname ($_SERVER['SERVER_NAME'])
528
-// %d - domain (http hostname without the first part)
577
+// %n - hostname ($_SERVER['SERVER_NAME'])
578
+// %t - hostname without the first part
579
+// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
529
 // %z - IMAP domain (IMAP hostname without the first part)
580
 // %z - IMAP domain (IMAP hostname without the first part)
530
-// For example %n = mail.domain.tld, %d = domain.tld
581
+// For example %n = mail.domain.tld, %t = domain.tld
531
 'hosts'         => array('directory.verisign.com'),
582
 'hosts'         => array('directory.verisign.com'),
532
 'port'          => 389,
583
 'port'          => 389,
533
 'use_tls'	      => false,
584
 'use_tls'	      => false,
534
 'ldap_version'  => 3,       // using LDAPv3
585
 'ldap_version'  => 3,       // using LDAPv3
586
+'network_timeout' => 10,    // The timeout (in seconds) for connect + bind arrempts. This is only supported in PHP >= 5.3.0 with OpenLDAP 2.x
535
 'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
587
 'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
536
 // %fu - The full username provided, assumes the username is an email
588
 // %fu - The full username provided, assumes the username is an email
537
 //       address, uses the username_domain value if not an email address.
589
 //       address, uses the username_domain value if not an email address.
571
 // The RDN field that is used for new entries, this field needs
623
 // The RDN field that is used for new entries, this field needs
572
 // to be one of the search_fields, the base of base_dn is appended
624
 // to be one of the search_fields, the base of base_dn is appended
573
 // to the RDN to insert into the LDAP directory.
625
 // to the RDN to insert into the LDAP directory.
574
-'LDAP_rdn'       => 'mail',
626
+'LDAP_rdn'       => 'cn',
575
 // The required fields needed to build a new contact as required by
627
 // The required fields needed to build a new contact as required by
576
 // the object classes (can include additional fields not required by the object classes).
628
 // the object classes (can include additional fields not required by the object classes).
577
 'required_fields' => array('cn', 'sn', 'mail'),
629
 'required_fields' => array('cn', 'sn', 'mail'),
578
 'search_fields'   => array('mail', 'cn'),  // fields to search in
630
 'search_fields'   => array('mail', 'cn'),  // fields to search in
579
 // mapping of contact fields to directory attributes
631
 // mapping of contact fields to directory attributes
632
+//   for every attribute one can specify the number of values (limit) allowed.
633
+//   default is 1, a wildcard * means unlimited
580
 'fieldmap' => array(
634
 'fieldmap' => array(
581
-// Roundcube  => LDAP
635
+// Roundcube  => LDAP:limit
582
 'name'        => 'cn',
636
 'name'        => 'cn',
583
 'surname'     => 'sn',
637
 'surname'     => 'sn',
584
 'firstname'   => 'givenName',
638
 'firstname'   => 'givenName',
585
-'email'       => 'mail',
639
+'jobtitle'    => 'title',
640
+'email'       => 'mail:*',
586
 'phone:home'  => 'homePhone',
641
 'phone:home'  => 'homePhone',
587
 'phone:work'  => 'telephoneNumber',
642
 'phone:work'  => 'telephoneNumber',
588
 'phone:mobile' => 'mobile',
643
 'phone:mobile' => 'mobile',
644
+'phone:pager' => 'pager',
589
 'street'      => 'street',
645
 'street'      => 'street',
590
 'zipcode'     => 'postalCode',
646
 'zipcode'     => 'postalCode',
647
+'region'      => 'st',
591
 'locality'    => 'l',
648
 'locality'    => 'l',
592
-'country'     => 'c',
649
+// if you country is a complex object, you need to configure 'sub_fields' below
650
+'country'      => 'c',
593
 'organization' => 'o',
651
 'organization' => 'o',
652
+'department'   => 'ou',
653
+'jobtitle'     => 'title',
654
+'notes'        => 'description',
655
+// these currently don't work:
656
+// 'phone:workfax' => 'facsimileTelephoneNumber',
657
+// 'photo'         => 'jpegPhoto',
658
+// 'manager'       => 'manager',
659
+// 'assistant'     => 'secretary',
660
+),
661
+// Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country'
662
+'sub_fields' => array(),
663
+// Generate values for the following LDAP attributes automatically when creating a new record
664
+'autovalues' => array(
665
+// 'uid'  => 'md5(microtime())',               // You may specify PHP code snippets which are then eval'ed 
666
+// 'mail' => '{givenname}.{sn}@mydomain.com',  // or composite strings with placeholders for existing attributes
594
 ),
667
 ),
595
 'sort'          => 'cn',    // The field to sort the listing by.
668
 'sort'          => 'cn',    // The field to sort the listing by.
596
 'scope'         => 'sub',   // search mode: sub|base|list
669
 'scope'         => 'sub',   // search mode: sub|base|list
605
 // definition for contact groups (uncomment if no groups are supported)
678
 // definition for contact groups (uncomment if no groups are supported)
606
 // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
679
 // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
607
 // if the groups base_dn is empty, the contact base_dn is used for the groups as well
680
 // if the groups base_dn is empty, the contact base_dn is used for the groups as well
608
-// -> in this case, assure that groups and contacts are separated due to the concernig filters!
681
+// -> in this case, assure that groups and contacts are separated due to the concernig filters! 
609
 'groups'        => array(
682
 'groups'        => array(
610
 'base_dn'     => '',
683
 'base_dn'     => '',
611
 'scope'       => 'sub',   // search mode: sub|base|list
684
 'scope'       => 'sub',   // search mode: sub|base|list
654
 $rcmail_config['default_charset'] = 'UTF-8';
727
 $rcmail_config['default_charset'] = 'UTF-8';
655
 
728
 
656
 // skin name: folder from skins/
729
 // skin name: folder from skins/
657
-$rcmail_config['skin'] = 'default';
730
+$rcmail_config['skin'] = 'larry';
731
+
732
+// show up to X items in messages list view
733
+$rcmail_config['mail_pagesize'] = 50;
658
 
734
 
659
-// show up to X items in list view
660
-$rcmail_config['pagesize'] = 40;
735
+// show up to X items in contacts list view
736
+$rcmail_config['addressbook_pagesize'] = 50;
661
 
737
 
662
 // sort contacts by this col (preferably either one of name, firstname, surname)
738
 // sort contacts by this col (preferably either one of name, firstname, surname)
663
 $rcmail_config['addressbook_sort_col'] = 'surname';
739
 $rcmail_config['addressbook_sort_col'] = 'surname';
670
 $rcmail_config['addressbook_name_listing'] = 0;
746
 $rcmail_config['addressbook_name_listing'] = 0;
671
 
747
 
672
 // use this timezone to display date/time
748
 // use this timezone to display date/time
749
+// valid timezone identifers are listed here: php.net/manual/en/timezones.php
750
+// 'auto' will use the browser's timezone settings
673
 $rcmail_config['timezone'] = 'auto';
751
 $rcmail_config['timezone'] = 'auto';
674
 
752
 
675
-// is daylight saving On? Default: (bool)date('I');
676
-$rcmail_config['dst_active'] = null;
677
-
678
 // prefer displaying HTML messages
753
 // prefer displaying HTML messages
679
 $rcmail_config['prefer_html'] = true;
754
 $rcmail_config['prefer_html'] = true;
680
 
755
 
684
 // 2 - Always show inline images
759
 // 2 - Always show inline images
685
 $rcmail_config['show_images'] = 0;
760
 $rcmail_config['show_images'] = 0;
686
 
761
 
762
+// open messages in new window
763
+$rcmail_config['message_extwin'] = false;
764
+
765
+// open message compose form in new window
766
+$rcmail_config['compose_extwin'] = false;
767
+
687
 // compose html formatted messages by default
768
 // compose html formatted messages by default
688
-// 0 - never, 1 - always, 2 - on reply to HTML message only
769
+// 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message
689
 $rcmail_config['htmleditor'] = 0;
770
 $rcmail_config['htmleditor'] = 0;
690
 
771
 
691
 // show pretty dates as standard
772
 // show pretty dates as standard
707
 // Compact INBOX on logout
788
 // Compact INBOX on logout
708
 $rcmail_config['logout_expunge'] = false;
789
 $rcmail_config['logout_expunge'] = false;
709
 
790
 
710
-// Display attached images below the message body
791
+// Display attached images below the message body 
711
 $rcmail_config['inline_images'] = true;
792
 $rcmail_config['inline_images'] = true;
712
 
793
 
713
 // Encoding of long/non-ascii attachment names:
794
 // Encoding of long/non-ascii attachment names:
728
 // Use 'Purge' to remove messages marked as deleted
809
 // Use 'Purge' to remove messages marked as deleted
729
 $rcmail_config['flag_for_deletion'] = false;
810
 $rcmail_config['flag_for_deletion'] = false;
730
 
811
 
731
-// Default interval for keep-alive/check-recent requests (in seconds)
732
-// Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
733
-$rcmail_config['keep_alive'] = 60;
812
+// Default interval for auto-refresh requests (in seconds)
813
+// These are requests for system state updates e.g. checking for new messages, etc.
814
+// Setting it to 0 disables the feature.
815
+$rcmail_config['refresh_interval'] = 60;
734
 
816
 
735
 // If true all folders will be checked for recent messages
817
 // If true all folders will be checked for recent messages
736
 $rcmail_config['check_all_folders'] = false;
818
 $rcmail_config['check_all_folders'] = false;
737
 
819
 
738
 // If true, after message delete/move, the next message will be displayed
820
 // If true, after message delete/move, the next message will be displayed
739
-$rcmail_config['display_next'] = false;
821
+$rcmail_config['display_next'] = true;
740
 
822
 
741
-// 0 - Do not expand threads
742
-// 1 - Expand all threads automatically
743
-// 2 - Expand only threads with unread messages
823
+// 0 - Do not expand threads 
824
+// 1 - Expand all threads automatically 
825
+// 2 - Expand only threads with unread messages 
744
 $rcmail_config['autoexpand_threads'] = 0;
826
 $rcmail_config['autoexpand_threads'] = 0;
745
 
827
 
746
-// When replying place cursor above original message (top posting)
747
-$rcmail_config['top_posting'] = false;
828
+// When replying:
829
+// -1 - don't cite the original message
830
+// 0  - place cursor below the original message
831
+// 1  - place cursor above original message (top posting)
832
+$rcmail_config['reply_mode'] = 0;
748
 
833
 
749
 // When replying strip original signature from message
834
 // When replying strip original signature from message
750
 $rcmail_config['strip_existing_sig'] = true;
835
 $rcmail_config['strip_existing_sig'] = true;
756
 // 3 - Forwards and Replies only
841
 // 3 - Forwards and Replies only
757
 $rcmail_config['show_sig'] = 1;
842
 $rcmail_config['show_sig'] = 1;
758
 
843
 
759
-// When replying or forwarding place sender's signature above existing message
760
-$rcmail_config['sig_above'] = false;
761
-
762
 // Use MIME encoding (quoted-printable) for 8bit characters in message body
844
 // Use MIME encoding (quoted-printable) for 8bit characters in message body
763
 $rcmail_config['force_7bit'] = false;
845
 $rcmail_config['force_7bit'] = false;
764
 
846
 
765
 // Defaults of the search field configuration.
847
 // Defaults of the search field configuration.
766
 // The array can contain a per-folder list of header fields which should be considered when searching
848
 // The array can contain a per-folder list of header fields which should be considered when searching
767
 // The entry with key '*' stands for all folders which do not have a specific list set.
849
 // The entry with key '*' stands for all folders which do not have a specific list set.
768
-// Please note that folder names should to be in sync with $rcmail_config['default_imap_folders']
850
+// Please note that folder names should to be in sync with $rcmail_config['default_folders']
769
 $rcmail_config['search_mods'] = null;  // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
851
 $rcmail_config['search_mods'] = null;  // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
770
 
852
 
771
 // Defaults of the addressbook search field configuration.
853
 // Defaults of the addressbook search field configuration.
777
 // when user is over quota and Trash is included in the quota.
859
 // when user is over quota and Trash is included in the quota.
778
 $rcmail_config['delete_always'] = false;
860
 $rcmail_config['delete_always'] = false;
779
 
861
 
862
+// Directly delete messages in Junk instead of moving to Trash
863
+$rcmail_config['delete_junk'] = false;
864
+
780
 // Behavior if a received message requests a message delivery notification (read receipt)
865
 // Behavior if a received message requests a message delivery notification (read receipt)
781
 // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
866
 // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
782
 // 3 = send automatically if sender is in addressbook, otherwise ask the user
867
 // 3 = send automatically if sender is in addressbook, otherwise ask the user
787
 $rcmail_config['mdn_default'] = 0;
872
 $rcmail_config['mdn_default'] = 0;
788
 
873
 
789
 // Delivery Status Notification checkbox default state
874
 // Delivery Status Notification checkbox default state
875
+// Note: This can be used only if smtp_server is non-empty
790
 $rcmail_config['dsn_default'] = 0;
876
 $rcmail_config['dsn_default'] = 0;
791
 
877
 
792
 // Place replies in the folder of the message being replied to
878
 // Place replies in the folder of the message being replied to
806
 // Skip alternative email addresses in autocompletion (show one address per contact)
892
 // Skip alternative email addresses in autocompletion (show one address per contact)
807
 $rcmail_config['autocomplete_single'] = false;
893
 $rcmail_config['autocomplete_single'] = false;
808
 
894
 
895
+// Default font for composed HTML message.
896
+// Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New,
897
+// Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
898
+$rcmail_config['default_font'] = 'Verdana';
899
+
809
 // end of config file
900
 // end of config file

+ 7
- 1
roles/webmail/tasks/roundcube.yml View File

1
+- name: Add backports for Roundcube
2
+  lineinfile: dest=/etc/apt/sources.list line="deb http://http.debian.net/debian wheezy-backports main"
3
+
4
+- name: Update apt cache for backports
5
+  apt: update_cache=yes
6
+
1
 - name: Install Roundcube
7
 - name: Install Roundcube
2
-  apt: pkg={{ item }} state=latest
8
+  apt: pkg={{ item }} state=latest default_release=wheezy-backports
3
   with_items:
9
   with_items:
4
     - roundcube
10
     - roundcube
5
     - roundcube-pgsql
11
     - roundcube-pgsql

Loading…
Cancel
Save