[Dovecot] Expunge deleted messages older than X days for all users ?
Hi,
I'm currently migrating to Dovecot-based IMAP server for a ~200 users environment. Clients are Outlook 2003/2007, Thunderbird 3.x and various mobile clients.
- What I want to accomplish is to allow the users to delete a message (then the message is moved to "Trash"), then when they empty/delete that message from Trash, it will be kept somewhere on the server for X days, and the user could recover that message in some way.
Is that at all possible with Dovecot?
- Also, how can I automatically expunge the emails that the user deleted from their deleted items folder ? What if users don't EXPUNGE by themselves ? What do you do in that case?
Thanks, Bar.
Am 12.05.2011 09:15, schrieb Bar Ziony:
Hi,
I'm currently migrating to Dovecot-based IMAP server for a ~200 users environment. Clients are Outlook 2003/2007, Thunderbird 3.x and various mobile clients.
- What I want to accomplish is to allow the users to delete a message (then the message is moved to "Trash"), then when they empty/delete that message from Trash, it will be kept somewhere on the server for X days, and the user could recover that message in some way.
Is that at all possible with Dovecot?
- Also, how can I automatically expunge the emails that the user deleted from their deleted items folder ? What if users don't EXPUNGE by themselves ? What do you do in that case?
Thanks, Bar.
look here , it might be what you search, if not ask again
http://wiki2.dovecot.org/Plugins/Lazyexpunge http://wiki2.dovecot.org/Plugins/Expire
Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Thanks for the answer.
What I'm looking for is auto-expunging messages that are marked for deletion. Lets say a user deletes a message. It gets moved to his Trash and marked for deletion (flagged as such). Is there any way to search all "marked for deletion" messages in all the users mailboxes, and delete the messages older than X days?
Thanks,
Bar.
On 05/12/2011 11:08 AM Bar Ziony wrote:
Thanks for the answer.
What I'm looking for is auto-expunging messages that are marked for deletion. Lets say a user deletes a message. It gets moved to his Trash and marked for deletion (flagged as such). Is there any way to search all "marked for deletion" messages in all the users mailboxes, and delete the messages older than X days?
doveadm expunge -u a_user mailbox Trash deleted
See doveadm-expunge(1) and doveadm-search-query(7) for details. Adjust the options to your requirements and create a cron job.
Regards, Pascal
The trapper recommends today: c01dcafe.1113512@localdomain.org
participants (3)
-
Bar Ziony
-
Pascal Volk
-
Robert Schetterer