Hello,
I need to delete emails that are over XX days old automatic. Is there a cron I can setup for this or any other way? I’ve been searching for a while but haven’t found any easy ways to do it.
Thanks.
Hello,
I need to delete emails that are over XX days old automatic. Is there a cron I can setup for this or any other way? I’ve been searching for a while but haven’t found any easy ways to do it.
Thanks.
Should work similar to this here, ofc adjust the folder name: Cron to purge Trash/Spam folder
Found a very easy way using doveadm expunge. Not really a good solution as you can´t run it for all users. But I only have one mailbox.
doveadm expunge -u [email protected] mailbox Inbox savedbefore 5d
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.