How can I repair my VPS's mail spool?

In some cases you can find the damaged email in a webmail client and delete just that damaged email.

If the mail client you use cannot correctly process your mail spool, you can directly edit the mail spool through the file manager if the file is 5 MB or smaller. Any mail set up as a virtual mail user ( will be found at:


Any mail set up "@(multiple domains)" will be found at:


A damaged email will look like (not including lines with '====='):

the end of a previous email message.
From: Day Month date time
Return-Path: somereturnpath
Received: from ...

You would then delete the lines so that the top of the mail spool looked like (again ignoring lines with '====='):

From: Day Month date time
Return-Path: somereturnpath
Received: from ...

If all of the above does not work, you can solve the issue in one of two ways:

  1. Log into the VPS via SSH. Find a zero byte file somewhere and cat that file over the top of the mail spool file. For instance, you could use the following command in a shell prompt:

    cat /var/spool/mail/example > /var/spool/mail/root

    This assumes that the mail spool for the user "example" is still a zero byte file at the time your execute this command.
  2. Remove the mail user (which will delete the whole mail spool), then recreate the mail user.

Note that either of these last actions will delete all mail currently residing on the server and should only be used as a last resort or if you don't mind losing the mail currently in that user's mail spool. You can also contact our support department to help you resolve this issue.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are the incoming and outgoing mail servers for Walla Walla Internet Dial-Up Internet Access?

The mail servers for Walla Walla Internet dial-up Internet access are: POP3 (incoming) server:...

How do I make a Global Address Book for Open WebMail?

To create a global address book, first create an address global book for one user, populate it...

What is a mail spool?

A mail spool is a file that stores the mail header (i.e. sender's address, time of delivery,...

How do I add or remove MX records for my MDH hosting account?

To add an MX record "" for a domain: Click on your domain name....

What is a mailbox quota (Plesk)?

The mailbox quota is the limit on the size each mailbox can reach. The disk space quota is the...

Powered by WHMCompleteSolution