1

Topic: Checking and Deleting Old Mailboxes

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

Is there a script to check mailboxes that are not deleted? I mean, when we delete a mailbox from iRedAdmin-Pro, we have options to keep mailbox for x days or forever. What we want is to check for these mailboxes, deleted from iRedmail but files still present and remove them all.

Also is there a way to disable "keep mailbox" option? If a mailbox is being deleted, all data should be deleted immediately.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Checking and Deleting Old Mailboxes

cihan wrote:

Is there a script to check mailboxes that are not deleted?

iRedAdmin-Pro ships a script to remove mailboxes when user account was removed:
/opt/www/iredadmin/tools/delete_mailboxes.py.

cihan wrote:

Also is there a way to disable "keep mailbox" option? If a mailbox is being deleted, all data should be deleted immediately.

iRedAdmin(-Pro) is running as system user "iredadmin" which doesn't have required privilege to remove mailboxes on file system, so the "keep mailbox" option is a workaround to remove mailboxes after removed user account. smile