From 63f3b6a32a19b8c665315ab938a8e480c7a5a478 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 16 Jan 2025 11:05:10 +0300 Subject: [PATCH] Mailserver: Delete old messages from sent in inbox, use archive for storage. --- host/x86_64-linux/home/Mailserver.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host/x86_64-linux/home/Mailserver.nix b/host/x86_64-linux/home/Mailserver.nix index e229d13..849f37e 100644 --- a/host/x86_64-linux/home/Mailserver.nix +++ b/host/x86_64-linux/home/Mailserver.nix @@ -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 '';