Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do I check if mail is "stuck"?

I've tried googling but cannot find anything relevant. What am I looking for that indicates that a message is "stuck" or "holding-up" the queue?

I know the obvious indication is that the mail queue is growing, but how do I find the message that is causing the issue?

share|improve this question
    
Is there any relevant information in your logs ? –  Iain Jun 28 '12 at 7:49
    
Stop using QMail. It's horribly antiquated and hasn't been updated in 14 YEARS. It doesn't all kinds of nasty hackery and has serious security problems. Bail and use something else. –  Chris S Jun 28 '12 at 12:48
    
I cant make the company I work for stop using qmail on over a 1,000 servers... If it was my way we'd be using postfix. –  josten Jun 28 '12 at 13:37
1  
+Chris S I hate to break it to you but you are wrong. QMail has been updated multiple times since JMS originally released the code. I agree with the nasty hackery but still it is that nasty hackery that makes it such a damn powerful system. It is not for the faint hearted and in the era that everything is in a simple rpm/deb file where you install and forget you need to know what you are doing to install it. –  thanosk Jun 28 '12 at 13:47

1 Answer 1

There is no way a that a single mail is holding up the whole queue. Qmail spawns enough processes that many emails are sent concurrently so even if a single of those processes locks up for some reason emails will still be delivered.

Most probably there is a different matter and a lot of emails are being rejected for a different reason. Check the relevant log files to see any error msgs. Also check the queue to see which msgs have not been delivered yet

You can use a tool called qmHandle to check your queue You can get it from here.

share|improve this answer
    
Well then QMail is VERY BADLY configured. check out the concurrencyremote value in control directory and make it greater than 1. If it is already greater than 1 then there is some other reason everything locks up when a single email cannot be send that has nothing to do with QMail –  thanosk Jun 28 '12 at 13:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.