[vchkpw] 2 Messages stuck in queue

2003-03-22 Thread [EMAIL PROTECTED]
I seem to have two messages stuck in the queue: 

d97# qmailctl stat
/service/qmail-send: up (pid 67194) 419 seconds
/service/qmail-send/log: up (pid 67195) 419 seconds
/service/qmail-smtpd: up (pid 67198) 419 seconds
/service/qmail-smtpd/log: up (pid 67199) 419 seconds
messages in queue: 2
messages in queue but not yet preprocessed: 0
/service/qmail-pop3d: up (pid 68084) 1 seconds
/service/qmail-pop3d/log: up (pid 68085) 1 seconds

There is only one user on the system which I have been testing with, 
and all mail to that user has been collected. Am I correct in saying 
that these are mail system notices?? I have done the following:

d97# echo [EMAIL PROTECTED]  /var/qmail/alias/.qmail-root
d97# echo [EMAIL PROTECTED] /var/qmail/alias/.qmail-postmaster
d97# ln -s .qmail-postmaster /var/qmail/alias/.qmail-mailer-daemon
d97# chmod 644 /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-
postmaster

and checked my bigpond.net.au mail and received no messages. How do I 
free up those 2 messages in the queue? Thanks!

Clint
 




Re: [vchkpw] 2 Messages stuck in queue

2003-03-22 Thread Cory Wright
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/



Re: [vchkpw] 2 Messages stuck in queue

2003-03-22 Thread [EMAIL PROTECTED]
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/
 
 
 




Re: [vchkpw] 2 Messages stuck in queue

2003-03-22 Thread Cory Wright
On Sun, Mar 23, 2003 at 03:10:47PM +1100, [EMAIL PROTECTED] wrote:
 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?

Yes, these are most likely spam messages sent to nonexistant accounts on
your server.  qmail is trying to bounce them, but, for whatever reason, 
the messages are still in your queue.  It is probably safe to expire them.

Cory

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