Linux – How to see entire sendmail queue

linuxsendmail

I can't see a list of queued messages on my linux server. "sendmail -bp" only will show the first 10 for some reason:

/var/spool/mqueue (36 requests, only 10 printed)
—–Q-ID—– –Size– —–Q-Time—– ————Sender/Recipient———–
vB22bgke015365- 5857 Fri Dec 1 21:37 <>
(Deferred: Connection timed out with address.com)

how do I list all 36 items at once? instead of this limit of 10? my sendmail version is 8.14.7.

Best Answer

Use mailq or you can list the files in queue:

cd /var/spool/mqueue/
ls