To list all the messages in the queue counting the number of messages with the same subject
+
qmHandle -l|grep Subject|sort| uniq -c|sort -n
{{Note box|In some cases qmail does not restart after messages have been deleted. You should check the status of qmail after deleting messages.}}
{{Note box|In some cases qmail does not restart after messages have been deleted. You should check the status of qmail after deleting messages.}}
−
To check status
+
To check status of qmail
sv s /service/qmail
sv s /service/qmail
Line 67:
Line 71:
{{Warning box|Before deleting messages from the queue, you should stop qmail first. If you delete messages without stopping qmail, then qmail may stop and you will unknowingly be without a operational mail server (ie qmail)}}.
{{Warning box|Before deleting messages from the queue, you should stop qmail first. If you delete messages without stopping qmail, then qmail may stop and you will unknowingly be without a operational mail server (ie qmail)}}.