Topic: Completely wipe the quarantine?
==== Required information ====
- iRedMail version: 0.7.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 5.6
- Related log if you're reporting an issue:
====
Basically, I want to wipe the quarantine completely. I am planning a long overdue upgrade and I am trying to tidy things up first. The problem is that some time back I edited the iRedAdmin-PRO 1.3 interface to go directly to the domain list at login, and as such the quarantine cleanup that happens on the Dashboard screen hasn't been happening. The Dashboard now takes almost a half hour to load, when it does load, and trying to remove anything from the quarantine results in a long wait followed by an error (1205, 'Lock wait timeout exceeded'). The tables amavisd.msgs and amavisd.quarantine are both huge, over 2GB in size, and amavisd.msgrcpt is almost 800MB, so I'm sure that's part of the problem.
So, I would like to just run the SQL query myself and bypass the iRedAdmin-PRO interface to start over. I have command line access to the machine, but I can't find the query to run to delete all the messages. I assume it's somewhere in the files in /var/www/iRedAdmin-Pro-MySQL-1.3.0/, but I haven't found it yet. I assume also that the query needs to address all three tables, and I don't want to cause any orphan records between the tables.
So, what is the query run when the Dashboard loads?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.