[Dovecot] Post-login scripting - Trash cleanup
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 this 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 to call the trash purge script in the background and continue without acknowledging that it has finished to keep logins speedy.
Am 28.02.2012 19:11, schrieb list@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 this 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 to 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
http://wiki2.dovecot.org/Plugins/Expire
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Tue, 28 Feb 2012 19:26:11 +0100, Robert Schetterer <robert@schetterer.org> wrote:
Am 28.02.2012 19:11, schrieb list@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 this 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 to 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.
Am 28.02.2012 20:26, schrieb list@airstreamcomm.net:
On Tue, 28 Feb 2012 19:26:11 +0100, Robert Schetterer <robert@schetterer.org> wrote:
Am 28.02.2012 19:11, schrieb list@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 this 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 to 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.
wouldnt doveadm expunge -A mailbox Trash savedbefore 90d as cron job do what you want ?
Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On 28/02/2012 18:11, list@airstreamcomm.net wrote:
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 this 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 to call the trash purge script in the background and continue without acknowledging that it has finished to keep logins speedy.
I think you can also use doveadm to achieve this? So you could schedule something for all accounts at some out of hours period - should speed up backups also?
Ed W
participants (3)
-
Ed W
-
list@airstreamcomm.net
-
Robert Schetterer