{
    "mode": "man",
    "parameter": "postlog",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/postlog/1/json",
    "generated": "2026-10-22T07:06:13Z",
    "synopsis": "postlog [-iv] [-c configdir] [-p priority] [-t tag] [text...]",
    "sections": {
        "NAME": {
            "content": "postlog - Postfix-compatible logging utility\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "postlog [-iv] [-c configdir] [-p priority] [-t tag] [text...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  postlog(1) command implements a Postfix-compatible logging interface for use in, for ex‐\nample, shell scripts.\n\nBy default, postlog(1) logs the text given on the command line as one record. If no  text  is\nspecified  on the command line, postlog(1) reads from standard input and logs each input line\nas one record.\n\nBy default, logging is sent to syslogd(8) or postlogd(8); when the standard error  stream  is\nconnected to a terminal, logging is sent there as well.\n\nThe following options are implemented:\n",
            "subsections": [
                {
                    "name": "-c _",
                    "content": "Read the main.cf configuration file in the named directory instead of the default con‐\nfiguration directory.\n",
                    "flag": "-c"
                },
                {
                    "name": "-i (obsolete)",
                    "content": "Include  the  process  ID  in the logging tag. This flag is ignored as of Postfix 3.4,\nwhere the PID is always included.\n",
                    "flag": "-i"
                },
                {
                    "name": "-p _",
                    "content": "Specifies the logging severity: info, warn, error, fatal, or panic. With  Postfix  3.1\nand later, the program will pause for 1 second after reporting a fatal or panic condi‐\ntion, just like other Postfix programs.\n",
                    "flag": "-p"
                },
                {
                    "name": "-t _",
                    "content": "of each logging record. A default tag is used when none is specified.\n",
                    "flag": "-t"
                },
                {
                    "name": "-v      -v",
                    "content": "increasingly verbose.\n",
                    "flag": "-v"
                }
            ]
        },
        "SECURITY": {
            "content": "The postlog(1) command is designed to run with set-groupid privileges, so that it can connect\nto the postlogd(8) daemon process (Postfix 3.7 and later;  earlier  implementations  of  this\ncommand must not have set-groupid or set-userid permissions).\n",
            "subsections": []
        },
        "ENVIRONMENT": {
            "content": "MAILCONFIG\nDirectory with the main.cf file.\n",
            "subsections": []
        },
        "CONFIGURATION PARAMETERS": {
            "content": "The following main.cf parameters are especially relevant to this program.\n\nThe  text below provides only a parameter summary. See postconf(5) for more details including\nexamples.\n",
            "subsections": [
                {
                    "name": "config_directory (see 'postconf -d' output)",
                    "content": "The default location of the Postfix main.cf and master.cf configuration files.\n"
                },
                {
                    "name": "import_environment (see 'postconf -d' output)",
                    "content": "The list of environment variables that a privileged Postfix process will import from a\nnon-Postfix parent process, or name=value environment overrides.\n"
                },
                {
                    "name": "syslog_facility (mail)",
                    "content": "The syslog facility of Postfix logging.\n"
                },
                {
                    "name": "syslog_name (see 'postconf -d' output)",
                    "content": "A prefix that is prepended to the process name in syslog records, so that,  for  exam‐\nple, \"smtpd\" becomes \"prefix/smtpd\".\n\nAvailable in Postfix 3.4 and later:\n"
                },
                {
                    "name": "maillog_file (empty)",
                    "content": "The name of an optional logfile that is written by the Postfix postlogd(8) service.\n"
                },
                {
                    "name": "postlog_service_name (postlog)",
                    "content": "The name of the postlogd(8) service entry in master.cf.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "postconf(5), configuration parameters\npostlogd(8), Postfix logging\nsyslogd(8), system logging\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "The Secure Mailer license must be distributed with this software.\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "The postlog(1) command was introduced with Postfix version 3.4.\n\nAUTHOR(S)\nWietse Venema\nIBM T.J. Watson Research\nP.O. Box 704\nYorktown Heights, NY 10598, USA\n\nWietse Venema\nGoogle, Inc.\n111 8th Avenue\nNew York, NY 10011, USA\n\nPOSTLOG(1)",
            "subsections": []
        }
    },
    "summary": "postlog - Postfix-compatible logging utility",
    "flags": [
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": "Read the main.cf configuration file in the named directory instead of the default con‐ figuration directory."
        },
        {
            "flag": "-i",
            "long": null,
            "arg": null,
            "description": "Include the process ID in the logging tag. This flag is ignored as of Postfix 3.4, where the PID is always included."
        },
        {
            "flag": "-p",
            "long": null,
            "arg": null,
            "description": "Specifies the logging severity: info, warn, error, fatal, or panic. With Postfix 3.1 and later, the program will pause for 1 second after reporting a fatal or panic condi‐ tion, just like other Postfix programs."
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": "of each logging record. A default tag is used when none is specified."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": "increasingly verbose."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "postconf",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/postconf/5/json"
        },
        {
            "name": "postlogd",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/postlogd/8/json"
        },
        {
            "name": "syslogd",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/syslogd/8/json"
        }
    ]
}