Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Removing emails from server.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Shopro
l33t
l33t


Joined: 12 May 2004
Posts: 678
Location: Dayton, OH, USA

PostPosted: Wed Nov 09, 2005 9:59 am    Post subject: Removing emails from server. Reply with quote

I'm running a small qmail + courier-imap + vpopmail server at home. It has about 150 users all having about 1GB mailbox size. Now I'm having a problem with one of the accounts. My friend had his firewall logs sent to his mailbox every 10sec interval. Now he has about 10.000+ emails with the subject: test in them, and i'm wondering if there is a command like "grep something" to remove only those emails from his mailbox dir on my server.
_________________
Just because I have nothing to say is no reason why you shouldn't listen.
Back to top
View user's profile Send private message
Cocker68
Apprentice
Apprentice


Joined: 16 Jan 2003
Posts: 227
Location: Germany

PostPosted: Wed Nov 09, 2005 12:22 pm    Post subject: Reply with quote

The e-mails of Your friend John stay in
/home/john/.maildir/, right?

Then I would suggest something like
Code:
# find /home/john/.maildir -type f -exec grep -l '^Subject: test$' {} \; | xargs rm -f


- Cocker :wq
Back to top
View user's profile Send private message
Shopro
l33t
l33t


Joined: 12 May 2004
Posts: 678
Location: Dayton, OH, USA

PostPosted: Wed Nov 09, 2005 12:41 pm    Post subject: Reply with quote

Actually i think they are somewhere in /var, as it is an virtual email server serving 4 different mail hosts. Can't say for sure as i'm not at home so i can't access the server at the moment. But i can easily provide extra information about it later on, few hours. I remember that they are in a folder that has files named something like this: maildomainname.com.314324890723470283743423
_________________
Just because I have nothing to say is no reason why you shouldn't listen.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum