Start a conversation

Repair Script for Manual Re-Indexing

Overview

While experiencing user folder Performance issues, the contents of the index.fld and status.fld files should be repaired. The process is called the manual repair of users' folders.

It can be achieved by using indexing (rebuild) utility, linked in the section below. The script uses command-line bash commands.

You may occasionally receive Server errors Root folder cannot be listed or Failed to read rights from folder INBOX, internal error.

 

Prerequisites

Warning! This process should be executed by Administrators only.

Diagnosis

The particular folders became corrupted because of local policies or issues with the data store or server performance.

Back to the top


 

Manual Re-Indexing Process for Linux

  1. Download the attached index_status_fld.sh script.

  2. Determine whether there is a need to delete the __wm__autoCompleteContacts folder.

     

    If the folder Then

    Needs to be deleted

    Proceed to the next step.
    Does not need to be deleted

    Modify the script so that the folder is not deleted and then proceed to the next step.

     

  3. Make the file executable: chmod +x index_status_fld.sh.

  4. Run it as a Root user from the store/mail/<domain> directory: ./index_status_fld.sh.

Manual Re-Indexing Process for macOS

  1. Download the attached macos_index_status.sh script.
  2. Install Homebrew dependency: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  3. Install the rename package: brew install rename
  4. Make the file executable: chmod +x macos_index_status.sh
  5. Execute the script from the domain directory, i.e. /usr/local/kerio/mailserver/store/mail/<domain>:
    ./macos_index_status.sh

Back to the top


 

Confirmation

All domain mailboxes are being manually re-indexed.

Related Articles

Fixing Data Consistency Issues

Error: "Failed to read rights from folder INBOX" When Accessing Webmail

Back to the top

index_status_fld.sh

  1. 0 KB
  2. View
  3. Download

macos_index_status.sh

  1. 0 KB
  2. View
  3. Download
Download all
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments