<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 12/10/15 14:47, Tom Sparrow wrote:<br>
<blockquote cite="mid:561BB9F0.8030604@thesparrows.net" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
My server seems to be insisting on keeping all the emails it's
ever received. The IMAP clients quite happily show the emails that
have not been deleted as expected, but looking in
/var/spool/imap/domain/e/example.com/p/user/person (for example)
shows far more emails, going back to when I started the server up
(February, in this case).<br>
<br>
I've looked for relevant settings, but can't find anything that
seems to be wrong.<br>
<br>
/etc/imap.conf has:<br>
<br>
deletedprefix: DELETED<br>
delete_mode: delayed<br>
expunge_mode: delayed<br>
<br>
/etc/cyrus.conf has:<br>
<br>
deleteprune cmd="cyr_expire -E 4 -D 69" at=0430<br>
expungeprune cmd="cyr_expire -E 4 -X 69" at=0445<br>
<br>
but I don't know where to look to see if these are running. I
can't see any errors in the logs (but am unsure where these should
be - cyrus seems to post to /var/log/maillog, is that right?)<br>
<br>
I su'd into cyrus and ran cyr_expire manually, but it returned
immediately with no output and didn't seem to make any difference.<br>
<br>
On several web pages it mentions The expiration of messages is
controlled by the <b>/vendor/cmu/cyrus-imapd/expire</b> mailbox
annotation, but I can't figure out how to list this and see if
it's currently set. I'm not at my most confident with IMAP to be
honest.<br>
<br>
<br>
Any help?<br>
<br>
Thanks,<br>
Tom.<br>
</blockquote>
<br>
I found the -a option on cyr_expire to ignore the annotations, but
that didn't help. Today I ran cyr_expire -X 1 -v -a and it's still
saying<br>
<br>
$ /usr/lib/cyrus-imapd/cyr_expire -X 4 -v -a<br>
Expunging deleted messages in mailboxes older than 4.00 days<br>
<br>
Expired 0 and expunged 0 out of 0 messages from 0 mailboxes<br>
<br>
Looking at unexpunge -l <a class="moz-txt-link-abbreviated" href="mailto:user/name@example.com">user/name@example.com</a> I can see hundreds of
messages, the Expg date going back to at least the start of March,
but it still won't delete any.<br>
<br>
I've had no answers anywhere on the internet (and I've not been
backwards about asking). Do I change the expunge_mode to delete them
immediately? Will that get rid of the old files at that point or
will I have to do that manually?<br>
<br>
<br>
<br>
Thanks<br>
Tom.<br>
<br>
</body>
</html>