POSTLOG(1)
π POSTLOG(1) β like, the Postfix-compatible logging utility, bestie π
okay so welcome to postlog, from the General Commands Manual, section 1. it's a whole vibe and it's gonna log stuff for you. let's get into it π«Ά
β¨ NAME β¨
postlog β the Postfix-compatible logging utility. that's it, that's the girl π
πΈ SYNOPSIS πΈ
postlog [-iv] [-c config_dir] [-p priority] [-t tag] [text...]
π¦ DESCRIPTION π¦
so the postlog(1) command implements a Postfix-compatible logging interface, for use in β and I quote the vibe β for example, shell scripts. like, if you're writing a script and you want your logging to play nice with Postfix, this is your girlie. β¨
by default, postlog(1) logs the text you give it on the command line as one record. one and done. if you don't specify any text on the command line, then postlog(1) reads from standard input and logs each input line as one record. so it's like, feed her lines, she logs them. iconic behavior honestly. π
Logging is sent to syslogd(8) or postlogd(8), and to the standard error stream. ok so here's the little caveat: with Postfix < 3.8, postlog(1) writes to the standard error stream only if that stream is connected to a terminal. so like, terminal girlies only for the old versions. π
The following options are implemented:
π OPTIONS π
-cconfig_dir β themain.cfconfiguration file is in the named directory instead of the default configuration directory. also peek theMAIL_CONFIGenvironment setting below, she's related. π-i(obsolete) β this one includes the process ID in the logging tag. but bestie, it's obsolete: this flag is ignored as of Postfix 3.4, because from 3.4 onward the PID is always included anyway. so it's giving decorative. π-ppriority (default:info) β specifies the logging severity. the options are:info,warn,error,fatal, orpanic. π₯ and with Postfix 3.1 and later, the program will pause for 1 second after reporting afatalorpaniccondition, just like other Postfix programs. dramatic? maybe. but that's the spec.-ttag β specifies the logging tag, aka the identifying name that appears at the beginning of each logging record. a default tag is used when none is specified. so like, your name badge for every log line. π-vβ enable verbose logging for debugging purposes. and the way that multiple-voptions make the software increasingly verbose?? stack them, go feral. π£οΈ
π SECURITY π
okay this part matters, pay attention. π
The postlog(1) command is designed to run with set-groupid privileges, so that it can connect to the postlogd(8) daemon process. that's Postfix 3.7 and later.
β οΈ but listen β earlier implementations of this command must not have set-groupid or set-userid permissions. no cap. don't do it.
π ENVIRONMENT π
MAIL_CONFIG
Directory with the main.cf file. and here's the thing β in order to avoid exploitation of set-group ID privileges, a non-default directory is allowed only if:
- The name is listed in the default
main.cffile with thealternate_config_directoriesormulti_instance_directoriesconfiguration parameter. - The command is invoked by the super-user.
so like, two keys, two locks, very main character security energy. π
β 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. π
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, or name=value environment overrides.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,"smtpd"becomes"prefix/smtpd". cute little name tag situation β¨
π§ Available in Postfix 3.4 and later:
maillog_file(empty) β the name of an optional logfile that is written by the Postfixpostlogd(8)service.postlog_service_name(postlog) β the name of thepostlogd(8)service entry inmaster.cf.
πΈ Available in Postfix 3.9 and later:
maillog_file_permissions(0600) β the file access permissions that will be set when the file$maillog_fileis created for the first time, or when the file is created after an existing file is rotated. π
π«Ά SEE ALSO π«Ά
postconf(5), configuration parameterspostlogd(8), Postfix loggingsyslogd(8), system logging
π LICENSE π
The Secure Mailer license must be distributed with this software. periodt. π
π°οΈ HISTORY π°οΈ
The postlog(1) command was introduced with Postfix version 3.4. so she's a 3.4 girlie, a lil baby in the grand Postfix timeline π
π 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 page, bestie!! π¦ it's from the General Commands Manual and the page itself is titled POSTLOG(1) β that's the header and the footer, no version or date attached to this one, just the name at the top and the name at the bottom like a lil matching set. slay. π
β¨π₯
π¦ where this page comes from
- 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
- nixos 26.05: postfix 3.11.7
- nixpkgs unstable: postfix 3.11.7
- 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