Thanks for that Cory.

What exactly are those messages that get held in the queue? Judging on 
the output of qmail-qread:

d97# /var/qmail/bin/qmail-qread
22 Mar 2003 16:24:20 GMT  #464  3405  <> 
        remote  [EMAIL PROTECTED]
23 Mar 2003 02:49:04 GMT  #73  9234  <> 
        remote  [EMAIL PROTECTED]

they look like people are trying to bounce (is that the correct 
terminology?) spam through my mail server, am I correct?

Thanks again

Clint


----- Original Message -----
From: Cory Wright <[EMAIL PROTECTED]>
Date: Sunday, March 23, 2003 2:31 pm
Subject: Re: [vchkpw] 2 Messages stuck in queue

> 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 
> expiremessages 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