Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Greg Anderson on October 17, 2002, 10:07:12 AM
-
Hello
I have Qmhandle installed and want to delete certain email from the que.
Using the server-manager and the Qmail que managment it shows the following.
Qmail queues viewed Thu Oct 17 12:42:00 2002
Messages in local queue: 0
Messages in remote queue: 0
We know thereis defintely messages waiting to be retreived but it shows zero??? any ideas why these messages can't been seen?
TIA Greg
-
Hi Greg,
Qmhandle shows only messages in the OUTGOING queue !
What type of messages you want to view ? POP accounts ?
bye
Peter
-
hello
yes I want to view and delete incoming mail from the SME pop server
tia
greg
-
If this is just a one-time thing, you can do it manually with a regular POP3 email checker, like http://www.mailwasher.net/ or something similar.
-
Not sure if this is a kosher way of doing it, but this is the way I've been doing it for quite some time. Also, on a side note I think you've confused what the Qmail queue is.
If you want to remove all messages for a particular user, I simply:
#Remove read messages
rm -rf /home/e-smith/files/users/%username%/Maildir/cur/*
#Remove unread messages
rm -rf /home/e-smith/files/users/%username%/Maildir/new/*
%username% would be the name of the user. If you wanted to remove all messages for all users, you could create a perl script to enumerate the user directories and place that into a variable then execute the above commands replacing %username% with that variable.
Hope this helped,
Nathan