Topic: How to cleanup orphaned maildir data
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Ubuntu 16.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue:
====
Hello Zhang!
Yesterday I installed a new iRedMail server and migrated all mail accounts to the new machine.
First of all I would like to thank you for the great product!
After migration I noticed that the directory for mail data contained some orphaned maildir files (domains which have been converted to aliases etc.).
How can I cleanup these orphaned directories?
Is there some hidden script which detects orphaned directories which have no reference in vmail-mailbox or vmail-domains?
Best regards,
Bernhard
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.