[Dovecot] doveadm purge on clusterfs
tss at iki.fi
Thu Mar 29 02:48:53 EEST 2012
On 27.3.2012, at 12.47, Jan-Frode Myklebust wrote:
> Would it be OK to run purge in the pop/imap postlogin scripts? We
> already do a conditional:
> test /var/log/activemailaccounts/imap/$USER -ot /var/log/activemailaccounts/today
> touch /var/log/activemailaccounts/imap/$USER
> so adding a:
> doveadm purge -u $USER
> in this section would make it run once every day the users that log in.
> Does that sound like an OK solution?
Yeah, should work fine. Or you should make it run in background so user's login won't slow down because of the purging. I'm not sure if simply adding & at the end works (or if the process dies after login is finished, or what happens if it runs over 30 secs which is when normally post-login script is killed by SIGALRM).
More information about the dovecot