I've a situation where some users keep very old messages (+5 years) on their mailboxes that are just a waste of space and due to safety reasons should also be deleted.
I find out that I could use doveadm
for this, however running something like:
doveadm expunge -u testuser@sv.dev mailbox INBOX savedbefore 1-Jan-2011
Doesn't have any effect. From my understanding email clients mark email for deletion before the expunge
is run on the server to actually remove them.
How can I mark them for deletion using doveadm
and then run the doveadm
command before or directly and completely delete them?