Koozali.org: home of the SME Server

Using QMhandle

Greg Anderson

Using QMhandle
« 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

Peter Schubert

Re: Using QMhandle
« Reply #1 on: October 17, 2002, 10:58:32 AM »
Hi Greg,

Qmhandle shows only messages in the OUTGOING queue !

What type of messages you want to view ? POP accounts ?

bye
Peter

Greg Anderson

Re: Using QMhandle
« Reply #2 on: October 17, 2002, 11:11:53 AM »
hello

yes I want to view and delete incoming mail from the SME pop server

tia

greg

Bill Talcott

Re: Using QMhandle
« Reply #3 on: October 17, 2002, 06:23:09 PM »
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.

Nathan Fowler

Re: Using QMhandle
« Reply #4 on: October 17, 2002, 07:37:46 PM »
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