Printing the entries in a sendmail queue


Since I began managing sendmail installations 8-years ago, I have used the mailq command to print the entries in the sendmail queue. While reading through the bat book to find the root cause of my sendmail DNS problems, I came across sendmail’s “-bp” option:

$ /usr/sbin/sendmail -bp

/var/spool/mqueue is empty
Total requests: 0

This provides the same results as the mailq command:

$ mailq

/var/spool/mqueue is empty
Total requests: 0

I am still amazed at how complex the sendmail program is. Rule 0, Rule 3, Rule 5, 8000 macros … ge gads!

This article was posted by Matty on 2005-03-23 13:38:00 -0400 -0400