-
+
- Recover accidentally deleted data
+ B n r accidental deletion
So you deleted a mailbox and have no backups, he?
If you noticed your mistake within a few hours, you can probably recover the users data.
@@ -2279,7 +2246,7 @@
Mail
In case of an accidental deletion of a mailbox, you will be able to recover for (by default) 5 days. This depends on the MAILDIR_GC_TIME
parameter in mailcow.conf
.
A deleted mailbox is copied in its encrypted form to /var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data/_garbage
.
-The folder inside _garbage follows the structure [timestamp]_[domain_sanitized][user_sanitized]
, for example `1629109708_exampleorgtest in case of test@example.org deleted on 1629109708.
+The folder inside _garbage
follows the structure [timestamp]_[domain_sanitized][user_sanitized]
, for example 1629109708_exampleorgtest
in case of test@example.org deleted on 1629109708.
To restore make sure you are actually restoring to the same mailcow it was deleted from or you use the same encryption keys in crypt-vol-1
.
Make sure the user you want to restore exists in your mailcow. Re-create them if they are missing.
Copy the folders from /var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data/_garbage/[timestamp]_[domain_sanitized][user_sanitized]
back to /var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data/[domain]/[user]
and resync the folder and recalc the quota:
@@ -2307,41 +2274,6 @@ docker-compose exec dovecot-mailcow doveadm quota recalc -u restoreme@example.ne