View Full Version : Email Account 6.5 GB
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?
agnivo007
02-11-2008, 11:31 PM
Goto the mail folder for the user through ssh and delete the spam folder.
czotos
02-12-2008, 12:46 AM
Login to your server via SSH as root, and execute the following...
cd /var/spool/virtual/domain.com
ls -al
rm name-of-mail-account
Now the massive mail account will be permanently deleted from your Linux system...
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?
floyd
05-15-2008, 04:17 AM
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
tail -n 10000 > new_mail_fileAdjust 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.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.