Email Account 6.5 GB

polo

Verified User
Joined
Apr 2, 2005
Messages
120
I have an email account that has gone overlooked over the years and has grown to 6.5 GB of spam. I found out by trying to upgrade our pop3 server last night. Problem is when I try to use DA to access that email to delete it, DA times out when i click on Email Accounts, I also tried to delete the domain itself and that too times out. What should I do?
 
Login to your server via SSH as root, and execute the following...







Now the massive mail account will be permanently deleted from your Linux system...

I have simular problem. But this is the main account for domain (domain@domain.com). I do not won't to delete just empty all mail?
 
You said it was all spam. How much do you want to keep? With that big of a file I don't think you are going to be able to only keep certain pieces of email at least not by conventional means.

Usually anything over a month old doesn't matter so I would use tail to search the end of the mail file to find out how much I wanted to keep. Keep increasing the line count until I found my starting point then
Code:
tail -n 10000 > new_mail_file
Adjust the line numbers to what works for you. Then you can delete/rename the old mail file and rename the new one to the original name. Make sure you set the permissions on the file to match the old file.
 
Back
Top