Help - Search - Members - Calendar
Full Version: Where does qmail keep mail account email file?
The Planet Forums > Control Panels > Plesk
MarkC
Hi,

I can't get to my plesk control panel and I don't know my old mail account password and I have only got the email account configured with a crap email client that won't let me do much more then RECEIVE them THEN delete them.

I need a quicker way to get rid of these 50,000 emails. Where on my red hat linux plesk 7.1.4 server would the files to delete them be.

I have seen allot of directory's with 0,1,2,3,3 etc up to 22 or something, and deleted allot of them messages in them folders (rm -rf *) but still no luck, they seem to be everywhere, where can I pinpoint the right folder?

(I hadnt checked this email account in months.)

I see that it might be under this directory:
/var/qmail/queue/

In that folder are these folders:

Info
Bounce
Todo
Remote
Mess
Local
intd

which one?


OR

How can I just delete this one email account through telnet/SSH? So that it will delete the emails. I don't use this email account anymore.
MarkC
QUOTE (MarkC @ Jun 23 2007, 08:45 PM) *
Hi,

I can't get to my plesk control panel and I don't know my old mail account password and I have only got the email account configured with a crap email client that won't let me do much more then RECEIVE them THEN delete them.

I need a quicker way to get rid of these 50,000 emails. Where on my red hat linux plesk 7.1.4 server would the files to delete them be.

I have seen allot of directory's with 0,1,2,3,3 etc up to 22 or something, and deleted allot of them messages in them folders (rm -rf *) but still no luck, they seem to be everywhere, where can I pinpoint the right folder?

(I hadnt checked this email account in months.)

I see that it might be under this directory:
/var/qmail/queue/

In that folder are these folders:

Info
Bounce
Todo
Remote
Mess
Local
intd

which one?
OR

How can I just delete this one email account through telnet/SSH? So that it will delete the emails. I don't use this email account anymore.


Ok, I think I looking in the wrong folders completely, as I already have a script to delete the files in the qmail queue.

Where should I be looking for my incoming email messages?
MarkC
QUOTE (MarkC @ Jun 23 2007, 09:11 PM) *
Ok, I think I looking in the wrong folders completely, as I already have a script to delete the files in the qmail queue.

Where should I be looking for my incoming email messages?


I THink I found it:
/var/qmail/mailnames/****SECRET****.com/mark/Maildir

but when i do rm -rf *
is says:

bash: /bin/rm: Argument list too long

how can i mass delete them?
MarkC
QUOTE (MarkC @ Jun 23 2007, 09:37 PM) *
I THink I found it:
/var/qmail/mailnames/****SECRET****.com/mark/Maildir

but when i do rm -rf *
is says:

bash: /bin/rm: Argument list too long

how can i mass delete them?


I need something similar to what this page says:
http://rc3.org/2006/12/too_much_mail.php

but he's solution don't work for me.

cur]# $find . -type f | xargs rm
bash: .: -t: invalid option
.: usage: . filename
rm: too few arguments
Try `rm --help' for more information.
MarkC
QUOTE (MarkC @ Jun 23 2007, 09:40 PM) *
I need something similar to what this page says:
http://rc3.org/2006/12/too_much_mail.php

but he's solution don't work for me.

cur]# $find . -type f | xargs rm
bash: .: -t: invalid option
.: usage: . filename
rm: too few arguments
Try `rm --help' for more information.


Woops, forgot to take off the dollar sign.

All fixed now. icon_smile.gif

find . -type f | xargs rm

^ was the answer

/var/qmail/mailnames/***SECRET**.com/mark/Maildir/cur/

^ was the directory I was after.

You can close this thread now. icon_smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.