1<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" 2 "https://www.w3.org/TR/html4/loose.dtd"> 3<html> <head> 4<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5<link rel='stylesheet' type='text/css' href='postfix-doc.css'> 6<title> Postfix manual - postlog(1) </title> 7</head> <body> <pre> 8POSTLOG(1) POSTLOG(1) 9 10<b><a name="name">NAME</a></b> 11 postlog - Postfix-compatible logging utility 12 13<b><a name="synopsis">SYNOPSIS</a></b> 14 <b>postlog</b> [<b>-iv</b>] [<b>-c</b> <i>config</i><b>_</b><i>dir</i>] [<b>-p</b> <i>priority</i>] [<b>-t</b> <i>tag</i>] [<i>text...</i>] 15 16<b><a name="description">DESCRIPTION</a></b> 17 The <a href="postlog.1.html"><b>postlog</b>(1)</a> command implements a Postfix-compatible logging inter- 18 face for use in, for example, shell scripts. 19 20 By default, <a href="postlog.1.html"><b>postlog</b>(1)</a> logs the <i>text</i> given on the command line as one 21 record. If no <i>text</i> is specified on the command line, <a href="postlog.1.html"><b>postlog</b>(1)</a> reads 22 from standard input and logs each input line as one record. 23 24 Logging is sent to <b>syslogd</b>(8) or <a href="postlogd.8.html"><b>postlogd</b>(8)</a>, and to the standard error 25 stream (with Postfix < 3.8, <a href="postlog.1.html"><b>postlog</b>(1)</a> writes to the standard error 26 stream only if that stream is connected to a terminal). 27 28 The following options are implemented: 29 30 <b>-c</b> <i>config</i><b>_</b><i>dir</i> 31 Read the <a href="postconf.5.html"><b>main.cf</b></a> configuration file in the named directory 32 instead of the default configuration directory. 33 34 <b>-i</b> (obsolete) 35 Include the process ID in the logging tag. This flag is ignored 36 as of Postfix 3.4, where the PID is always included. 37 38 <b>-p</b> <i>priority</i> (default: <b>info</b>) 39 Specifies the logging severity: <b>info</b>, <b>warn</b>, <b>error</b>, <b>fatal</b>, or 40 <b>panic</b>. With Postfix 3.1 and later, the program will pause for 1 41 second after reporting a <b>fatal</b> or <b>panic</b> condition, just like 42 other Postfix programs. 43 44 <b>-t</b> <i>tag</i> Specifies the logging tag, that is, the identifying name that 45 appears at the beginning of each logging record. A default tag 46 is used when none is specified. 47 48 <b>-v</b> Enable verbose logging for debugging purposes. Multiple <b>-v</b> 49 options make the software increasingly verbose. 50 51<b><a name="security">SECURITY</a></b> 52 The <a href="postlog.1.html"><b>postlog</b>(1)</a> command is designed to run with set-groupid privileges, 53 so that it can connect to the <a href="postlogd.8.html"><b>postlogd</b>(8)</a> daemon process (Postfix 3.7 54 and later; earlier implementations of this command must not have 55 set-groupid or set-userid permissions). 56 57<b><a name="environment">ENVIRONMENT</a></b> 58 MAIL_CONFIG 59 Directory with the <a href="postconf.5.html"><b>main.cf</b></a> file. 60 61<b><a name="configuration_parameters">CONFIGURATION PARAMETERS</a></b> 62 The following <a href="postconf.5.html"><b>main.cf</b></a> parameters are especially relevant to this pro- 63 gram. 64 65 The text below provides only a parameter summary. See <a href="postconf.5.html"><b>postconf</b>(5)</a> for 66 more details including examples. 67 68 <b><a href="postconf.5.html#config_directory">config_directory</a> (see 'postconf -d' output)</b> 69 The default location of the Postfix <a href="postconf.5.html">main.cf</a> and <a href="master.5.html">master.cf</a> con- 70 figuration files. 71 72 <b><a href="postconf.5.html#import_environment">import_environment</a> (see 'postconf -d' output)</b> 73 The list of environment variables that a privileged Postfix 74 process will import from a non-Postfix parent process, or 75 name=value environment overrides. 76 77 <b><a href="postconf.5.html#syslog_facility">syslog_facility</a> (mail)</b> 78 The syslog facility of Postfix logging. 79 80 <b><a href="postconf.5.html#syslog_name">syslog_name</a> (see 'postconf -d' output)</b> 81 A prefix that is prepended to the process name in syslog 82 records, so that, for example, "smtpd" becomes "prefix/smtpd". 83 84 Available in Postfix 3.4 and later: 85 86 <b><a href="postconf.5.html#maillog_file">maillog_file</a> (empty)</b> 87 The name of an optional logfile that is written by the Postfix 88 <a href="postlogd.8.html"><b>postlogd</b>(8)</a> service. 89 90 <b><a href="postconf.5.html#postlog_service_name">postlog_service_name</a> (postlog)</b> 91 The name of the <a href="postlogd.8.html"><b>postlogd</b>(8)</a> service entry in <a href="master.5.html">master.cf</a>. 92 93 Available in Postfix 3.9 and later: 94 95 <b><a href="postconf.5.html#maillog_file_permissions">maillog_file_permissions</a> (0600)</b> 96 The file access permissions that will be set when the file 97 $<a href="postconf.5.html#maillog_file">maillog_file</a> is created for the first time, or when the file is 98 created after an existing file is rotated. 99 100<b><a name="see_also">SEE ALSO</a></b> 101 <a href="postconf.5.html">postconf(5)</a>, configuration parameters 102 <a href="postlogd.8.html">postlogd(8)</a>, Postfix logging 103 syslogd(8), system logging 104 105<b><a name="license">LICENSE</a></b> 106 The Secure Mailer license must be distributed with this software. 107 108<b><a name="history">HISTORY</a></b> 109 The <a href="postlog.1.html"><b>postlog</b>(1)</a> command was introduced with Postfix version 3.4. 110 111<b>AUTHOR(S)</b> 112 Wietse Venema 113 IBM T.J. Watson Research 114 P.O. Box 704 115 Yorktown Heights, NY 10598, USA 116 117 Wietse Venema 118 Google, Inc. 119 111 8th Avenue 120 New York, NY 10011, USA 121 122 POSTLOG(1) 123</pre> </body> </html> 124