Hi, there.

Can you advise me how to rotate old mails:

  1. I need to find and delete attachments from mails older than 1 year. The letters themselves need to be left, only remove attachments from them. For all mailboxes.
  2. I need to find and move to Archive all mails older than 3 year. The mails should bee compressed by any archivator. For all mailboxes.
  3. I need to find and delete all mails older than 10 years. For all mailboxes.

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

esackbauer
Thans for links.

I quicky read documentation, and din’t find filter ‘with attachments’ doc.dovecot.org Icon doveadm-search-query | Dovecot CE

And I quicky read documentation doc.dovecot.org Icon doveadm-expunge | Dovecot CE


And didn’t find command to delete attachment in mail.

Is this possible? ( I mean to delete attachents , without delete mails, older than XXX days )

Use google to find something for the attachments. You have to do it via IMAP because maildir is encrypted.
This is one of my finds:
ikvk/imap_tools

No one is typing