maildir – Dovecot: is there a way to delete specific email from ALL mailboxes of one domain?


I want to be able to delete specific email message from all mailboxes of one domain, does Dovecot has this type of functionality OR are there any known good solution for this? It’s Maildir format.

The problem

many disposable, one-shot emails, often with multi-megabyte attachments.

What have I tried

I have looked to doveadm Batch, Altmove, Expunge commands, none of which seems to do the (exactly this type of) job?

What I’d like to avoid if possible

The last resort: grep recursively by either Message-ID header or ESMTP id part of one of the multiple Received headers.