Koozali.org: home of the SME Server

Purge mail from command line

Offline fosdyke

  • *
  • 13
  • +0/-0
Purge mail from command line
« 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?

gardnc

Purge mail from command line
« Reply #1 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

Offline fosdyke

  • *
  • 13
  • +0/-0
Purge mail from command line
« Reply #2 on: September 15, 2005, 01:54:13 PM »
Thanks for the reply - I figured it out whilst I was waiting, but thanks anyway.