Cyrus 3.0.8 and purging/removing emails
karagian at gmail.com
Tue Jan 14 10:51:49 EST 2020
according to the documentation for cyr_expire (
you also have to add -X parameter in order to completely delete messages
from mailboxes and -D parameter in order to remove deleted mailboxes from
the server. -E is only for expiring old entries in the duplicate messages
databases. Note that the parameter "3" specified there is in days by
So, if you only want to keep data that was deleted the last, let's say, 7
days, and delete anything older than that, you enter the following in the
EVENTS section of cyrus.conf:
delprune cmd="/usr/sbin/cyrus/cyr_expire -E 3d -X 7d -D 7d" at 0400
The path to cyr_expire is not clear in your email, so please adjust it
"at 0400" specifies that the command must be executed daily at 04:00, you
can of course change it.
On Tue, Jan 14, 2020, 16:52 Lars Schimmer <l.schimmer at cgv.tugraz.at> wrote:
> We do run a debian cyrus 3.0.8-6+deb10u3 mailserver, new setup, but we
> did copy over some coonfigs from a older cyrus.
> I recently discovered lots of emails in the local storage of the email
> server, although the mailbox is empty.
> In this case a IMAP shared folder, not a user INBOX.
> IMAP tells the folder is empty, but in the folder on the disk still 800
> files/mails available, partly 3 month old.
> It seems I did miss the automatic removal of mails.
> The cyrus.conf shows the line delprune cmd="/usr/sbin/cyrus
> expire -E 3"
> But it seems I did miss some important point.
> On a cyrus restart it shows:
> cyrus/cyr_expire: Expired 0 and expunged 0 out of 1449266
> messages from 3993 mailboxes
> Anyone has a idea what I did miss, or where to look?
> thank you.
> Lars Schimmer
> TU Graz, Institut für ComputerGraphik & WissensVisualisierung
> Tel: +43 316 873-5405 E-Mail: l.schimmer at cgv.tugraz.at
> Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Info-cyrus