Mailserver: Delete old messages from sent in inbox, use archive for storage.

This commit is contained in:
Dmitry Voronin 2025-01-16 11:05:10 +03:00
parent 433de9ec47
commit 63f3b6a32a
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -141,6 +141,8 @@ in
script = ''
doveadm expunge -A mailbox Junk SENTBEFORE 7d
doveadm expunge -A mailbox Trash SENTBEFORE 30d
doveadm expunge -A mailbox Inbox SENTBEFORE 365d
doveadm expunge -A mailbox Sent SENTBEFORE 365d
doveadm expunge -u trash@voronind.com mailbox Inbox SENTBEFORE 30d
doveadm purge -A
'';