Dean wrote:
Hi guys, Postfix newbie here, but have it running without too many issues.
In the past I have used Sendmail -bp to view the contents of the mail queue
on an SMTP server running sendmail. I believe mailq is the Postfix
equivalent. Is this correct?
/usr/bin/mailq is just a symlink to the binary called 'sendmail' on either a
Postfix or Sendmail machine, and in both cases the behavior of sendmail when
called as mailq is identical to running sendmail -bp.
Postfix also has a program called postqueue that gives you options not
available in real Sendmail for working with the Postfix queue. The Sendmail
compatibility binary actually calls postqueue todo the real work of mailq or
sendmail -bp.
If it is, it also looks at /var/spool/mqueue by
default, and my postfix configuration stores all its elements in
/var/spool/postfix. So do I need to change the postfix config or is there
another way I can view the mail queue?
Your installation is broken. You still have the real sendmail in place.
The Postfix 'mailq' ends up running postqueue, which looks at the Postfix
config for where the queue is.