OQMGR(8postfix)
β¨ OQMGR β old Postfix queue manager β¨
okay bestie, welcome to the oqmgr(8postfix) page π this is the manual for the old Postfix queue manager, and yes we're reading the whole thing together, no skimming, no cap.
π NAME π
oqmgr β old Postfix queue manager π¦
πΈ SYNOPSIS πΈ
oqmgr [generic Postfix daemon options]
π DESCRIPTION π
so the oqmgr(8) daemon justβ¦ sits there, patiently, waiting for incoming mail to show up πΈ and then it arranges for that mail to actually get delivered via Postfix delivery processes. the actual mail routing strategy? not its problem, it's delegated to the trivial-rewrite(8) daemon. and this program expects to be run from the master(8) process manager, periodt.
mail that's addressed to the local double-bounce address gets logged and then discarded ποΈ β and honestly that's iconic of it, because it stops potential loops caused by undeliverable bounce notifications. no infinite bounce spirals here, we don't do that π
π MAIL QUEUES π
the oqmgr(8) daemon maintains these queues, and they each have a whole personality:
- incoming β inbound mail from the network, or mail picked up by the local
pickup(8)agent from the maildrop directory π₯ - active β messages that the queue manager has opened for delivery. only a limited number of messages is allowed to enter the active queue (leaky bucket strategy, for a fixed delivery rate) π₯
- deferred β mail that could not be delivered upon the first attempt. the queue manager implements exponential backoff by doubling the time between delivery attempts π
- corrupt β unreadable or damaged queue files get moved here for inspection. it's giving evidence locker π
- hold β messages that are kept "on hold" are kept here until someone sets them free π«Ά
π DELIVERY STATUS REPORTS π
the oqmgr(8) daemon keeps an eye on per-message delivery status reports in these directories. each status report file has the same name</> as the corresponding message file:
- bounce β per-recipient status information about why mail is bounced. these files are maintained by the
bounce(8)daemon π - defer β per-recipient status information about why mail is delayed. these files are maintained by the
defer(8)daemon β³ - trace β per-recipient status information as requested with the Postfix
"sendmail -v"or"sendmail -bv"command. these files are maintained by thetrace(8)daemon π
and the oqmgr(8) daemon is the one responsible for asking the bounce(8), defer(8) or trace(8) daemons to send delivery reports. it's the group chat admin of delivery receipts fr fr π¬
π STRATEGIES π
the queue manager implements a variety of strategies for either opening queue files (input) or for message delivery (output). yes, it has range:
- leaky bucket β this strategy limits the number of messages in the active queue and prevents the queue manager from running out of memory under heavy load πͺ£
- fairness β when the active queue has room, the queue manager takes one message from the incoming queue and one from the deferred queue. this prevents a large mail backlog from blocking the delivery of new mail βοΈ
- slow start β this strategy eliminates "thundering herd" problems by slowly adjusting the number of parallel deliveries to the same destination π’
- round robin β the queue manager sorts delivery requests by destination. round-robin selection prevents one destination from dominating deliveries to other destinations π
- exponential backoff β mail that cannot be delivered upon the first attempt is deferred. the time interval between delivery attempts is doubled after each attempt π
- destination status cache β the queue manager avoids unnecessary delivery attempts by maintaining a short-term, in-memory list of unreachable destinations π§
β‘ TRIGGERS β‘
on an idle system, the queue manager waits for the arrival of trigger events, or it waits for a timer to go off β° a trigger is a one-byte message. depending on the message received, the queue manager performs one of the following actions (the message is followed by the symbolic constant used internally by the software):
D(QMGR_REQ_SCAN_DEFERRED) β start a deferred queue scan. if a deferred queue scan is already in progress, that scan will be restarted as soon as it finishes πI(QMGR_REQ_SCAN_INCOMING) β start an incoming queue scan. if an incoming queue scan is already in progress, that scan will be restarted as soon as it finishes π¨A(QMGR_REQ_SCAN_ALL) β ignore deferred queue file time stamps. the request affects the next deferred queue scan π°οΈF(QMGR_REQ_FLUSH_DEAD) β purge all information about dead transports and destinations πW(TRIGGER_REQ_WAKEUP) β wakeup call, this is used by the master server to instantiate servers that should not go away forever. the action is to start an incoming queue scan βοΈ
the oqmgr(8) daemon reads an entire buffer worth of triggers. multiple identical trigger requests are collapsed into one, and trigger requests are sorted so that A and F precede D and I. so, in order to force a deferred queue run, one would request A F D; in order to notify the queue manager of the arrival of new mail one would request I. iykyk π
π STANDARDS π
π SECURITY π
the oqmgr(8) daemon is not security sensitive π«Ά it reads single-character messages from untrusted local users, and thus may be susceptible to denial of service attacks π but listen β the oqmgr(8) daemon does not talk to the outside world, and it can be run at fixed low privilege in a chrooted environment. cozy, contained, protected π§
π©Ί DIAGNOSTICS π©Ί
problems and transactions are logged to the syslogd(8) or postlogd(8) daemon π corrupted message files are saved to the corrupt</> queue for further inspection π
depending on the setting of the notify_classes parameter, the postmaster is notified of bounces and of other trouble π£
π BUGS π
a single queue manager process has to compete for disk access with multiple front-end processes such as cleanup(8). a sudden burst of inbound mail can negatively impact outbound delivery rates π it's giving one person doing the whole group project, no cap.
βοΈ CONFIGURATION PARAMETERS βοΈ
changes to main.cf are not picked up automatically, as oqmgr(8) is a persistent process. use the command "postfix reload" after a configuration change π
the text below provides only a parameter summary. see postconf(5) for more details including examples π
in the text below, transport is the first field in a master.cf entry.
π COMPATIBILITY CONTROLS π
available before Postfix version 2.5:
allow_min_user (no)β allow a sender or recipient address to have-as the first character.
available with Postfix version 2.7 and later:
default_filter_nexthop (empty)β when acontent_filterorFILTERrequest specifies no explicit next-hop destination, use$default_filter_nexthopinstead; when that value is empty, use the domain in the recipient address.
π ACTIVE QUEUE CONTROLS π
qmgr_clog_warn_time (300s)β the minimal delay between warnings that a specific destination is clogging up the Postfix active queue π§qmgr_message_active_limit (20000)β the maximal number of messages in the active queue π¦qmgr_message_recipient_limit (20000)β the maximal number of recipients held in memory by the Postfix queue manager, and the maximal size of the short-term, in-memory "dead" destination status cache π
π₯ DELIVERY CONCURRENCY CONTROLS π₯
qmgr_fudge_factor (100)β obsolete feature: the percentage of delivery resources that a busy mail system will use up for delivery of a large mailing list message π«initial_destination_concurrency (5)β the initial per-destination concurrency level for parallel delivery to the same destination πdefault_destination_concurrency_limit (20)β the default maximal number of parallel deliveries to the same destination πtransport_destination_concurrency_limit ($default_destination_concurrency_limit)β a transport-specific override for thedefault_destination_concurrency_limitparameter value, where transport is themaster.cfname of the message delivery transport.
available in Postfix version 2.5 and later:
transport_initial_destination_concurrency ($initial_destination_concurrency)β a transport-specific override for theinitial_destination_concurrencyparameter value, where transport is themaster.cfname of the message delivery transport.default_destination_concurrency_failed_cohort_limit (1)β how many pseudo-cohorts must suffer connection or handshake failure before a specific destination is considered unavailable (and further delivery is suspended) π«transport_destination_concurrency_failed_cohort_limit ($default_destination_concurrency_failed_cohort_limit)β a transport-specific override for thedefault_destination_concurrency_failed_cohort_limitparameter value, where transport is themaster.cfname of the message delivery transport.default_destination_concurrency_negative_feedback (1)β the per-destination amount of delivery concurrency negative feedback, after a delivery completes with a connection or handshake failure πtransport_destination_concurrency_negative_feedback ($default_destination_concurrency_negative_feedback)β a transport-specific override for thedefault_destination_concurrency_negative_feedbackparameter value, where transport is themaster.cfname of the message delivery transport.default_destination_concurrency_positive_feedback (1)β the per-destination amount of delivery concurrency positive feedback, after a delivery completes without connection or handshake failure πtransport_destination_concurrency_positive_feedback ($default_destination_concurrency_positive_feedback)β a transport-specific override for thedefault_destination_concurrency_positive_feedbackparameter value, where transport is themaster.cfname of the message delivery transport.destination_concurrency_feedback_debug (no)β make the queue manager's feedback algorithm verbose for performance analysis purposes π¬
πΈ RECIPIENT SCHEDULING CONTROLS πΈ
default_destination_recipient_limit (50)β the default maximal number of recipients per message delivery π₯transport_destination_recipient_limit ($default_destination_recipient_limit)β a transport-specific override for thedefault_destination_recipient_limitparameter value, where transport is themaster.cfname of the message delivery transport.
to be continued bestieβ¦ part 2 is loading β¨
π¦ OTHER RESOURCE AND RATE CONTROLS π¦
okay bestie, these are the knobs that control how often and how fast the queue manager pokes at stuff. no cap, they matter. π
minimal_backoff_time(300s) β the smallest amount of time between attempts to deliver a deferred message. fun fact: before Postfix 2.4, the default was1000s. glow-up era.maximal_backoff_time(4000s) β the biggest amount of time between attempts to deliver a deferred message. like, after this it stops growing. periodt.maximal_queue_lifetime(5d) β if delivery fails with a temporary error, and the message has been in the queue for this long, it's considered undeliverable. bye bestie. πqueue_run_delay(300s) β how long between deferred queue scans by the queue manager. another glow-up: before Postfix 2.4, this default was1000s.transport_retry_time(60s) β how long the Postfix queue manager waits between attempts to contact a malfunctioning message delivery transport. like it's checking if the transport got its life together. π
Available in Postfix version 2.1 and later: β¨
bounce_queue_lifetime(5d) β if delivery fails with a temporary error, and a bounce message has been in the queue for this long, it's considered undeliverable. yes, bounces can bounce. π
Available in Postfix version 2.5 and later: β¨
default_destination_rate_delay(0s) β the default delay inserted between individual message deliveries to the same destination and over the same message delivery transport. it's giving throttle but make it default. π«Άtransport_destination_rate_delay($default_destination_rate_delay) β a transport-specific override for thedefault_destination_rate_delayvalue. here, transport is themaster.cfname of the message delivery transport. iykyk.
Available in Postfix version 3.1 and later: β¨
default_transport_rate_delay(0s) β the default delay inserted between individual message deliveries over the same message delivery transport, regardless of destination. no destination discrimination, just vibes. πtransport_transport_rate_delay($default_transport_rate_delay) β a transport-specific override for thedefault_transport_rate_delayvalue. the initial transport in the parameter name is themaster.cfname of the message delivery transport. yes, the name says transport twice. iconic. π
π‘οΈ SAFETY CONTROLS π‘οΈ
qmgr_daemon_timeout(1000s) β how much time a Postfix queue manager process may take to handle a request before a built-in watchdog timer terminates it. the watchdog said times up bestie. β°qmgr_ipc_timeout(60s) β the time limit for the queue manager to send or receive information over an internal communication channel. don't leave it on read. π
Available in Postfix version 3.1 and later: β¨
address_verify_pending_request_limit(seepostconf -doutput) β a safety limit that prevents address verification requests from overwhelming the Postfix queue. protective queen behavior. π«Ά
π MISCELLANEOUS CONTROLS π
config_directory(seepostconf -doutput) β the default location of the Postfixmain.cfandmaster.cfconfiguration files. where the receipts live. πdefer_transports(empty) β the names of message delivery transports that should not deliver mail unless someone issuessendmail -qor equivalent. not me putting the mail on do not disturb. πdelay_logging_resolution_limit(2) β the maximal number of digits after the decimal point when logging sub-second delay values. precision but make it cute. β¨helpful_warnings(yes) β log warnings about problematic configuration settings, and provide helpful suggestions. it's giving supportive bestie. π«Άprocess_id(read-only) β the process ID of a Postfix command or daemon process. yes, read-only. don't try it. πprocess_name(read-only) β the process name of a Postfix command or daemon process. also read-only. periodt.queue_directory(seepostconf -doutput) β the location of the Postfix top-level queue directory. the queue's home address. πsyslog_facility(mail) β the syslog facility of Postfix logging. classic. πsyslog_name(seepostconf -doutput) β a prefix that is prepended to the process name in syslog records, so that, for example,"smtpd"becomes"prefix/smtpd". it's giving name tag at a party. π
Available in Postfix version 3.0 and later: β¨
confirm_delay_cleared(no) β after sending a"your message is delayed"notification, inform the sender when the delay clears up. closure? we love to see it. π«Ά
Available in Postfix 3.3 and later: β¨
service_name(read-only) β themaster.cfservice name of a Postfix daemon process. read-only, bestie. don't touch. π
Available in Postfix 3.5 and later: β¨
info_log_address_format(external) β the email address form that will be used in non-debug logging (info, warning, etc.). so info logs get the external format. slay. β¨
π FILES π
/var/spool/postfix/incomingβ incoming queue/var/spool/postfix/activeβ active queue/var/spool/postfix/deferredβ deferred queue/var/spool/postfix/bounceβ non-delivery status/var/spool/postfix/deferβ non-delivery status/var/spool/postfix/traceβ delivery status
π SEE ALSO π
trivial-rewrite(8), address routingbounce(8), delivery status reportspostconf(5), configuration parametersmaster(5), generic daemon optionsmaster(8), process managerpostlogd(8), Postfix loggingsyslogd(8), system logging
π README FILES π
use postconf readme_directory or postconf html_directory to locate this information.
QSHAPE_README, Postfix queue analysis
π LICENSE π
the Secure Mailer license must be distributed with this software. periodt. π
π AUTHOR(S) π
- Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA
- Wietse Venema Google, Inc. 111 8th Avenue New York, NY 10011, USA
and that's the whole OQMGR(8postfix) page, bestie. source/version: OQMGR(8postfix). date: whatever your local manpage footer says β i'm not gonna copy the line, that's not the vibe. now go queue something iconic. πβ¨
π¦ where this page comes from
- debian bookworm: postfix 3.7.11-0+deb12u1
- ubuntu jammy: postfix 3.6.4-1ubuntu1
- ubuntu jammy: postfix 3.6.4-1ubuntu1.4
- ubuntu noble: postfix 3.8.6-1build2
- ubuntu noble: postfix 3.8.6-1ubuntu0.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms