Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: fosdyke on September 15, 2005, 11:48:28 AM

Title: Purge mail from command line
Post by: fosdyke on September 15, 2005, 11:48:28 AM
Have SME server V 6.02 and have run out of disk space, probably due to large volume of mail.

Can't access mail accounts via webmail/pop/imap to delete mail can this be done via command line, or can I clear out any other files (say log files) to generate enough space to do any of the above?
Title: Purge mail from command line
Post by: gardnc on September 15, 2005, 12:16:40 PM
Mail in SME 6 is stored in:

/home/e-smith/files/users/YOURUSERNAME/Maildir/

and inside that directory /new holds unread mail, /cur holds read but undeleted mail, /tmp may have other mail.

There may be other directories like junkmail/cur, etc. and INBOX or sent-mail/cur, etc. that can all be checked for mail to be removed.  

The mail files can be deleted with an rm command.

Good Luck
Title: Purge mail from command line
Post by: fosdyke on September 15, 2005, 01:54:13 PM
Thanks for the reply - I figured it out whilst I was waiting, but thanks anyway.