# mailq
OR
# sendmail -bp
Sample outputs:
/var/spool/mqueue (1 request) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- p61J75u5037681 893 Fri Jul 1 14:07 8BITMIME (Deferred: Connection timed out with example.com.) Total requests: 1You can cd to /var/spool/mqueue and delete all files if you want to get rid of all messages in the queue:
# cd /var/spool/mqueue/
# ls
# rm *
Thanks to: http://www.cyberciti.biz/faq/linux-unix-bsd-clear-sendmail-queue/
No comments:
Post a Comment