The remove_dovecot_index_files Script
Valid for versions 82 through the latest version
Last modified: December 16, 2020
You can use the
/usr/local/cpanel/scripts/remove_dovecot_index_files script to remove the Dovecot index logs and cache files from cPanel mail accounts. You could use this, for example, to remove corrupted index logs and cache files or to remove files that lost synchronization during a transfer.
The Dovecot service automatically regenerates an account’s index logs and cache files the next time an account logs in.
Run the script
To run this script on the command line, use the following format:
/usr/local/cpanel/scripts/remove_dovecot_index_files --user username --reseller resellername --all --verbose
Use the following options with this script:
||The cPanel account that owns the mailboxes from which you wish to remove Dovecot index files.||
||The reseller account that owns the cPanel accounts which owns the mailboxes from which you wish to remove Dovecot index files.||
||Remove Dovecot index files from all email accounts that exist on the server.||
||Return expanded output.||
The system treats each flag individually. If you pass an invalid value with a flag, the script will fail.
If the script succeeds, it will return output similar to the following example: