Auro expunge
Maciej Milaszewski
maciej.milaszewski at iq.pl
Wed Oct 14 17:58:58 EEST 2020
Hi
But if you have more users (200K) that is a problem with that scripts
On 14.10.2020 16:28, Adrian Minta wrote:
> 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).
>>
More information about the dovecot
mailing list