Topic: deleting files from deleted mailboxes
==== Required information ====
- iRedMail version: 1.8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): iRedAdmin-Pro-MySQL
- Linux/BSD distribution name and version: Debian 7 (SMP Debian 3.2.60-1+deb7u1 x86_64)
- Related log if you're reporting an issue:
====
Hi Zhang,
I'd like to do some maintenance on our mail server. I read older topics about requirement to manually delete vmail directories and files of deleted users. I found your answers about existing sql table "vmail.deleted_mailboxes" which collect records and I understand that I need to write my own cron script which will delete all remaining files from disk.
I list whole table "vmail.deleted_mailboxes" from mysql and compare it against directories on the disk (in /var/vmail/vmail1/....).
I'm not sure if there is bug but some of them are missing, that directories are written in the table but does not exist on the disk. Is there any exception? Or is there any cleaning script or sanitary check? For example between versions, because I did upgrade from previous version of IRPro?
Thank you for explanation.
Josef Zacek
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.