I want to be able to automatically delete old messages present into the trash. I see the expires plugin for dovecot (http://wiki2.dovecot.org/Plugins/Expire) but I failed to make it working with my mailcow installation.
How to do that with mailcow. I have installed the standard version of mailcow (not dockerized).
Thank you in advance for your help.
I'm just guessing here, but since it works for me you probably just copy/pasted the command from the wiki and sadly it has a spelling error ...
try doveadm expunge -u email@example.com mailbox Trash savedbefore 30d manually and see if you have more luck
doveadm expunge -u firstname.lastname@example.org mailbox Trash savedbefore 30d
Oh thank you, it works. I test without the -u option, and it fails but with this option is seems to work perfectly!
So, as I have only one domain, I use -u *@domain.tld and it's good for me.
Solved for me!
please refer to the manual of doveadm expunge: man doveadm-expunge.if you want to apply this command to all mailboxes just do an doveadm expunge -A mailbox Trash savedbefore 30d.
doveadm expunge -A mailbox Trash savedbefore 30d
to clarify: the spelling error in the wiki is savedbe v ore (don't mind the spaces. i wanted to bold the v)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.