Start a conversation

Running the Repair Script for Manual Reindexing

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 the 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.

 

 

Solution

 

Manual Reindexing 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 Reindexing 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

 

Important

The reindexing process may break the secondary calendars. If you have any users with secondary calendars, after performing re-indexing, you will need to manually adjust the status.fld file to change it back to a calendar using the steps below:

  1. Stop the server.
  2. Open the status.fld in the relevant folder.
  3. Check the previous status.fld (it should be named as status.fld.bad).
  4. Copy over the T, W and Y lines from status.fld.bad to the new status.fld. Examples of the lines to be copied (the values may be different in your file):
    1. T2
    2. WIPF.Appointment
    3. Yspecial1
  5. Rename/remove the index.fld file to reindex the folder again.
  6. Start the server.

 

Back to the top

 

Testing

All domain mailboxes are being manually re-indexed.

 

Related Articles

Back to the top

macos_index_status.sh

  1. 0 KB
  2. View
  3. Download

index_status_fld.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