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!

2 thoughts on “Printing the entries in a sendmail queue”

  1. Your post suggests that, by aliasing ‘sendmail -bp’ as ‘mailq’, sendmail is made more complex.

    A co-worker has aliased ‘ls -l’ as ‘ll’: should we be equally as concerned about the complexity of ‘ls’?

Leave a Reply

Your email address will not be published. Required fields are marked *