@lbutlr: > I don't see a flag to make post queue -p or mailq to return silently if the > queue is empty. > > Is there a way, or should I just alias/use > > # postqueue -p | egrep -v "^Mail queue is empty"
This is part of the Sendmail-compatibility interface. Until now, Postfix does not have a queue report interface of its own. Having a proper protocol between showq and postqueue has long been on the todo list; that would allow for other output forms than what we have now. In the mean time, your alias will do the job. Wietse