POSTLOCK(1)
π postlock(1) β General Commands Manual π
ok so bestie, let me put you on to postlock β it locks a mail folder and then runs your command. yes literally. she's from the General Commands Manual and she's about to be your new fave. π
β¨ NAME β¨
postlock β lock mail folder and execute command π¦
πΈ SYNOPSIS πΈ
postlock [-c config_dir] [-l lock_style]
[-v] file command...
π DESCRIPTION π
okay so the postlock(1) command locks file for exclusive access, and then executes command. that's the whole vibe. and the way she locks things? it's compatible with the Postfix UNIX-style local delivery agent β so she fits right in, no cap. π
Options, bestie:
-c config_dirβ read themain.cfconfiguration file in the named directory instead of the default configuration directory.-l lock_styleβ override the locking method that's specified via themailbox_delivery_lockconfiguration parameter (scroll down, she's there π).-vβ enable verbose logging for debugging purposes. and like, stack them? multiple-voptions make the software increasingly verbose. louder. louder. LOUDER. π₯
Arguments, bestie:
fileβ a mailbox file. the user should have read/write permission. (yes, permission. she will not be gatekept. π)command...β the command to execute whilefileis locked for exclusive access. and listen: the command is executed directly, i.e. without interpretation by a shell command interpreter. no shell, no middleman, no drama. she's her own main character. π
π DIAGNOSTICS π
the result status is 75 (EX_TEMPFAIL) when postlock(1) could not perform the requested operation. like, she tried, okay? otherwise, the exit status is the exit status from the command. periodt. π
π¨ BUGS π¨
with remote file systems, the ability to acquire a lock does not necessarily eliminate access conflicts. avoid file access by processes running on different machines. fr fr, do not test her on this one. π
π ENVIRONMENT π
MAIL_CONFIGβ directory with Postfix configuration files.MAIL_VERBOSEβ enable verbose logging for debugging purposes.
π CONFIGURATION PARAMETERS π
the following main.cf parameters are especially relevant to this program. the text below provides only a parameter summary β see postconf(5) for more details including examples. (she's not being mysterious, she's just being brief. iykyk β¨)
π LOCKING CONTROLS π
deliver_lock_attempts(20) β the maximal number of attempts to acquire an exclusive lock on a mailbox file orbounce(8)logfile.deliver_lock_delay(1s) β the time between attempts to acquire an exclusive lock on a mailbox file orbounce(8)logfile.stale_lock_time(500s) β the time after which a stale exclusive mailbox lockfile is removed.mailbox_delivery_lock(see'postconf -d'output) β how to lock a UNIX-stylelocal(8)mailbox before attempting delivery.
π RESOURCE AND RATE CONTROLS π
fork_attempts(5) β the maximal number of attempts tofork()a child process.fork_delay(1s) β the delay between attempts tofork()a child process.
π§ MISCELLANEOUS CONTROLS π§
config_directory(see'postconf -d'output) β the default location of the Postfixmain.cfandmaster.cfconfiguration files.import_environment(see'postconf -d'output) β the list of environment variables that a privileged Postfix process will import from a non-Postfix parent process, orname=valueenvironment overrides.
π SEE ALSO π
postconf(5), configuration parameters π
π LICENSE π
the Secure Mailer license must be distributed with this software. it's giving legal slay, don't skip it. π
π 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
ok that's the whole page bestie, you ate that π«Ά go lock something and run something, she's iconic for it. and just so we're cute about it: this was postlock(1) from the General Commands Manual, page postlock(1). bye bestie, stay locked and loaded π
β¨πΈ
π¦ 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
- 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