Dedicated Servers

How to manually clean the complete mailboxes on a dedicated server?

Ways to manually clean the complete mailboxes on a dedicated server.

To manually clear the mail inboxes on your dedicated server, login the server via SSH using your root user.

  • Then navigate to:

/home/USERNAME/mail/YOURDOMAIN/mail_user/folder

  • You will find folders called cur and new.
  • The cur folder contains all the read mails and the new contains all unread emails.
  • Each mail presents a file in those folders.
  • You may remove the emails using the command rm-rf.