On Sun, Mar 23, 2003 at 02:09:22PM +1100, [EMAIL PROTECTED] wrote:
> How do I free up those 2 messages in the queue? 

When you say 'free up' do you mean bounce?  If so, you should use the
/var/qmail/bin/qmail-qread program to first get information about the 
messages:

  # /var/qmail/bin/qmail-qread
  22 Mar 2003 14:33:41 GMT  #540874  11314  <>
          remote  [EMAIL PROTECTED]
  22 Mar 2003 14:34:09 GMT  #541588  11329  <>
          remote  [EMAIL PROTECTED]

The number after the date is the queue id, this comes from the files inode.
You will need that piece of information to 'clear' messages from the queue.
I put the following code in a script named 'qexpire' and use it to expire
messages from the queue:

#!/bin/sh
if [ $# -lt 1 ]; then
    echo "usage: qexpire queueid [...]"
    exit 1
fi
for i in "$@"; do
    find /var/qmail/queue/info/ -name "$i" -exec touch -d '2 weeks ago' {} \;
done

So, to remove the two messages in the example above I would issue the
following:

  # qexpire 540874 541588

If the messages fail to send when qmail next attempts delivery then they
will bounce.  To immediately force qmail to attempt to deliver them you 
can send qmail-send an ALRM:

  # svc -a /service/qmail-send

I am assuming that you are using a LWQ installation since you used the
qmailctl script.  You may find that the qmail-send service directory is 
named something other than 'qmail-send' on your system.

Good luck,

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/

Reply via email to