FLUSH(8)
π¦ FLUSH(8) π¦
okay bestie, we are deep in the System Manager's Manual and this page is literally FLUSH(8). grab a boba, this one's short and honestly kind of iconic.
β¨ NAME β¨
flush β Postfix fast flush server π
π SYNOPSIS π
flush [generic Postfix daemon options]
π DESCRIPTION π
okay so the flush(8) server is out here keeping a whole record of your deferred mail by destination, bestie. why? because it makes the SMTP ETRN request go brrr, and same for its command-line equivalents, sendmail -qR and postqueue -f. this program expects to be launched from the master(8) process manager, so don't just run it yourself like a menace. π«Ά
the record is a per-destination logfile, and its contents are the queue IDs of deferred mail. a logfile is append-only, and it gets truncated when delivery is requested for that destination. and a "destination"? it's the part on the right-hand side of the right-most @ in an email address. iykyk. β¨
per-destination logfiles of deferred mail are only maintained for eligible destinations. the list of eligible destinations is set with the fast_flush_domains configuration parameter, which defaults to $relay_domains. slay.
this server implements the following requests:
add sitename queueidβ tell theflush(8)server that the message with the specified queue ID is queued up for the specified destination. πsend_site sitenameβ request delivery of mail that's queued for the specified destination. go go go πsend_file queueidβ request delivery of the specified deferred message. one specific little guy. πrefreshβ refresh non-empty per-destination logfiles that were not read in$fast_flush_refresh_timehours, by simulating send requests (see above, bestie) for the corresponding destinations. it also deletes empty per-destination logfiles that were not updated in$fast_flush_purge_timedays. this request completes in the background, so it's lowkey doing its own thing. π§purgeβ do arefreshfor all per-destination logfiles. no cap.
π SECURITY π
the flush(8) server is not security-sensitive. it does not talk to the network, and it does not talk to local users. it's literally just vibing internally. the fast flush server can run chrooted at fixed low privilege. π
π©Ί DIAGNOSTICS π©Ί
problems and transactions get logged to syslogd(8) or postlogd(8). so if something's weird, check there first, bestie.
π BUGS π
okay this part is giving "read the fine print":
- Fast flush logfiles are truncated only after a
sendrequest, NOT when mail is actually delivered. so yeah, they can accumulate outdated or redundant data. π - to maintain sanity,
refreshmust be executed periodically. this can be automated with a suitable wakeup timer setting in themaster.cfconfiguration file. set it and forget it. β° - upon receipt of a request to deliver mail for an eligible destination, the
flush(8)server requests delivery of all messages listed in that destination's logfile, regardless of the recipients of those messages. this is not an issue for mail sent to arelay_domainsdestination, because such mail typically only has recipients in one domain. π
βοΈ CONFIGURATION PARAMETERS βοΈ
changes to main.cf are picked up automatically, because flush(8) processes only run for a limited amount of time. use the command postfix reload to speed up a change. β¨
the text below provides only a parameter summary. see postconf(5) for more details, including examples. π
config_directory(see 'postconf -d' output) β the default location of the Postfixmain.cfandmaster.cfconfiguration files.daemon_timeout(18000s) β how much time a Postfix daemon process may take to handle a request before it is terminated by a built-in watchdog timer. β³fast_flush_domains($relay_domains) β optional list of destinations that are eligible for per-destination logfiles with mail that is queued to those destinations.fast_flush_refresh_time(12h) β the time after which a non-empty but unread per-destination "fast flush" logfile needs to be refreshed.fast_flush_purge_time(7d) β the time after which an empty per-destination "fast flush" logfile is deleted.ipc_timeout(3600s) β the time limit for sending or receiving information over an internal communication channel.max_idle(100s) β the maximum amount of time that an idle Postfix daemon process waits for an incoming connection before terminating voluntarily.max_use(100) β the maximal number of incoming connections that a Postfix daemon process will service before terminating voluntarily.parent_domain_matches_subdomains(see 'postconf -d' output) β a list of Postfix features where the patternexample.comalso matches subdomains ofexample.com, instead of requiring an explicit.example.compattern.process_id(read-only) β the process ID of a Postfix command or daemon process.process_name(read-only) β the process name of a Postfix command or daemon process.queue_directory(see 'postconf -d' output) β the location of the Postfix top-level queue directory.syslog_facility(mail) β the syslog facility of Postfix logging.syslog_name(see 'postconf -d' output) β a prefix that is prepended to the process name in syslog records, so that, for example,smtpdbecomesprefix/smtpd.
available in Postfix 3.3 and later:
service_name(read-only) β themaster.cfservice name of a Postfix daemon process. π
π FILES π
/var/spool/postfix/flush, "fast flush" logfiles. ποΈ
π SEE ALSO π
smtpd(8), SMTP serverqmgr(8), queue managerpostconf(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, bestie.
ETRN_README, Postfix ETRN howto π
π LICENSE π
the Secure Mailer license must be distributed with this software. periodt. β
π°οΈ HISTORY π°οΈ
this service was introduced with Postfix version 1.0. an og. π
π©βπ» 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 FLUSH(8) page from the System Manager's Manual, bestie β go forth and fast-flush responsibly. πβ¨π
π¦ where this page comes from
- alpine 3.22: postfix-doc 3.10.13-r0 Β· IPL-1.0 EPL-2.0
- alpine 3.23: postfix-doc 3.10.13-r0 Β· IPL-1.0 EPL-2.0
- alpine 3.24: postfix-doc 3.11.7-r0 Β· IPL-1.0 EPL-2.0
- arch rolling: postfix 3.11.7-1 Β· EPL-2.0 OR IPL-1.0 AND BSD-4-Clause-UC
- centos-stream 10: postfix 2:3.8.5-11.el10 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- centos-stream 9: postfix 2:3.5.25-3.el9 Β· (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
- debian trixie: postfix 3.10.13-0+deb13u1
- fedora 43: postfix 2:3.10.14-1.fc43 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 43: postfix 2:3.10.3-3.fc43 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 44: postfix 2:3.10.14-1.fc44 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 44: postfix 2:3.10.7-2.fc44 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- nixos 26.05: postfix 3.11.7
- nixpkgs unstable: postfix 3.11.7
- opensuse-leap 16.0: postfix 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix-bdb 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix-bdb 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix-bdb 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- opensuse-leap 16.0: postfix-bdb 3.10.2-160000.3.1 Β· EPL-2.0 OR IPL-1.0
- ubuntu questing: postfix 3.10.2-1ubuntu2
- ubuntu questing: postfix 3.10.2-1ubuntu2.1
- ubuntu resolute: postfix 3.10.6-4ubuntu2
- ubuntu resolute: postfix 3.10.6-4ubuntu2.1
- ubuntu resolute: postfix 3.10.6-4ubuntu2.2
- ubuntu stonking: postfix 3.11.7-1ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms