Hi,
according to the documentation for cyr_expire (
https://www.cyrusimap.org/imap/reference/manpages/systemcommands/cyr_expire.html)
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
default (3d).

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
accordingly.
"at 0400" specifies that the command must be executed daily at 04:00, you
can of course change it.

Regards,
Savvas Karagiannidis

On Tue, Jan 14, 2020, 16:52 Lars Schimmer <l.schim...@cgv.tugraz.at> wrote:

> Hi!
>
> 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[13235]: 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.
>
> MfG,
> Lars Schimmer
> --
> -------------------------------------------------------------
> TU Graz, Institut für ComputerGraphik & WissensVisualisierung
> Tel: +43 316 873-5405       E-Mail: l.schim...@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:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Reply via email to