Purging old email files from Cyrus-IMAPD v.3.0.9 on FreeBSD-12.0
Savvas Karagiannidis
karagian at gmail.com
Thu May 16 11:00:53 EDT 2019
Hi James,
the command that performs the actual removal of the files from the file
system is cyr_expire
<https://www.cyrusimap.org/imap/reference/manpages/systemcommands/cyr_expire.html>
According to your cyrus.conf and the manual of cyr_expire, the operation is
performed daily at 04:00. The command is executed by the main cyrus
process, so you don't have to do anything else manually...
The parameters -D 180d and -X 180d specify that only mailboxes and messages
that are at least 180 days old will be deleted.
When cyr_expire is executed you should see a line in your log file like
these:
May 11 04:03:18 mail cyr_expire[2573]: Expired 0 and expunged 7033 out of
3098366 messages from 5035 mailboxes
May 12 04:03:14 mail cyr_expire[19325]: Expired 0 and expunged 44241 out of
3092823 messages from 5035 mailboxes
May 13 04:04:23 mail cyr_expire[27698]: Expired 0 and expunged 77735 out of
3050025 messages from 5035 mailboxes
This states how many messages and mailboxes were permanently deleted from
the filesystem.
If you only performed the upgrade recently and delayed delete was not
active until then, you will only notice cyr_expire actually deleting
messages and mailboxes 180 days after the upgrade, since there will be no
messages that old until then...
You should adjust "180d" to your needs and requirements. -D refers to
deleted mailboxes and -X to deleted messages.
Regards,
Savvas Karagiannidis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20190516/48e8d483/attachment.html>
More information about the Info-cyrus
mailing list