Encountering the “Email Account Already Exists” error can be a frustrating experience for users managing their Linux servers. Fortunately, our Support Engineers have devised a straightforward solution to help you overcome this hurdle. In this tutorial, we will guide you through the process of fixing this issue step by step.

Step 1: Log in as the Root User via SSH

To initiate the troubleshooting process, log in as the root user to your Linux machine through SSH. This can be accomplished using the following command:

ssh root@your_server_ip

Ensure that you have the necessary credentials to access the root user privileges.

Step 2: Navigate to the Email Account Folder

Once logged in, navigate to the path where the problematic email account folder is located. In this case, the path is:

cd /home/cpanelusername/mail/

This directory contains the mail data for the domain, and we need to identify and remove the folder causing the error.

Step 3: Remove the Email Account Folder

Identify the folder associated with the email account triggering the error and remove it using the following command:

rm -r email_account

Replace “email_account” with the actual name of the folder causing the issue.

Step 4: Open the Passwd File

Proceed to the path:

cd /home/cpanel username/etc/

In this directory, locate and open the passwd file using a text editor of your choice. For instance, you can use the nano editor:

nano passwd

Step 5: Remove the Email Account Entry

Within the passwd file, locate the entry corresponding to the problematic email account. Delete the entire line associated with that account and save the changes.

Step 6: Save and Exit

After making the necessary modifications, save the changes and exit the text editor. In the case of nano, you can do this by pressing Ctrl + X, followed by Y to confirm the changes, and then pressing Enter to exit.


Following these simple yet effective steps should resolve the “Email Account Already Exists” issue on your Linux server. By removing the conflicting email account folder and its entry in the passwd file, you can successfully add the email account without encountering any further obstacles.

In conclusion, this tutorial has provided a comprehensive guide to resolving this common email-related problem. If you encounter any issues or have further questions, feel free to reach out to our Support Engineers for personalized assistance. We hope this tutorial proves helpful in maintaining the seamless operation of your email accounts on your Linux server.

Categorized in:


Last Update: December 15, 2023