Disk space usage with mdbox

Timo Sirainen tss at iki.fi
Sun Apr 12 13:53:19 UTC 2015


On 10 Apr 2015, at 21:55, Daniel Miller <dmiller at amfes.com> wrote:
> 
> Why things happen is one of the great mysteries and joys of being a sysadmin...
> 
> As for cleaning up SIS, I believe the "doveadm purge" command takes care of it.  I have a daily cronjob which includes:
> 
> #!/bin/sh
> # Permanently expunge old Trash
> doveadm expunge -A mailbox Trash savedbefore 2w
> # Optimize mdbox storage
> doveadm purge -A
> # Update fts indexes
> doveadm fts rescan -A

doveadm index updates the indexes. doveadm fts rescan makes sure that after something has broken it makes sure to update all the mails to the index after indexing is done - so it by itself doesn't even add any missing mails to the index.(And with fts-lucene it's actually looking if there are any mails that were supposed to have been deleted already - with Solr it should do that too but the code isn't written yet. So I don't think that needs to be run nightly (if ever automatically).



More information about the dovecot mailing list