Re-reading that I realize you may be asking if it records the exact mail removed - never checked - but you can enable some more logging (see this post) and find out.
zmprov gc COSName | grep Lifetime
zmprov mc COSName zimbraMailTrashLifetime 30d
zmprov mc COSName zimbraMailSpamLifetime 30d
OR User Level-
zmprov ga firstname.lastname@example.org | grep Lifetime
zmprov ma email@example.com zimbraMailTrashLifetime 30d
zmprov ma firstname.lastname@example.org zimbraMailSpamLifetime 30d
The purge thread itself:
zmprov gs server.domain.com | grep zimbraMailPurgeSleepInterval
zmprov ms server.domain.com zimbraMailPurgeSleepInterval 1m
0 on any of those disables automatic purging for that machine/account
So really it's a but of math logic -say you have:
-A message in the trash of account 5 that's 31 days old - this mail is now 'capable of being removed' as it's over the zimbraMailTrashLifetime.
Day 32: Mailboxes 1/2 are purged
Day 33: Mailboxes 2/3/4 (I'm not gonna nail down this timing right now - 3 gets purged for sure)
Day 34: Mailboxes 4/5/6 are purged
So really that message in account 5's trash technically stayed around till day 34.
This allows for better scaling rather than just everyone in one big cron job putting load on the server - for instance you could decide to purge 1400 accounts per day.
Last edited by mmorse; 04-14-2008 at 07:46 PM.
Your info was exactly what I wanted to know. Thanks. For the record:
zimbra@tantalus:~$ grep Purge log/mailbox.log | grep "email@example.com" | tail -3
2008-04-13 10:42:46,191 INFO [MailboxPurge] [firstname.lastname@example.org;mid=5;] mailbox - Purging messages.
2008-04-13 10:57:46,989 INFO [MailboxPurge] [email@example.com;mid=5;] mailbox - Purging messages.
2008-04-13 11:12:47,638 INFO [MailboxPurge] [firstname.lastname@example.org;mid=5;] mailbox - Purging messages.
So it's getting to mine every 15 minutes or so, which IMHO is a bit too frequent (zimbraMailPurgeSleepInterval = 1m) so I have set it to 1h and will re look at it.
This is the output:
[zimbra@$$$ ~]$ zmprov gc default | grep Lifetime
Last edited by Priyantha Bleeker; 04-17-2008 at 02:01 AM.
Ok, so with those values unless you've set it at the individual level at somepoint as well, your trash & spam are 'capable of being deleted' after one day.
Defaults for zimbraMailTrash/SpamLifetime are 30d
Default for zimbraMailPurgeSleepInterval is 1m (you might still need to set this)
See my prior post again for how to change those values