I am working on a script to monitor the number of messages in the mail-queue.
Currently, I check the /var/spool/mqueue for the number of files and have set a threshold.
Of course, this number is very realistic because of all the different file types.
Is there a sendmail command that will return the number of messages in the queue?
I've run sendmail -q -v and can get the number of messages (sequence 1 of 134), but it "hangs" the screen and does not return a prompt.
Currently, I check the /var/spool/mqueue for the number of files and have set a threshold.
Of course, this number is very realistic because of all the different file types.
Is there a sendmail command that will return the number of messages in the queue?
I've run sendmail -q -v and can get the number of messages (sequence 1 of 134), but it "hangs" the screen and does not return a prompt.