[Dovecot] remove old files

Pascal Volk user+dovecot at localhost.localdomain.org
Sun Mar 20 16:13:04 EET 2011

On 03/18/2011 02:16 PM Stéphane Guedon wrote:
> Hello
> I use the dovecot 2.0.10 server and wonder how to clean up correctly the old 
> mails (especially for spam folder).
> I use maildir storage, and wonder if deleting files with an rm and file command 
> combinaison would be good or would corrupt indexes files/whatever.
> for exemple, the spam folder is in ~/.mail/.INBOX.spam/
> Thus, can I "cd ~/.mail/.INBOX.spam/ && rm 'files older than 2 months' " or 
> something else ?
> Thanks.

Have a look at: http://wiki2.dovecot.org/Tools/Doveadm/Expunge

The trapper recommends today: decade.1107915 at localdomain.org

More information about the dovecot mailing list