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

Clientmqueue is over 18GB and ls /var/spool/clientmqueue is working 5 min already. I want to see what mail is in the queue. Maybe i can read some in human format? To see date title who send it and who is receiver?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

For typical queue try sendmail -Ac -bp or mailq -Ac
For HUGE queue try sendmail -O QueueSortOrder=none -Ac -bp

  • -Ac selects client queue
  • -Am selects main/MTA queue

You may add -v to get even more verbose output.

In case of your HUGE queue add -O QueueSortOrder=none to avoid sendmail reading all qf* files. If none does not work then try filename. AFAIK none was added in sendmail-8.13.8 and filename in sendmail-8.10.

URL(s):
https://www.sendmail.com/sm/open_source/docs/m4/tweaking_config.html#confQUEUE_SORT_ORDER

share|improve this answer
    
sendmail -Ac -bp Takes so much time, i did a coffee break - still its working. I think it trying to show me 18gb of info? :) maybe it can show only 100 last? :) –  barraba Mar 24 '13 at 12:26
    
2 hours past - no gain, there is no output from this command. 18gb is to big i think –  barraba Mar 24 '13 at 14:03
    
Sorry, I have forgotten how sendmail can be "sluggish" with HUGE queues. I have added the relevant extra option that may help. –  Andrzej A. Filip Mar 24 '13 at 15:04
    
thanx alot !!! Its worked ! –  barraba Mar 24 '13 at 17:19

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.