With normal user authorization, the postqueue program enables you to execute operations on the mail queues which are organized as files in various subdirectories.
Each e-mail which the Postfix server receives for local delivery or forwarding is initially buffered in subdirectories of /var/spool/postfix, e.g. /var/spool/postfix/incoming or /var/spool/postfix/active.
The e-mails placed in the mail queues are handled as follows:
As soon as an e-mail has been successfully delivered or forwarded, it is removed from the mail queues.
If an e-mail cannot initially be forwarded or delivered, e.g. because the mail server cannot be reached, it is once more placed in a mail queue. Another attempt to deliver it is only made after a wait time.
The mailq program is supported only because of its compatibility with the Sendmail mail server and provides the same functionality as postqueue -p
.
As users with normal user authorization do not have the sbin directory in their path, they must specify the complete path name.
[/opt/MAIL/postfix/sbin/]postqueue |
{ -p | -f | -s <site>} |
-p
Lists the contents of the mail queues in a presentation which is familiar from the Sendmail program mailq.
-f
Causes the Postfix server to make an attempt (possibly a repeated attempt) to deliver all e-mails in the mail queues. This is, for example, useful after connection problems have been remedied which have temporarily prevented the forwarding of e-mails. Instead of waiting for the wait time for a renewed delivery attempt to elapse you can thus initiate the immediate delivery of all waiting messages.
-s <site>
Causes the immediate delivery of all e-mails intended for <site> which are contained in the mail queues.