How to Check Sendmail Queue
Check whether Sendmail mail is piling up and retry queued messages manually.
Before you start
Step-by-step instructions
1. Check current mail queue
Run mailq to see whether mail is currently queued on the server.
mailq
If many messages are listed, mail may be stuck or delayed in the queue.
2. Check the queue directory directly
If needed, inspect the actual queue directory contents.
ls -al /var/spool/mqueue
This lets you confirm directly whether queue files are accumulating inside the Sendmail spool directory.
3. Retry queued mail manually
If messages are waiting in the queue, force Sendmail to retry delivery manually.
sendmail -q -v
It tells Sendmail to process the queue immediately and shows detailed output while delivery is retried.
Common issues
This may mean the remote mail server is rejecting or delaying delivery, or local DNS or routing is failing.
Check mail logs to confirm whether authentication, DNS, relay, or remote rejection errors are occurring.
If there are no queued files, the delivery issue may not be caused by queue buildup at all.