Debian Codegraph @

doc/text/imap/download/release-notes/2.5/x/2.5.0.txt

raw
1 Cyrus IMAP 2.5.0 Release Notes
2 ******************************
3
4 Important:
5
6 Make sure to read the Upgrading to Cyrus IMAP 2.5.0 notes (all of
7 them).
8
9 * New Features
10
11 * Configuration Option Changes and Enhancements
12
13 * Development: Switch to autoconf and libtool
14
15 * Development: Switch to Phabricator
16
17 * Development: Sphinx for Documentation
18
19 Download from GitHub:
20
21 * https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-
22 imapd-2.5.0/cyrus-imapd-2.5.0.tar.gz
23
24 * https://github.com/cyrusimap/cyrus-imapd/releases/download/cyrus-
25 imapd-2.5.0/cyrus-imapd-2.5.0.tar.gz.sig
26
27
28 Upgrading to Cyrus IMAP 2.5.0
29 =============================
30
31 It is strongly recommended to shut down the Cyrus IMAP services before
32 performing the upgrade, as the newer binaries will end up writing to
33 "mailboxes.db" in a way that is not compatible with the older binaries
34 (that would otherwise still be running).
35
36 You can start the server immediately after upgrading, however.
37
38
39 Underscores in "cmd" Names in cyrus.conf(5)
40 -------------------------------------------
41
42 Underscores (the "_" character) are no longer allowed in the "START",
43 "SERVICES" and "EVENTS" sections of cyrus.conf(5), as they interfere
44 with configuration options in imapd.conf(5) being prefixed by service
45 names and an underscore ("_") character.
46
47
48 Database Format Upgrade for Mailboxes
49 -------------------------------------
50
51 Upgrading to Cyrus IMAP 2.5.0 recommends the upgrade of database
52 formats, for which the reconstruct utility has been modified allowing
53 administrators to run:
54
55 # **/usr/lib/cyrus-imapd/reconstruct -V max** [options]
56
57 This command can be run at the administrator's convenience, and while
58 running the database format upgrade process is not strictly required,
59 it is certainly strongly recommended.
60
61 Releases prior to 2.5.0, namely the 2.4 series, upgraded "cyrus.index"
62 database formats in-line (i.e. as the mailbox in question as being
63 used). This may have caused an I/O storm in some situations, which
64 2.5.0 aims to address.
65
66 The minor version of the "cyrus.index" file in 2.5.0 is **13**. While
67 mailboxes with an older format will continue to work "forever", newer
68 features such as annotation quotas will fail, as there is no space in
69 the database formats prior to version 13 to store the new feature's
70 information.
71
72 Until you upgrade the database format, you may experience slightly
73 inconsistent search results, due to the "cyrus.cache" format in Cyrus
74 IMAP versions prior to 2.4.0 running words together and not obeying
75 word boundaries (as well as versions in the 2.4 and 2.5 series).
76
77 If you were running Cyrus 2.3.x with "expunge_mode: delayed", then the
78 contents of the "cyrus.expunge" file will be removed the first time
79 the mailbox is opened, and the mailbox will act as if "expunge_mode"
80 was set to "immediate" -- until it is upgraded.
81
82 This is because version 2.3 mailboxes used the "cyrus.expunge" file,
83 and it's not worth the complexity to try to recreate that file.
84
85 This upgrade path supports upgrades from Cyrus IMAP version 2.2.12 and
86 later versions.
87
88 Important:
89
90 The above command can run while the Cyrus IMAP services are in
91 operation, and does **not** interfere with the service's operations.
92
93 Note:
94
95 Additional options can be specified to reconstruct(8) to more
96 granularly specify which mailboxes' "cyrus.index" is to be upgraded.
97
98
99 Quota Fixes and Enhancements
100 ----------------------------
101
102 After all mailboxes are upgraded, you should run "quota -f" to make
103 all message and folder counts are correct. The new quota types that
104 Cyrus IMAP 2.5.0 supports require the counts to need to be accurate.
105
106
107 Cyrus IMAP Murder Topologies
108 ----------------------------
109
110 Environments that run a Cyrus IMAP Murder topology will want to
111 upgrade their backends before they upgrade their frontends.
112
113
114 Greater Memory Footprint
115 ------------------------
116
117 For those upgrading from 2.3.X; newer releases of Cyrus IMAP will use
118 significantly more memory per selected mailbox. This is not an error
119 or bug; it's a feature. The newer code is holding more data and
120 metadata in memory for purposes of faster access to more of the
121 mailbox. This is not a memory leak.
122
123
124 New Features
125 ============
126
127
128 Index Namelock Release
129 ----------------------
130
131 Long-running (idling) connections may have previously intervened with
132 mailbox deletions and general cleanup work, resulting in one
133 connection blocking another from, for example, deleting and recreating
134 a mailbox:
135
136 C1: SELECT "Foo"
137 C2: DELETE "Foo"
138 C2: CREATE "Foo"
139
140 The "CREATE" command on line 3 (by client 2, while client 1 still has
141 the "Foo" mailbox selected) would have failed before, but does now
142 succeed.
143
144
145 Extended Quota Types
146 --------------------
147
148 New ways to restrict resource usage:
149
150 * Number of Folders,
151
152 * Number of Messages,
153
154 * Number of Annotations
155
156
157 CalDAV and CardDAV Support
158 --------------------------
159
160 CalDAV and CardDAV support no longer live out-of-tree in the same GIT
161 repository, but are now mainstream and included in Cyrus IMAP 2.5.0.
162
163 This has been a major effort by Carnegie Mellon University and
164 FastMail, and continues to be, enriching the experience of Cyrus IMAP
165 users globally.
166
167 If upgrading to Cyrus IMAP 2.5 from one of the 2.4.17-caldav-beta
168 releases, you MUST run the "dav_reconstruct" utility for each of your
169 CalDAV users.
170
171
172 Support for RFC 5464: IMAP METADATA
173 -----------------------------------
174
175 Cyrus IMAP now fully supports **RFC 5464**, *The IMAP METADATA
176 Extension*.
177
178 This also means the support for the ANNOTATEMORE draft for IMAP will
179 ultimately be dropped.
180
181 Aside from the trusted folder metadata, this also introduces message
182 annotations. Users will need to be given the "n" right to allow them
183 to set message annotations.
184
185
186 Event Notifications
187 -------------------
188
189 Various events occuring in Cyrus IMAP, among which mailbox, message
190 and access events, can now be pushed out through a side-channel and
191 notify client applications or provide other infrastructure with
192 detailed information.
193
194
195 Mailbox Distribution Enhancements: Backend and Partition Selection
196 ------------------------------------------------------------------
197
198 Thanks to the work of Julien Coloos and colleagues, a new mode is
199 available for server and partition selection upon mailbox creation.
200
201 Prior to Cyrus IMAP 2.5.0, the server and/or partition on which to
202 create a new mailbox was selected by detecting the largest amount of
203 absolute free disk space on all servers and partitions. The mailbox
204 distribution feature allows for more intelligent and flexible routines
205 to be used in the selection. Please see our Administrator Guide for
206 more details.
207
208
209 New Database Format for "mailboxes.db"
210 --------------------------------------
211
212 The database format for mailboxes.db has been upgraded, adding;
213
214 * A new mailbox type for deleted mailboxes.
215
216 In versions of Cyrus IMAP prior to 2.5.0, mailboxes that were
217 deleted may have become unavailable for actual cleanup expecting
218 another session on the same mailbox to clean up the directories and
219 files. See also Index Namelock Release.
220
221 * A key-value storage format is used, allowing for faster and better
222 parsing of "mailboxes.db", more granular updates to runtime
223 environments, and more sustainable future upgrades.
224
225
226 New Database Format "twoskip"
227 -----------------------------
228
229 A new database format has been added, called "twoskip" [1].
230
231 This new database format is reputedly better, faster, safer and 64-bit
232 capable, as opposed to our former favorite "skiplist".
233
234 "twoskip" can be used for the following databases:
235
236 * "annotation_db"
237
238 * "duplicate_db"
239
240 * "mboxkey_db"
241
242 * "mboxlist_db"
243
244 * "ptscache_db"
245
246 * "quota_db"
247
248 * "seenstate_db"
249
250 * "subscription_db"
251
252 * "statuscache_db"
253
254 * "tls_sessions_db"
255
256 * "user_deny_db"
257
258
259 Miscellaneous
260 -------------
261
262
263 Allowing Undefined Annotations
264 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
265
266 Cyrus IMAP 2.5.0 allows administrators to configure that undefined
267 annotations should be allowed, using a new
268 "annotation_allow_undefined" setting in imapd.conf(5).
269
270
271 Catchall Mailbox for LMTP
272 ~~~~~~~~~~~~~~~~~~~~~~~~~
273
274 Thanks to the work by Carsten Hoeger and Ralf Haferkamp, this new
275 feature enables administrators to configure a target mailbox for mail
276 delivered through LMTP to targetted mailboxes that do not exist.
277
278 For example, a mail that LMTP would deliver to "user/bovik", which for
279 the sake of argument does not exist in this example, setting
280 "lmtp_catchall_mailbox" to "admin" will instead deliver the mail to
281 "user/admin".
282
283 Note:
284
285 **Mailbox name, not Email Address**Note that
286 **lmtp_catchall_mailbox** must be a user mailbox name, not an email
287 address. Also note that the **user/** namespace indicator as well as
288 the hierarchy separator are to be omitted.
289
290
291 Does this impact lmtp_fuzzy_mailbox_match?
292 """"""""""""""""""""""""""""""""""""""""""
293
294 Environments that have "lmtp_fuzzy_mailbox_match" enabled, in order to
295 have LMTP seek from the targetted, non-existent mailbox sub-folder
296 (example: "user/bovik/spam/probably") all the way to the toplevel
297 mailbox folder (i.e. "user/bovik") until it finds a mailbox
298 (sub-)folder that does exist (example: "user/bovik/spam"), are not
299 impacted by this setting.
300
301
302 Can the lmtp_catchall_mailbox include the path to a sub-folder of a target mailbox?
303 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
304
305 UNCONFIRMED
306
307
308 Can the lmtp_catchall_mailbox be a shared folder?
309 """""""""""""""""""""""""""""""""""""""""""""""""
310
311 UNCONFIRMED
312
313
314 Callout for SETMETADATA
315 ~~~~~~~~~~~~~~~~~~~~~~~
316
317 A callout program can be called when annotations are set, configured
318 through "annotation_callout".
319
320
321 Host & User Login Restrictions
322 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
323
324 Logins can now be restricted on a per host (source IP address) or per
325 user basis, using the settings "maxlogins_per_host" and
326 "maxlogins_per_user".
327
328
329 Configuration Option Changes and Enhancements
330 =============================================
331
332 Important:
333
334 While it is not mandatory to update your configuration file with
335 these new settings, not doing so may have undesired side-effects,
336 including but not limited to deprecation warnings in log messages.
337
338
339 Option Name Changes for "autocreate"
340 ------------------------------------
341
342 The options related to automatic creation of user mailboxes and sub-
343 folders (aka. *autocreate*) have been changed to hold a prefix of
344 "autocreate_".
345
346 The following *autocreate* options are now available:
347
348 **autocreate_inbox_folders** (was: "autocreateinboxfolders")
349
350 "autocreate_inbox_folders" controls which folders to create in
351 addition to the INBOX folder.
352
353 Separate the folder names by "|".
354
355 **autocreate_post** (was: "createonpost")
356
357 Controls whether or not to create a folder when a message is first
358 posted to it (by LTMP).
359
360 **autocreate_quota** (was: "autocreatequota")
361
362 When creating a user mailbox, set the quota for that mailbox to the
363 value of this configuration option.
364
365 **autocreate_quota_messages** (not available)
366
367 When creating a user mailbox, set the message quota (maximum number
368 of messages allowed in the folder hierarchy) to the value of this
369 configuration option.
370
371 **autocreate_sieve_folders** (was: "autosievefolders")
372
373 Limit the folders that can be created automatically by a Sieve
374 script performing a "fileinto" action, to the folders listed in
375 this configuration option.
376
377 Separate the folder names by "|".
378
379 **autocreate_sieve_script** (unchanged)
380
381 When creating a user mailbox, associate the Sieve script configured
382 here.
383
384 **autocreate_sieve_script_compile** (was:
385 "generate_compiled_sieve_script")
386
387 Whether or not to compile the Sieve script configured by
388 "autocreate_sieve_script".
389
390 **autocreate_sieve_script_compiled** (was:
391 "autocreate_sieve_compiled_script")
392
393 When creating a user mailbox, associate the already compiled Sieve
394 script configured here.
395
396 **autocreate_subscribe_folders** (was: "autosubscribeinboxfolders")
397
398 List the folder names to which the user for which a mailbox is
399 being created should be subscribed.
400
401 Note:
402
403 All folders listed here are considered to reside in the personal
404 namespace.
405
406 Separate the folder names by "|".
407
408 **autocreate_subscribe_sharedfolders** (was:
409 "autosubscribesharedfolders")
410
411 List the folder names of shared folders to which the user for which
412 a mailbox is being automatically created should be subscribed.
413
414 Separate the folder names by "|".
415
416 **autocreate_subscribe_sharedfolders_all** (was:
417 "autosubscribe_all_sharedfolders")
418
419 Rather than subscribe the user for which a mailbox is being
420 automatically created to some shared folders, simply subscribe the
421 user to all shared folders.
422
423 **autocreate_users** (unchanged)
424
425 Limit the users for which mailboxes may be created to the list
426 configured here.
427
428
429 Default Change: "delete_mode"
430 -----------------------------
431
432 The default for the imapd.conf(5) configuration option "delete_mode"
433 has changed from "immediate" to "delayed".
434
435 This causes mail folders that are deleted by a client to not
436 immediately dissappear from the filesystem. Instead, they are renamed
437 to a deleted namespace that is visible only to administrators.
438
439 A separate job "cyr_expire -D $x" is to be included in the master
440 service configuration file cyrus.conf(5), specifically in the EVENTS
441 section. "$x" is a number of days to keep already deleted folders.
442
443 **Example section of :cyrusman:`cyrus.conf(5)`**
444
445 EVENTS {
446 deleteprune cmd="cyr_expire -D 69" at=0430
447 }
448
449 In the aforementioned example, folders are purged from the filesystem
450 only after 2 times 31 plus 7 days, corresponding with 2 cycles of a
451 monthly (full, virtual) backup of which one might fail.
452
453
454 Default Change: "expunge_mode"
455 ------------------------------
456
457 The default for the imapd.conf(5) configuration option "expunge_mode"
458 has changed from "default" to "delayed".
459
460 This causes the mail message files associated with messages that are
461 flagged as Deleted in a folder that is subsequently expunged, or
462 individual messages that are expunged, to not be removed from the
463 filesystem directly.
464
465 A separate job "cyr_expire -X $x" is to be included in the master
466 service configuration file cyrus.conf(5), specifically in the EVENTS
467 section. "$x" is a number of days to keep the message files on the
468 filesystem.
469
470 **Example section of :cyrusman:`cyrus.conf(5)`**
471
472 EVENTS {
473 expungeprune cmd="cyr_expire -X 69" at=0430
474 }
475
476 In the aforementioned example, message files are purged from the
477 filesystem only after 2 times 31 plus 7 days, corresponding with 2
478 cycles of a monthly (full, virtual) backup of which one might fail.
479
480
481 Option Name Changes for "ldap_tls_*"
482 ------------------------------------
483
484 Configuration option names for LDAP SSL/TLS configuration in
485 imapd.conf(5) have been changed:
486
487 **ldap_ca_dir** (was: "ldap_tls_cacert_dir")
488
489 **ldap_ca_file** (was: "ldap_tls_cacert_file")
490
491 **ldap_client_cert** (was: "ldap_tls_cert")
492
493 **ldap_verify_peer** (was: "ldap_tls_check_peer")
494
495 **ldap_ciphers** (was: "ldap_tls_ciphers")
496
497 **ldap_client_key** (was: "ldap_tls_key")
498
499
500 Option Name Changes for "tls_*"
501 -------------------------------
502
503 Configuration option names for SSL/TLS configuration in imapd.conf(5)
504 have been changed to better reflect how they are used, as enhancements
505 would otherwise create great confusion.
506
507 **tls_client_ca_dir** (was: "tls_ca_path")
508
509 **tls_client_ca_file** (was: "tls_ca_file")
510
511 The former "tls_ca_*" configuration options specified one or more
512 SSL Certificate Authority certificates against which SSL
513 certificates offered by clients could be verified.
514
515 In a Cyrus IMAP Murder topology however, Cyrus IMAP servers
516 themselves become clients of other Cyrus IMAP servers, but may not
517 have been issued certificates under the same verification chain.
518
519 With the (too) generic names for "tls_ca_*" configuration options out
520 of the way, Cyrus IMAP 2.5.0 adds the following configuration options:
521
522 **tls_server_cert** (was: "tls_cert_file")
523
524 **tls_server_key** (was: "tls_key_file")
525
526 Server SSL certificate and key to use for connections from clients.
527
528 **tls_sessions_db** (was: "tlscache_db")
529
530 **tls_sessions_db_path** (was: "tlscache_db_path")
531
532
533 New Options for "tls_*"
534 -----------------------
535
536 **tls_client_cert** (<none>)
537
538 **tls_client_key** (<none>)
539
540 Client SSL certificate and key to use when cyrus-imapd behaves as a
541 client (to other cyrus-imapd server (instances)).
542
543 **tls_client_ca_file** (<none>)
544
545 **tls_client_ca_dir** (<none>)
546
547 Certificate Authority file or directory used to verify client SSL
548 certificates.
549
550 **tls_client_certs** ("optional")
551
552 Disable ("off"), allow ("optional") or require ("require") clients
553 authenticate with an SSL certificate.
554
555 **tls_server_ca_file** (<none>)
556
557 **tls_server_ca_dir** (<none>)
558
559 Certificate Authority file or directory used to verify SSL
560 certificates offered by other servers.
561
562 **tls_compression** ("0")
563
564 Enable TLS compression. Disabled by default.
565
566 **tls_eccurve** ("prime256v1")
567
568 Select the elliptic curve used for ECDHE. See **openssl ecparams
569 -list_curves** for supported values on your platform.
570
571 **tls_prefer_server_ciphers** ("0")
572
573 Prefer the cipher order configured on the server-side.
574
575 **tls_versions** ("ssl2 ssl3 tls1_0 tls1_1 tls1_2")
576
577 Disable SSL/TLS protocols not in this list.
578
579
580 Development: Switch to "autoconf" and "libtool"
581 ===============================================
582
583 With the release of Cyrus IMAP 2.5.0, the Cyrus IMAP project has
584 switched to using autoconf and libtool.
585
586
587 Development: Switch to Phabricator
588 ==================================
589
590 An instance of Phabricator is going to be replacing our old Bugzilla.
591
592 We believe this better facilitates our processes, and will make it
593 easier to contribute code and collaborate.
594
595 Please see https://git.cyrus.foundation/.
596
597 Note:
598
599 The Phabricator installation suffered a disk failure. We now use
600 GitHub for code and bug management. https://github.com/cyrusimap
601 /cyrus-imapd
602
603
604 Development: Sphinx for Documentation
605 =====================================
606
607 While a work in progress still, you're looking at the new and improved
608 documentation effort for the Cyrus project as a whole.
609
610 This documentation is written in reStructuredText, and rendered by
611 Sphinx.
612
613 The GIT repository for the documentation is at
614
615 -[ Footnotes ]-
616
617 [1] http://opera.brong.fastmail.fm.user.fm/talks/twoskip/twoskip-
618 yapc12.pdf