Link to home
Start Free TrialLog in
Avatar of yglobal
yglobal

asked on

clear qmail queue of 201000 messages?

how do I use telnet (ssh2) to empty all messages in my mail queue? What is the command for this? so far I have done these commands..
cd /var/qmail/queue
/var/qmail/bin/qmail-qstat

messages in queue: 201578

what is next to empty it?
thanks!
ASKER CERTIFIED SOLUTION
Avatar of Daniel McAllister
Daniel McAllister
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
why do you want to use telnet to clear the queue... there is a very easy way to get rid of the emails man..
what is the server? exch 2003 or exch 2007 ???

-x
if its exchagne 2003 then stop the smtp service... open your windows explorer and go to location of Mailroot folder.. and rename it to MailrootOld. and then restart the smtp service...
check the queue.. now u can go and delete the old one...

if 2007 then stop the transport service locate the data folder and rename it to dataOld. restart the transport service... check the queue... and now delete the old data folder

Once we restart the smtp / transport servic IT Creates a new Folder of that name.. this will be clear !!!

- I hope you got the issue cleard this way... this is very simple and the best....

-x
x-sam:
no offense, but given that
 a) the poster has already mentioned that he's changing directory to /var/qmail/queue, and running a qmail-specific scripts, and
 b) the question is posted (cross-posted) into a QMail Zone

...exactly WHAT would possess you to think that he is running Exchange? Me thinks you've been drinking Bill Gate's KoolAid again, and believing that the whole world runs Microsoft softare (except for a small handful of Linux geeks).

yglobal:
The commands I listed above are shell commands that should be run as ROOT (non-privileged users will not be able to execute them as shown). And if you're telnetting into your system as root, shame on you... use SSH (instead of telnet), and login as an un-privileged user, then SU to the ROOT user... If you WANT (read: insist) on logging in directly as ROOT, at least use SSH and disable your telnet server... telnet is TOTALLY insecure!

Good Luck!

Dan
IT4SOHO