|
NAMEcyr_expire - Cyrus IMAP documentationExpire messages and duplicate delivery database entries SYNOPSIScyr_expire [ -C config-file ] [ -A archive-duration ] [ -D delete-duration ] [ -E expire-duration ] [ -X expunge-duration ] [ -p mailbox-pre‐fix ] [ -u username ] [ -t ] [ -v ] [ -a ] [ -c ] [ -x ] DESCRIPTIONcyr_expire is used to run a number of regular maintenance tasks on Cyrus databases, specifically:
There are various annotations that cyr_expire respects:
These mailbox annotations specify the age(in days) of messages in the given mailbox that should be expired/archived/deleted. The value of the /vendor/cmu/cyrus-imapd/expire annotation is inherited by all children of the mailbox on which it is set, so an entire mailbox tree can be configured by setting a single annotation on the root of that tree. If a mailbox does not have a /vendor/cmu/cyrus-imapd/expire annotation set on it (or does not inherit one), then no messages are expired from the mailbox. The annotation can be examined using the info command of cyradm(8), and modified using the mboxconfig and setinfo commands of cyradm(8). Expiration of duplicate delivery database entries for a given mailbox is also controlled by the /vendor/cmu/cyrus-imapd/expire annotation which applies to that mailbox. A value of 0 on the annotation means that no expiration is to be performed on that mailbox. Unlike message expiration, if no annotation applies to the mailbox then duplicate database entries are expired using the value given to the -E option. Expiration of conversations database entries occurs if the conversations option is present in imapd.conf(5). Expiration can be disabled using the -c option. The period used to expire entries is controlled by the conversations_expire_days option in imapd.conf(5). cyr_expire reads its configuration options out of the imapd.conf(5) file unless specified otherwise by -C. cyr_expire requires at least one of -A -D -E -X or -t to be supplied. OPTIONS
EXAMPLEScyr_expire -E 3 -D 60 -X 60 Purge duplicates database of all entries older than
3 days, remove deleted mailboxes older than 60 days and deleted
messages older than 60 days.
cyr_expire -x -c -A 7d Perform migration of message older than 7 days to
Archive partition whilst not altering conversation database nor expunging
messages.
HISTORYArchive partition and conversation support was first introduced in Cyrus version 3.0.FILES/etc/imapd.confSEE ALSOimapd.conf(5), master(8), cyradm(8)AUTHORThe Cyrus Team, Nic Bernstein (Onlight), Jeroen van Meeuwen (Kolab Systems)COPYRIGHT1993-2018, The Cyrus Team
Visit the GSP FreeBSD Man Page Interface. |