Auro expunge

Adrian Minta adrian.minta at gmail.com
Wed Oct 14 17:28:45 EEST 2020


The cron option is the safest.

Run each night something like this:

#!/bin/bash

DOVEADM="/usr/bin/doveadm";

$DOVEADM expunge -A mailbox Trash savedbefore 30d
$DOVEADM expunge -A mailbox Spam savedbefore 30d



On 10/13/20 10:27 PM, @lbutlr wrote:
> When using autoexpunge = 14 days in, for example. The trash of junk folders, does that physically remove the messages from disk or simply mark them to be removed and some other action needs to be taken?
>
> I ask because my mail server crapped out today and I discovered a Junk folder with 490,000 messages in it, and the sa-spamd and mariadb processes died a horrible death.
>
> Haven't had time to track down what was going on, but there were definitely messages in that junk folder from 2019 (though, of course, they may have been added within the last 14 days, I can't verify that as my solution was to remove the folder and recreate a new empty maildir).
>
-- 
Best regards,
Adrian Minta




More information about the dovecot mailing list