540 messages stuck in Qmail queue

I checked my qmail server today, turns out there are 540 messages stuck in the queue that haven't been delivered.  I've tried using qmHandle -a to deliver all of them, but that doesn't help.  I've tested an email script that sends out a test email message, and the email is being delivered - with a bit of delay.  What about the other emails that are in the queue?  I've done some extensive reading and I'm still unsure how I can get these messages in the queue to be delivered.  

Can anyone help/

Total messages: 540
Messages with local recipients: 0
Messages with remote recipients: 540
Messages with bounces: 0
Messages in preprocess: 0

JWeb AdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hmm, are these all legitimate emails?

How often do you check the queue?

Does the server make use of SPF records and Domain keys? (AOL and Yahoo are becoming heavy sticklers  for those)

I'd check to ensure that the server can do DNS lookups too.  That would stop remote emails from going out as well.  Was your test email sent to a local or remote user?

Also, check your server's ip here to ensure its not blacklisted:

http://www.senderbase.org/  (its the form at the top left)

One time, as a last resort, I did a server reboot to fix an otherwise unfixable queue error and the emails just started flying out. Not something I would normally recommend but its a good fix for a large number of possible causes of a problem like that.

JWeb AdminAuthor Commented:
I haven't checked the email queue in a few days - but the last time I checked it was fine.

Yes, the server can do DNS lookups.  There are some emails that are going out, but it seems like the queue goes from 540 down to 532 emails, and then fluctuates, but never goes down to normal.

We also subscribe to a blacklist service - and I've also checked your site, we're not on a blacklist.

I haven't seen a problem yet up until today.  

Also - I rebooted the machine, the emails are going out slowly, but there is a steady 532 emails in the queue.

Can you suggest anything else?
Get a copy of qmHandle and run that with the -l flag.  It'll allow you to see the subject and also cull the queue based on a partial subject match.

Check to see if your catchall is set to bounce.  If your server is trying to bounce spam email back to what it thinks is the original sender, this could explain the large number of emails in the queue.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

JWeb AdminAuthor Commented:
I've used qmHandle - whenever I try a ./qmHandle -a to try and send all messages, nothing happens.  qmHandle doesn't seem to work as far as deleting messages from the queue either - it fails to stop qmail.  I've also tried stopping qmail, running qmHandle -d234 for example, nothing happens.

I'm going to give another python script a chance to see if that cleans the queue out..  Any other suggestions?
Just tried the most recent copy and Im getting those problems myself.  I have an older version of the script that works fine for me at the following location if interested:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JWeb AdminAuthor Commented:
Thanks i'll try that.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.