1OQMGR(8) System Manager's Manual OQMGR(8)
2
3
4
6 oqmgr - old Postfix queue manager
7
9 oqmgr [generic Postfix daemon options]
10
12 The oqmgr(8) daemon awaits the arrival of incoming mail and arranges
13 for its delivery via Postfix delivery processes. The actual mail rout‐
14 ing strategy is delegated to the trivial-rewrite(8) daemon. This pro‐
15 gram expects to be run from the master(8) process manager.
16
17 Mail addressed to the local double-bounce address is logged and dis‐
18 carded. This stops potential loops caused by undeliverable bounce
19 notifications.
20
22 The oqmgr(8) daemon maintains the following queues:
23
24 incoming
25 Inbound mail from the network, or mail picked up by the local
26 pickup(8) agent from the maildrop directory.
27
28 active Messages that the queue manager has opened for delivery. Only a
29 limited number of messages is allowed to enter the active queue
30 (leaky bucket strategy, for a fixed delivery rate).
31
32 deferred
33 Mail that could not be delivered upon the first attempt. The
34 queue manager implements exponential backoff by doubling the
35 time between delivery attempts.
36
37 corrupt
38 Unreadable or damaged queue files are moved here for inspection.
39
40 hold Messages that are kept "on hold" are kept here until someone
41 sets them free.
42
44 The oqmgr(8) daemon keeps an eye on per-message delivery status reports
45 in the following directories. Each status report file has the same name
46 as the corresponding message file:
47
48 bounce Per-recipient status information about why mail is bounced.
49 These files are maintained by the bounce(8) daemon.
50
51 defer Per-recipient status information about why mail is delayed.
52 These files are maintained by the defer(8) daemon.
53
54 trace Per-recipient status information as requested with the Postfix
55 "sendmail -v" or "sendmail -bv" command. These files are main‐
56 tained by the trace(8) daemon.
57
58 The oqmgr(8) daemon is responsible for asking the bounce(8), defer(8)
59 or trace(8) daemons to send delivery reports.
60
62 The queue manager implements a variety of strategies for either opening
63 queue files (input) or for message delivery (output).
64
65 leaky bucket
66 This strategy limits the number of messages in the active queue
67 and prevents the queue manager from running out of memory under
68 heavy load.
69
70 fairness
71 When the active queue has room, the queue manager takes one mes‐
72 sage from the incoming queue and one from the deferred queue.
73 This prevents a large mail backlog from blocking the delivery of
74 new mail.
75
76 slow start
77 This strategy eliminates "thundering herd" problems by slowly
78 adjusting the number of parallel deliveries to the same destina‐
79 tion.
80
81 round robin
82 The queue manager sorts delivery requests by destination.
83 Round-robin selection prevents one destination from dominating
84 deliveries to other destinations.
85
86 exponential backoff
87 Mail that cannot be delivered upon the first attempt is
88 deferred. The time interval between delivery attempts is dou‐
89 bled after each attempt.
90
91 destination status cache
92 The queue manager avoids unnecessary delivery attempts by main‐
93 taining a short-term, in-memory list of unreachable destina‐
94 tions.
95
97 On an idle system, the queue manager waits for the arrival of trigger
98 events, or it waits for a timer to go off. A trigger is a one-byte mes‐
99 sage. Depending on the message received, the queue manager performs
100 one of the following actions (the message is followed by the symbolic
101 constant used internally by the software):
102
103 D (QMGR_REQ_SCAN_DEFERRED)
104 Start a deferred queue scan. If a deferred queue scan is
105 already in progress, that scan will be restarted as soon as it
106 finishes.
107
108 I (QMGR_REQ_SCAN_INCOMING)
109 Start an incoming queue scan. If an incoming queue scan is
110 already in progress, that scan will be restarted as soon as it
111 finishes.
112
113 A (QMGR_REQ_SCAN_ALL)
114 Ignore deferred queue file time stamps. The request affects the
115 next deferred queue scan.
116
117 F (QMGR_REQ_FLUSH_DEAD)
118 Purge all information about dead transports and destinations.
119
120 W (TRIGGER_REQ_WAKEUP)
121 Wakeup call, This is used by the master server to instantiate
122 servers that should not go away forever. The action is to start
123 an incoming queue scan.
124
125 The oqmgr(8) daemon reads an entire buffer worth of triggers. Multiple
126 identical trigger requests are collapsed into one, and trigger requests
127 are sorted so that A and F precede D and I. Thus, in order to force a
128 deferred queue run, one would request A F D; in order to notify the
129 queue manager of the arrival of new mail one would request I.
130
132 RFC 3463 (Enhanced status codes)
133 RFC 3464 (Delivery status notifications)
134
136 The oqmgr(8) daemon is not security sensitive. It reads single-charac‐
137 ter messages from untrusted local users, and thus may be susceptible to
138 denial of service attacks. The oqmgr(8) daemon does not talk to the
139 outside world, and it can be run at fixed low privilege in a chrooted
140 environment.
141
143 Problems and transactions are logged to the syslog(8) daemon. Cor‐
144 rupted message files are saved to the corrupt queue for further inspec‐
145 tion.
146
147 Depending on the setting of the notify_classes parameter, the postmas‐
148 ter is notified of bounces and of other trouble.
149
151 A single queue manager process has to compete for disk access with mul‐
152 tiple front-end processes such as cleanup(8). A sudden burst of inbound
153 mail can negatively impact outbound delivery rates.
154
156 Changes to main.cf are not picked up automatically, as oqmgr(8) is a
157 persistent process. Use the command "postfix reload" after a configura‐
158 tion change.
159
160 The text below provides only a parameter summary. See postconf(5) for
161 more details including examples.
162
163 In the text below, transport is the first field in a master.cf entry.
164
166 allow_min_user (no)
167 Allow a recipient address to have `-' as the first character.
168
170 qmgr_clog_warn_time (300s)
171 The minimal delay between warnings that a specific destination
172 is clogging up the Postfix active queue.
173
174 qmgr_message_active_limit (20000)
175 The maximal number of messages in the active queue.
176
177 qmgr_message_recipient_limit (20000)
178 The maximal number of recipients held in memory by the Postfix
179 queue manager, and the maximal size of the size of the short-
180 term, in-memory "dead" destination status cache.
181
183 qmgr_fudge_factor (100)
184 Obsolete feature: the percentage of delivery resources that a
185 busy mail system will use up for delivery of a large mailing
186 list message.
187
188 initial_destination_concurrency (5)
189 The initial per-destination concurrency level for parallel
190 delivery to the same destination.
191
192 default_destination_concurrency_limit (20)
193 The default maximal number of parallel deliveries to the same
194 destination.
195
196 transport_destination_concurrency_limit
197 Idem, for delivery via the named message transport.
198
200 default_destination_recipient_limit (50)
201 The default maximal number of recipients per message delivery.
202
203 transport_destination_recipient_limit
204 Idem, for delivery via the named message transport.
205
207 minimal_backoff_time (version dependent)
208 The minimal time between attempts to deliver a deferred message.
209
210 maximal_backoff_time (4000s)
211 The maximal time between attempts to deliver a deferred message.
212
213 maximal_queue_lifetime (5d)
214 The maximal time a message is queued before it is sent back as
215 undeliverable.
216
217 queue_run_delay (version dependent)
218 The time between deferred queue scans by the queue manager.
219
220 transport_retry_time (60s)
221 The time between attempts by the Postfix queue manager to con‐
222 tact a malfunctioning message delivery transport.
223
224 Available in Postfix version 2.1 and later:
225
226 bounce_queue_lifetime (5d)
227 The maximal time a bounce message is queued before it is consid‐
228 ered undeliverable.
229
231 config_directory (see 'postconf -d' output)
232 The default location of the Postfix main.cf and master.cf con‐
233 figuration files.
234
235 daemon_timeout (18000s)
236 How much time a Postfix daemon process may take to handle a
237 request before it is terminated by a built-in watchdog timer.
238
239 defer_transports (empty)
240 The names of message delivery transports that should not deliver
241 mail unless someone issues "sendmail -q" or equivalent.
242
243 delay_logging_resolution_limit (2)
244 The maximal number of digits after the decimal point when log‐
245 ging sub-second delay values.
246
247 helpful_warnings (yes)
248 Log warnings about problematic configuration settings, and pro‐
249 vide helpful suggestions.
250
251 ipc_timeout (3600s)
252 The time limit for sending or receiving information over an
253 internal communication channel.
254
255 process_id (read-only)
256 The process ID of a Postfix command or daemon process.
257
258 process_name (read-only)
259 The process name of a Postfix command or daemon process.
260
261 queue_directory (see 'postconf -d' output)
262 The location of the Postfix top-level queue directory.
263
264 syslog_facility (mail)
265 The syslog facility of Postfix logging.
266
267 syslog_name (postfix)
268 The mail system name that is prepended to the process name in
269 syslog records, so that "smtpd" becomes, for example, "post‐
270 fix/smtpd".
271
273 /var/spool/postfix/incoming, incoming queue
274 /var/spool/postfix/active, active queue
275 /var/spool/postfix/deferred, deferred queue
276 /var/spool/postfix/bounce, non-delivery status
277 /var/spool/postfix/defer, non-delivery status
278 /var/spool/postfix/trace, delivery status
279
281 trivial-rewrite(8), address routing
282 bounce(8), delivery status reports
283 postconf(5), configuration parameters
284 master(5), generic daemon options
285 master(8), process manager
286 syslogd(8), system logging
287
289 Use "postconf readme_directory" or "postconf html_directory" to locate
290 this information.
291 QSHAPE_README, Postfix queue analysis
292
294 The Secure Mailer license must be distributed with this software.
295
297 Wietse Venema
298 IBM T.J. Watson Research
299 P.O. Box 704
300 Yorktown Heights, NY 10598, USA
301
302
303
304 OQMGR(8)