SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Always learning kigoobe's Avatar
    Join Date
    May 2004
    Location
    Paris
    Posts
    1,565
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I delete some of my mails thro' SSH ?

    Well guys, I have suddenly found myself in a really terrible situation ... I have just noticed that I am not receiving mails for sometime, and I tested that I can't send any mail as well ...

    On some further search, I found that that is probably because of the huge number of emails present in my account .. I never cared before as I had set unlimited space in the set up, means, it could theoritically use all my server spaces.

    Now, with 20600 mails (of course 99% of them are probably spams) I am totally hanged, and I tried to delete, and found that I can't even delete my mails.

    The solution is probably to delete mails using SSH, to delete a few thousands starting from the last (earliest) or even better, to delete those marked as {Definitely Spam}.

    Wondering, is there a way! Thanks for any input guys.
    Best.

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Location
    Frankfurt/Germany
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I assume you have shell access and can su to root?

    Given your mail is located in /var/mail/kigoobe, I would just move it to /var/mail/kigoobe2 to clear you mail account. Later, if live becomes too boring, you may start checking the bunch in ./kigoobe2. You could even kill the spam by using some regular expression using sed.

  3. #3
    Always learning kigoobe's Avatar
    Join Date
    May 2004
    Location
    Paris
    Posts
    1,565
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi mainlink

    thanks for your reply. yes, i am the root so, have all the access. so, if i understand well,

    I can read / check the content of my mail using SSH, right ? I tried pico usr but I see nothing there ... any idea?

    thanks again.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •