Empty Mailboxes on Plesk

Empty older than 30 days (see https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/6130933-empty-an-emailbox)

find /var/qmail/mailnames/example.com/*/*/cur -type f -mtime +30 -exec rm {} \;

Recalulate statistics/usage. (See here: https://support.plesk.com/hc/en-us/articles/115004510793-Plesk-usage-statistics-for-a-mailbox-is-displayed-incorrectly

plesk repair mail john.doe@example.com
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f MailUsage

Recalculate hosting package statistics

plesk sbin statistics --calculate-one --domain-name=example.com

 

Post type: 
Technical
Drupal version: 
Drupal 6 (D6)
Drupal 7 (D7)