diff --git a/docs/core/plugins/lazy_expunge.md b/docs/core/plugins/lazy_expunge.md index 4edcd9a5e..1c4bd894f 100644 --- a/docs/core/plugins/lazy_expunge.md +++ b/docs/core/plugins/lazy_expunge.md @@ -49,31 +49,32 @@ To move to a mailbox, do NOT add a trailing delimiter to the ::: code-group ```doveconf[dovecot.conf] + +mail_plugins { + lazy_expunge = yes + acl = yes +} + +acl_driver = vfile + namespace inbox { - mailbox .EXPUNGED { + mailbox "-EXPUNGED" { autoexpunge = 7days autoexpunge_max_mails = 100000 + # Expunged messages most likely don't want to be included in quota + quota_ignore = yes + # If you use fulltext search, you may want to exclude: + fts_autoindex = no - # Define ACL so that user cannot list the .EXPUNGED mailbox + # Define ACL so that user cannot list the -EXPUNGED mailbox acl owner { - rights = rwstipekxa + acl_rights = rwstipekxa } } } -mail_plugins { - lazy_expunge = yes - acl = yes -} -acl_driver = vfile +lazy_expunge_mailbox = "-EXPUNGED" -# Move messages to an .EXPUNGED mailbox -lazy_expunge_mailbox = .EXPUNGED - -mailbox .EXPUNGED { - # Expunged messages most likely don't want to be included in quota: - quota_ignore = yes -} ``` ::: @@ -127,10 +128,10 @@ See [[plugin,quota]]. Doveadm can be used to manually clean expunge storage. -Example to delete all messages in `.EXPUNGED` mailbox older than one day: +Example to delete all messages in `-EXPUNGED` mailbox older than one day: ```sh -doveadm expunge mailbox '.EXPUNGED' savedsince 1d +doveadm expunge mailbox -- '-EXPUNGED' savedsince 1d ``` ### Autoexpunge