On 1.2.2011, at 3.00, Monique Y. Mudama wrote:
I've just switched from an mbox-based mail system to Dovecot with MailDir. With mbox, I used logrotate to keep some of my mailboxes (spam, sent, stuff like that) down to only the most recent messages.
What's the best way to go about mailbox trimming with dovecot's implementation of maildir?
http://wiki.dovecot.org/Plugins/Expire although it's a bit annoyingly complex with v1.x. I'm guessing you don't have all that many users, so v2.0 would make this simpler.
I was thinking of writing a script to simply move or delete old files, but would I mess up dovecot's expectations for directory/file structure that way?
There's "v1.0 cronjob equivalent" in the wiki page too. It'll work fine, no messing up Dovecot.