For those who REALLY want to know...
The answer to the question "What is the meaning of Life, The Universe, and Everything?" can be found here:
http://en.wikipedia.org/w/
Dan
IT4SOHO
Main Topics
Browse All TopicsHello everybody,
What could be the reason for corrupted qmail queue?.
How do i identify a corrupted queue?
How do i identify the user sending the most of emails in my multidomain server?
Thanks in advance
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
For those who REALLY want to know...
The answer to the question "What is the meaning of Life, The Universe, and Everything?" can be found here:
http://en.wikipedia.org/w/
Dan
IT4SOHO
Business Accounts
Answer for Membership
by: it4sohoPosted on 2009-11-03 at 14:38:29ID: 25734623
Several questions here... why did you forget "What is the meaning of Life, The Universe, and Everything?"
========== ==
=====
========== ========== ========== ======
One at a time:
What could be the reason for corrupted QMail Queue?
==========================
QMail Queues are not easy to corrupt -- usually, one becomes corrupt either because of drive or filesystem errors, or sudden shutdowns. The other potential cause is overly aggressive system administration.
From a "birds eye" view, the QMail Queue consists of a message header, message body, and entries for each delivery (local and remote). The delivery entries are removed once the delivery is successful, and periodically a routine called QMail-Clean runs that removes the body and header entries when all of the deliveries have been completed.
A corrupted Queue results when the header or body entries are removed before the delivery entries. Since there is no header or body to deliver, the delivery entry cannot remove itself.
How do I identify a corrupted QMail Queue?
==========================
Most QMail installations come with some type of queue management or reporting tool. The most common is the one from NetQMail 1.03, which is "qmailctl"
When you run "qmailctl queue" it should tell you the contents of the current queue. If the queue is corrupt, qmailctl will tell you as part of the output of this command. Even better, it'll tell you the message IDs that are corrupt.
If qmailctl says msgID 5551212 is corrupt, all you have to do is manually remove the entry from the queue:
1) STOP QMail entirely (run "qmailctl stop" and wait about a minute for any existing connections to end)
2) change directory to the queue ("cd /var/queue/qmail" -- probably not right for you, but OK for this example)
3) remove the "bad" entries ("find . -name 5551212 -exec rm -f '{}' \;" -- or your own command to remove all files with that messageID)
3a) Repeat as necessary for other messageIDs that are "corrupt"
4) restart qmail ("qmailctl start")
5) Verify the Queue is repaired ("qmailctl queue")
How do I identify the user sending the most number of emails in my multidomain server?
==========================
There is no real accounting done in "standard" QMail, so you're going to be stuck looking through QMail log files. Specifically, to see outbound message logs, look in the log file for qmail-send (or if there is one separately qmail-remote).
I hope this gets you on your way! Good Luck!
Dan
IT4SOHO