1

Topic: Script to delete mailboxes

==== Required information ====
- iRedMail version: iRedAdmin-0.2.2 and iRedAdmin-Pro-MySQL-1.7.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Linux/BSD distribution name and version: CentOS release 6.4
- Related log if you're reporting an issue:
====

I checked a few topis about removing maildir from deleted users.
They all say we have to create a scritp or use a cron job.
Anyone has this script developed that could send it to me so we can use it in our servers?
Thank you!

2

Re: Script to delete mailboxes

iRedAdmin-Pro doesn't ship one by default, but it should be easy to write one, or delete maildirs manually.

3

Re: Script to delete mailboxes

If you delete a user's mailbox directory, isn't there still a database log of their account (e.g., MySQL)?  So should you run a MySQL query to remove the row containing the account, as well?