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).
-- I don't believe there's a power in the 'verse can stop Kaylee from bein' cheerful. Sometimes you just wanna duct-tape her mouth and dump her in the hold for a month.
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
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).
On Wed, 14 Oct 2020, Maciej Milaszewski wrote:
On 14.10.2020 16:28, Adrian Minta wrote:
$DOVEADM expunge -A mailbox Trash savedbefore 30d $DOVEADM expunge -A mailbox Spam savedbefore 30d
You might as we save yourself an invocation by doing
$DOVEADM expunge -A \( mailbox Trash OR mailbox Spam \) savedbefore 30d
But if you have more users (200K) that is a problem with that scripts
Why would an access triggered expungement be more problematic vs a periodic cron job? If it creates intense I/O loads, you can do it at off-peak times and/or only do userbase subsets at any one time.
Joseph Tam jtam.home@gmail.com
On 13. Oct 2020, at 22.27, @lbutlr kremels@kreme.com 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).
What dovecot version is this? There was a bug found recently that autoexpunge stopped expunging once it found first email in order which did not match expunge criteria anymore. It started from start of the mailbox and stopped when first recent email was found. And if the mails were not in order it did leave rest of the folder untouched.
Sami
On 15 Oct 2020, at 01:32, Sami Ketola sami@ketola.io wrote:
What dovecot version is this?
dovecot-2.3.11.3 I think, I don't remember an update within the last few days.
I keep dovecot up-to-date.
-- "Are you pondering what I'm pondering?" "I think so, Ali-Brain! But isn't it cheating to use glue?"
participants (5)
-
@lbutlr
-
Adrian Minta
-
Joseph Tam
-
Maciej Milaszewski
-
Sami Ketola