sendmail 8.14.4
I want to setup monitoring to track how many queued messages I have on my sendmail server.
As per a somewhat related linux question I understand that the most efficient way to count raw files in a directory is \ls -afq | wc -l
but I'd like something that returns a count of messages. Since sendmail stores queued messages in two parts (df and qf files) this can be misleading.