How to Delete an user and Purge attachements with a common directory mail_attachment_dir with SIS for all users.
Alexander Moisseev
moiseev at mezonplus.ru
Tue Feb 10 18:46:54 UTC 2015
10.02.2015 18:36, TN пишет:
> What is the best way to delete an user mailbox (ex: /var/mail/johndoe ) when all attachments (for all users) are in a common directory with SIS deduplication (ex: mail_attachment_dir = /var/mail/attachments ) ?
> Trying to delete user mailbox directory (rm) and do the command : doveadm -v purge -u johndoe leave all johndoe's attachments orphelin.
>
You should always expunge mailbox *before* deleting it, if you are using SIS.
# doveadm expunge -d -u johndoe mailbox '*' all
# rm -rf /var/mail/johndoe
https://www.mail-archive.com/dovecot@dovecot.org/msg41683.html
--
Alexander
More information about the dovecot
mailing list