Search Our Database

Fixing Webmail Search Problems Caused by Server Errors

Last updated on |

Introduction

The webmail search function may experience an error that causes it to malfunction, preventing certain email accounts from successfully searching through their emails. When this happens, users may see an error message such as:

Error  : Server Error (OK)

Prerequisites

  • You have root access to your cPanel server.
  • You can connect via SSH and run terminal commands as the root user.
  • You have basic familiarity with Linux command-line tools.

Step-by-Step Guide

SSH into Your Server

Open the terminal and connect to your server via SSH using the following command:

ssh root@your_server_ip

Replace your_server_ip  with the actual IP address of your server.

Step 2: Switch to Root Privileges

To execute administrative commands, switch to root privileges by running:

sudo su -
Remove Dovecot Index Files for the Affected User

Step 2: Remove Dovecot Index Files for the Affected User

/scripts/remove_dovecot_index_files --user cpuser

Replace cpuser  with the your  cPanel username

Conclusion

When Dovecot index files become corrupted or outdated, it can break webmail search functionality. Running the index removal script allows Dovecot to regenerate fresh, functional indexes, restoring normal search behavior in Roundcube and Horde.

For additional help, please reach out to our support team at support@ipserverone.com.