1POSTQUEUE(1) General Commands Manual POSTQUEUE(1)
2
3
4
6 postqueue - Postfix queue control
7
9 postqueue [-v] [-c config_dir] -f
10 postqueue [-v] [-c config_dir] -i queue_id
11 postqueue [-v] [-c config_dir] -p
12 postqueue [-v] [-c config_dir] -s site
13
15 The postqueue(1) command implements the Postfix user interface for
16 queue management. It implements operations that are traditionally
17 available via the sendmail(1) command. See the postsuper(1) command
18 for queue operations that require super-user privileges such as delet‐
19 ing a message from the queue or changing the status of a message.
20
21 The following options are recognized:
22
23 -c config_dir
24 The main.cf configuration file is in the named directory instead
25 of the default configuration directory. See also the MAIL_CONFIG
26 environment setting below.
27
28 -f Flush the queue: attempt to deliver all queued mail.
29
30 This option implements the traditional "sendmail -q" command, by
31 contacting the Postfix qmgr(8) daemon.
32
33 Warning: flushing undeliverable mail frequently will result in
34 poor delivery performance of all other mail.
35
36 -i queue_id
37 Schedule immediate delivery of deferred mail with the specified
38 queue ID.
39
40 This option implements the traditional sendmail -qI command, by
41 contacting the flush(8) server.
42
43 This feature is available with Postfix version 2.4 and later.
44
45 -p Produce a traditional sendmail-style queue listing. This option
46 implements the traditional mailq command, by contacting the
47 Postfix showq(8) daemon.
48
49 Each queue entry shows the queue file ID, message size, arrival
50 time, sender, and the recipients that still need to be deliv‐
51 ered. If mail could not be delivered upon the last attempt, the
52 reason for failure is shown. This mode of operation is imple‐
53 mented by executing the postqueue(1) command. The queue ID
54 string is followed by an optional status character:
55
56 * The message is in the active queue, i.e. the message is
57 selected for delivery.
58
59 ! The message is in the hold queue, i.e. no further deliv‐
60 ery attempt will be made until the mail is taken off
61 hold.
62
63 -s site
64 Schedule immediate delivery of all mail that is queued for the
65 named site. A numerical site must be specified as a valid RFC
66 2821 address literal enclosed in [], just like in email
67 addresses. The site must be eligible for the "fast flush" ser‐
68 vice. See flush(8) for more information about the "fast flush"
69 service.
70
71 This option implements the traditional "sendmail -qRsite" com‐
72 mand, by contacting the Postfix flush(8) daemon.
73
74 -v Enable verbose logging for debugging purposes. Multiple -v
75 options make the software increasingly verbose. As of Postfix
76 2.3, this option is available for the super-user only.
77
79 This program is designed to run with set-group ID privileges, so that
80 it can connect to Postfix daemon processes.
81
83 Problems are logged to syslogd(8) and to the standard error stream.
84
86 MAIL_CONFIG
87 Directory with the main.cf file. In order to avoid exploitation
88 of set-group ID privileges, a non-standard directory is allowed
89 only if:
90
91 · The name is listed in the standard main.cf file with the
92 alternate_config_directories configuration parameter.
93
94 · The command is invoked by the super-user.
95
97 The following main.cf parameters are especially relevant to this pro‐
98 gram. The text below provides only a parameter summary. See post‐
99 conf(5) for more details including examples.
100
101 alternate_config_directories (empty)
102 A list of non-default Postfix configuration directories that may
103 be specified with "-c config_directory" on the command line, or
104 via the MAIL_CONFIG environment parameter.
105
106 config_directory (see 'postconf -d' output)
107 The default location of the Postfix main.cf and master.cf con‐
108 figuration files.
109
110 command_directory (see 'postconf -d' output)
111 The location of all postfix administrative commands.
112
113 fast_flush_domains ($relay_domains)
114 Optional list of destinations that are eligible for per-destina‐
115 tion logfiles with mail that is queued to those destinations.
116
117 import_environment (see 'postconf -d' output)
118 The list of environment parameters that a Postfix process will
119 import from a non-Postfix parent process.
120
121 queue_directory (see 'postconf -d' output)
122 The location of the Postfix top-level queue directory.
123
124 syslog_facility (mail)
125 The syslog facility of Postfix logging.
126
127 syslog_name (postfix)
128 The mail system name that is prepended to the process name in
129 syslog records, so that "smtpd" becomes, for example, "post‐
130 fix/smtpd".
131
132 trigger_timeout (10s)
133 The time limit for sending a trigger to a Postfix daemon (for
134 example, the pickup(8) or qmgr(8) daemon).
135
136 Available in Postfix version 2.2 and later:
137
138 authorized_flush_users (static:anyone)
139 List of users who are authorized to flush the queue.
140
141 authorized_mailq_users (static:anyone)
142 List of users who are authorized to view the queue.
143
145 /var/spool/postfix, mail queue
146
148 qmgr(8), queue manager
149 showq(8), list mail queue
150 flush(8), fast flush service
151 sendmail(1), Sendmail-compatible user interface
152 postsuper(1), privileged queue operations
153
155 Use "postconf readme_directory" or "postconf html_directory" to locate
156 this information.
157 ETRN_README, Postfix ETRN howto
158
160 The Secure Mailer license must be distributed with this software.
161
163 The postqueue command was introduced with Postfix version 1.1.
164
166 Wietse Venema
167 IBM T.J. Watson Research
168 P.O. Box 704
169 Yorktown Heights, NY 10598, USA
170
171
172
173 POSTQUEUE(1)