list at airstreamcomm.net
2012-Feb-28 18:11 UTC
[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 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 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
list at airstreamcomm.net
2012-Feb-28 19:26 UTC
[Dovecot] Post-login scripting - Trash cleanup
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 >> 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 wasto>> 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/ExpireExpire 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.
On 28/02/2012 18:11, list at 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
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 >>> 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 > > 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