1POSTLOG(1) General Commands Manual POSTLOG(1)
2
3
4
6 postlog - Postfix-compatible logging utility
7
9 postlog [-iv] [-c config_dir] [-p priority] [-t tag] [text...]
10
12 The postlog(1) command implements a Postfix-compatible logging inter‐
13 face for use in, for example, shell scripts.
14
15 By default, postlog(1) logs the text given on the command line as one
16 record. If no text is specified on the command line, postlog(1) reads
17 from standard input and logs each input line as one record.
18
19 By default, logging is sent to syslogd(8) or postlogd(8); when the
20 standard error stream is connected to a terminal, logging is sent there
21 as well.
22
23 The following options are implemented:
24
25 -c config_dir
26 Read the main.cf configuration file in the named directory
27 instead of the default configuration directory.
28
29 -i (obsolete)
30 Include the process ID in the logging tag. This flag is ignored
31 as of Postfix 3.4, where the PID is always included.
32
33 -p priority (default: info)
34 Specifies the logging severity: info, warn, error, fatal, or
35 panic. With Postfix 3.1 and later, the program will pause for 1
36 second after reporting a fatal or panic condition, just like
37 other Postfix programs.
38
39 -t tag Specifies the logging tag, that is, the identifying name that
40 appears at the beginning of each logging record. A default tag
41 is used when none is specified.
42
43 -v Enable verbose logging for debugging purposes. Multiple -v
44 options make the software increasingly verbose.
45
47 MAIL_CONFIG
48 Directory with the main.cf file.
49
51 The following main.cf parameters are especially relevant to this pro‐
52 gram.
53
54 The text below provides only a parameter summary. See postconf(5) for
55 more details including examples.
56
57 config_directory (see 'postconf -d' output)
58 The default location of the Postfix main.cf and master.cf con‐
59 figuration files.
60
61 import_environment (see 'postconf -d' output)
62 The list of environment parameters that a privileged Postfix
63 process will import from a non-Postfix parent process, or
64 name=value environment overrides.
65
66 syslog_facility (mail)
67 The syslog facility of Postfix logging.
68
69 syslog_name (see 'postconf -d' output)
70 A prefix that is prepended to the process name in syslog
71 records, so that, for example, "smtpd" becomes "prefix/smtpd".
72
73 Available in Postfix 3.4 and later:
74
75 maillog_file (empty)
76 The name of an optional logfile that is written by the Postfix
77 postlogd(8) service.
78
79 postlog_service_name (postlog)
80 The name of the postlogd(8) service entry in master.cf.
81
83 postconf(5), configuration parameters
84 postlogd(8), Postfix logging
85 syslogd(8), system logging
86
88 The Secure Mailer license must be distributed with this software.
89
91 Wietse Venema
92 IBM T.J. Watson Research
93 P.O. Box 704
94 Yorktown Heights, NY 10598, USA
95
96 Wietse Venema
97 Google, Inc.
98 111 8th Avenue
99 New York, NY 10011, USA
100
101
102
103 POSTLOG(1)