[Dovecot] Post-login scripting - Trash cleanup
robert at schetterer.org
Wed Feb 29 08:44:54 EET 2012
Am 28.02.2012 20:26, schrieb list at airstreamcomm.net:
> On Tue, 28 Feb 2012 19:26:11 +0100, Robert Schetterer
> <robert at schetterer.org> wrote:
>> Am 28.02.2012 19:11, schrieb list at airstreamcomm.net:
>>> We are considering using the post-login scripting to clear trash older
>>> than 90 days from user accounts. has anyone done this, and if so did
>>> cause logins to slow down too much waiting for the trash to purge? One
>>> idea was to execute the trash purge script once a day by tracking their
>>> logins and seeing that it has already ran that day. Another idea was
>>> call the trash purge script in the background and continue without
>>> acknowledging that it has finished to keep logins speedy.
>> look here if this match/solve your problem
> Expire looks to be useful, but it appears to be something that enhances
> expunging of messages rather than automates the process if I am reading
> correctly. We would like to make the process for expunging old Trash
> messages as automated and inline as possible.
doveadm expunge -A mailbox Trash savedbefore 90d
as cron job do what you want ?
MfG Robert Schetterer
More information about the dovecot