{
    "content": [
        {
            "type": "text",
            "text": "# TRIVIAL-REWRITE (man)\n\n## NAME\n\ntrivial-rewrite - Postfix address rewriting and resolving daemon\n\n## SYNOPSIS\n\ntrivial-rewrite [generic Postfix daemon options]\n\n## DESCRIPTION\n\nThe trivial-rewrite(8) daemon processes three types of client service requests:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SERVER PROCESS MANAGEMENT**\n- **STANDARDS**\n- **SECURITY**\n- **DIAGNOSTICS**\n- **CONFIGURATION PARAMETERS**\n- **COMPATIBILITY CONTROLS** (4 subsections)\n- **ADDRESS REWRITING CONTROLS** (7 subsections)\n- **ROUTING CONTROLS** (11 subsections)\n- **ADDRESS VERIFICATION CONTROLS** (9 subsections)\n- **MISCELLANEOUS CONTROLS** (15 subsections)\n- **SEE ALSO**\n- **README FILES**\n- **LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "TRIVIAL-REWRITE",
        "section": "",
        "mode": "man",
        "summary": "trivial-rewrite - Postfix address rewriting and resolving daemon",
        "synopsis": "trivial-rewrite [generic Postfix daemon options]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "postconf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/postconf/5/json"
            },
            {
                "name": "transport",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/transport/5/json"
            },
            {
                "name": "relocated",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/relocated/5/json"
            },
            {
                "name": "master",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/master/8/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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 35,
                "subsections": []
            },
            {
                "name": "SERVER PROCESS MANAGEMENT",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "STANDARDS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SECURITY",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "CONFIGURATION PARAMETERS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY CONTROLS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "resolve_dequoted_address (yes)",
                        "lines": 4
                    },
                    {
                        "name": "resolve_null_domain (no)",
                        "lines": 5
                    },
                    {
                        "name": "resolve_numeric_domain (no)",
                        "lines": 5
                    },
                    {
                        "name": "allow_min_user (no)",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "ADDRESS REWRITING CONTROLS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "myorigin ($myhostname)",
                        "lines": 3
                    },
                    {
                        "name": "allow_percent_hack (yes)",
                        "lines": 2
                    },
                    {
                        "name": "append_at_myorigin (yes)",
                        "lines": 3
                    },
                    {
                        "name": "append_dot_mydomain (Postfix >= 3.0: no, Postfix < 3.0: yes)",
                        "lines": 3
                    },
                    {
                        "name": "recipient_delimiter (empty)",
                        "lines": 3
                    },
                    {
                        "name": "swap_bangpath (yes)",
                        "lines": 4
                    },
                    {
                        "name": "remote_header_rewrite_domain (empty)",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "ROUTING CONTROLS",
                "lines": 4,
                "subsections": [
                    {
                        "name": "local_transport (local:$myhostname)",
                        "lines": 4
                    },
                    {
                        "name": "virtual_transport (virtual)",
                        "lines": 3
                    },
                    {
                        "name": "relay_transport (relay)",
                        "lines": 3
                    },
                    {
                        "name": "default_transport (smtp)",
                        "lines": 4
                    },
                    {
                        "name": "parent_domain_matches_subdomains (see 'postconf -d' output)",
                        "lines": 3
                    },
                    {
                        "name": "relayhost (empty)",
                        "lines": 3
                    },
                    {
                        "name": "transport_maps (empty)",
                        "lines": 5
                    },
                    {
                        "name": "sender_dependent_relayhost_maps (empty)",
                        "lines": 4
                    },
                    {
                        "name": "empty_address_relayhost_maps_lookup_key (<>)",
                        "lines": 5
                    },
                    {
                        "name": "empty_address_default_transport_maps_lookup_key (<>)",
                        "lines": 3
                    },
                    {
                        "name": "sender_dependent_default_transport_maps (empty)",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "ADDRESS VERIFICATION CONTROLS",
                "lines": 5,
                "subsections": [
                    {
                        "name": "address_verify_local_transport ($local_transport)",
                        "lines": 2
                    },
                    {
                        "name": "address_verify_virtual_transport ($virtual_transport)",
                        "lines": 2
                    },
                    {
                        "name": "address_verify_relay_transport ($relay_transport)",
                        "lines": 2
                    },
                    {
                        "name": "address_verify_default_transport ($default_transport)",
                        "lines": 2
                    },
                    {
                        "name": "address_verify_relayhost ($relayhost)",
                        "lines": 2
                    },
                    {
                        "name": "address_verify_transport_maps ($transport_maps)",
                        "lines": 4
                    },
                    {
                        "name": "address_verify_sender_dependent_relayhost_maps ($sender_dependent_relayhost_maps)",
                        "lines": 5
                    },
                    {
                        "name": "address_verify_sender_dependent_default_transport_maps ($sender_dependent_default_trans‐",
                        "lines": 1
                    },
                    {
                        "name": "port_maps)",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "MISCELLANEOUS CONTROLS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "config_directory (see 'postconf -d' output)",
                        "lines": 2
                    },
                    {
                        "name": "daemon_timeout (18000s)",
                        "lines": 3
                    },
                    {
                        "name": "empty_address_recipient (MAILER-DAEMON)",
                        "lines": 2
                    },
                    {
                        "name": "ipc_timeout (3600s)",
                        "lines": 3
                    },
                    {
                        "name": "max_idle (100s)",
                        "lines": 3
                    },
                    {
                        "name": "max_use (100)",
                        "lines": 3
                    },
                    {
                        "name": "relocated_maps (empty)",
                        "lines": 3
                    },
                    {
                        "name": "process_id (read-only)",
                        "lines": 2
                    },
                    {
                        "name": "process_name (read-only)",
                        "lines": 2
                    },
                    {
                        "name": "queue_directory (see 'postconf -d' output)",
                        "lines": 2
                    },
                    {
                        "name": "show_user_unknown_table_name (yes)",
                        "lines": 2
                    },
                    {
                        "name": "syslog_facility (mail)",
                        "lines": 2
                    },
                    {
                        "name": "syslog_name (see 'postconf -d' output)",
                        "lines": 5
                    },
                    {
                        "name": "helpful_warnings (yes)",
                        "lines": 5
                    },
                    {
                        "name": "service_name (read-only)",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "README FILES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 14,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "trivial-rewrite - Postfix address rewriting and resolving daemon\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "trivial-rewrite [generic Postfix daemon options]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The trivial-rewrite(8) daemon processes three types of client service requests:\n\nrewrite context address\nRewrite an address to standard form, according to the address rewriting context:\n\nlocal  Append the domain names specified with $myorigin or $mydomain to incomplete ad‐\ndresses; do swapbangpath and allowpercenthack processing as described below,\nand  strip  source  routed  addresses  (@site,@site:user@domain) to user@domain\nform.\n\nremote Append the domain name specified with $remoteheaderrewritedomain  to  incom‐\nplete addresses. Otherwise the result is identical to that of the local address\nrewriting  context.  This  prevents  Postfix from appending the local domain to\nspam from poorly written remote clients.\n\nresolve sender address\nResolve the address to a (transport, nexthop, recipient, flags) quadruple. The meaning\nof the results is as follows:\n\ntransport\nThe delivery agent to use. This is the first field of an entry in the master.cf\nfile.\n\nnexthop\nThe host to send to and optional delivery method information.\n\nrecipient\nThe envelope recipient address that is passed on to nexthop.\n\nflags  The address class, whether the address requires relaying, whether  the  address\nhas problems, and whether the request failed.\n\nverify sender address\nResolve the address for address verification purposes.\n",
                "subsections": []
            },
            "SERVER PROCESS MANAGEMENT": {
                "content": "The  trivial-rewrite(8)  servers  run  under  control  by the Postfix master(8) server.  Each\nserver can handle multiple simultaneous connections.  When  all  servers  are  busy  while  a\nclient  connects,  the master creates a new server process, provided that the trivial-rewrite\nserver process limit is not exceeded.  Each trivial-rewrite server terminates  after  serving\nat least $maxuse clients of after $maxidle seconds of idle time.\n",
                "subsections": []
            },
            "STANDARDS": {
                "content": "None. The command does not interact with the outside world.\n",
                "subsections": []
            },
            "SECURITY": {
                "content": "The  trivial-rewrite(8)  daemon  is not security sensitive.  By default, this daemon does not\ntalk to remote or local users.  It can run at a fixed low privilege in  a  chrooted  environ‐\nment.\n",
                "subsections": []
            },
            "DIAGNOSTICS": {
                "content": "Problems and transactions are logged to syslogd(8) or postlogd(8).\n",
                "subsections": []
            },
            "CONFIGURATION PARAMETERS": {
                "content": "On  busy  mail  systems  a  long  time  may  pass  before  a  main.cf  change affecting triv‐\nial-rewrite(8) is picked up. Use the command \"postfix reload\" to speed up a change.\n\nThe text below provides only a parameter summary. See postconf(5) for more details  including\nexamples.\n",
                "subsections": []
            },
            "COMPATIBILITY CONTROLS": {
                "content": "",
                "subsections": [
                    {
                        "name": "resolve_dequoted_address (yes)",
                        "content": "Resolve a recipient address safely instead of correctly, by looking inside quotes.\n\nAvailable with Postfix version 2.1 and later:\n"
                    },
                    {
                        "name": "resolve_null_domain (no)",
                        "content": "Resolve  an  address  that  ends  in the \"@\" null domain as if the local hostname were\nspecified, instead of rejecting the address as invalid.\n\nAvailable with Postfix version 2.3 and later:\n"
                    },
                    {
                        "name": "resolve_numeric_domain (no)",
                        "content": "Resolve \"user@ipaddress\" as \"user@[ipaddress]\", instead of rejecting  the  address  as\ninvalid.\n\nAvailable with Postfix version 2.5 and later:\n"
                    },
                    {
                        "name": "allow_min_user (no)",
                        "content": "Allow a sender or recipient address to have `-' as the first character.\n"
                    }
                ]
            },
            "ADDRESS REWRITING CONTROLS": {
                "content": "",
                "subsections": [
                    {
                        "name": "myorigin ($myhostname)",
                        "content": "The domain name that locally-posted mail appears to come from, and that locally posted\nmail is delivered to.\n"
                    },
                    {
                        "name": "allow_percent_hack (yes)",
                        "content": "Enable the rewriting of the form \"user%domain\" to \"user@domain\".\n"
                    },
                    {
                        "name": "append_at_myorigin (yes)",
                        "content": "With  locally submitted mail, append the string \"@$myorigin\" to mail addresses without\ndomain information.\n"
                    },
                    {
                        "name": "append_dot_mydomain (Postfix >= 3.0: no, Postfix < 3.0: yes)",
                        "content": "With locally submitted mail, append the string \".$mydomain\" to addresses that have  no\n\".domain\" information.\n"
                    },
                    {
                        "name": "recipient_delimiter (empty)",
                        "content": "The  set  of  characters that can separate an email address localpart, user name, or a\n.forward file name from its extension.\n"
                    },
                    {
                        "name": "swap_bangpath (yes)",
                        "content": "Enable the rewriting of \"site!user\" into \"user@site\".\n\nAvailable in Postfix 2.2 and later:\n"
                    },
                    {
                        "name": "remote_header_rewrite_domain (empty)",
                        "content": "Don't rewrite message headers from remote clients at all when this parameter is empty;\notherwise, rewrite message headers and append the specified domain name to  incomplete\naddresses.\n"
                    }
                ]
            },
            "ROUTING CONTROLS": {
                "content": "The  following  is applicable to Postfix version 2.0 and later.  Earlier versions do not have\nsupport for: virtualtransport, relaytransport,  virtualaliasdomains,  virtualmailboxdo‐\nmains or proxyinterfaces.\n",
                "subsections": [
                    {
                        "name": "local_transport (local:$myhostname)",
                        "content": "The default mail delivery transport and next-hop destination for final delivery to do‐\nmains listed with mydestination, and for [ipaddress] destinations that match $inetin‐\nterfaces or $proxyinterfaces.\n"
                    },
                    {
                        "name": "virtual_transport (virtual)",
                        "content": "The default mail delivery transport and next-hop destination for final delivery to do‐\nmains listed with $virtualmailboxdomains.\n"
                    },
                    {
                        "name": "relay_transport (relay)",
                        "content": "The  default  mail  delivery transport and next-hop destination for remote delivery to\ndomains listed with $relaydomains.\n"
                    },
                    {
                        "name": "default_transport (smtp)",
                        "content": "The default mail delivery transport and next-hop destination for destinations that  do\nnot match $mydestination, $inetinterfaces, $proxyinterfaces, $virtualaliasdomains,\n$virtualmailboxdomains, or $relaydomains.\n"
                    },
                    {
                        "name": "parent_domain_matches_subdomains (see 'postconf -d' output)",
                        "content": "A  list of Postfix features where the pattern \"example.com\" also matches subdomains of\nexample.com, instead of requiring an explicit \".example.com\" pattern.\n"
                    },
                    {
                        "name": "relayhost (empty)",
                        "content": "The next-hop destination(s) for non-local mail; overrides non-local domains in recipi‐\nent addresses.\n"
                    },
                    {
                        "name": "transport_maps (empty)",
                        "content": "Optional lookup tables with mappings  from  recipient  address  to  (message  delivery\ntransport, next-hop destination).\n\nAvailable in Postfix version 2.3 and later:\n"
                    },
                    {
                        "name": "sender_dependent_relayhost_maps (empty)",
                        "content": "A sender-dependent override for the global relayhost parameter setting.\n\nAvailable in Postfix version 2.5 and later:\n"
                    },
                    {
                        "name": "empty_address_relayhost_maps_lookup_key (<>)",
                        "content": "The  senderdependentrelayhostmaps  search  string  that will be used instead of the\nnull sender address.\n\nAvailable in Postfix version 2.7 and later:\n"
                    },
                    {
                        "name": "empty_address_default_transport_maps_lookup_key (<>)",
                        "content": "The senderdependentdefaulttransportmaps search string that will be used instead of\nthe null sender address.\n"
                    },
                    {
                        "name": "sender_dependent_default_transport_maps (empty)",
                        "content": "A sender-dependent override for the global defaulttransport parameter setting.\n"
                    }
                ]
            },
            "ADDRESS VERIFICATION CONTROLS": {
                "content": "Postfix version 2.1 introduces sender and recipient address verification.   This  feature  is\nimplemented by sending probe email messages that are not actually delivered.  By default, ad‐\ndress verification probes use the same route as regular mail. To override specific aspects of\nmessage routing for address verification probes, specify one or more of the following:\n",
                "subsections": [
                    {
                        "name": "address_verify_local_transport ($local_transport)",
                        "content": "Overrides the localtransport parameter setting for address verification probes.\n"
                    },
                    {
                        "name": "address_verify_virtual_transport ($virtual_transport)",
                        "content": "Overrides the virtualtransport parameter setting for address verification probes.\n"
                    },
                    {
                        "name": "address_verify_relay_transport ($relay_transport)",
                        "content": "Overrides the relaytransport parameter setting for address verification probes.\n"
                    },
                    {
                        "name": "address_verify_default_transport ($default_transport)",
                        "content": "Overrides the defaulttransport parameter setting for address verification probes.\n"
                    },
                    {
                        "name": "address_verify_relayhost ($relayhost)",
                        "content": "Overrides the relayhost parameter setting for address verification probes.\n"
                    },
                    {
                        "name": "address_verify_transport_maps ($transport_maps)",
                        "content": "Overrides the transportmaps parameter setting for address verification probes.\n\nAvailable in Postfix version 2.3 and later:\n"
                    },
                    {
                        "name": "address_verify_sender_dependent_relayhost_maps ($sender_dependent_relayhost_maps)",
                        "content": "Overrides  the senderdependentrelayhostmaps parameter setting for address verifica‐\ntion probes.\n\nAvailable in Postfix version 2.7 and later:\n"
                    },
                    {
                        "name": "address_verify_sender_dependent_default_transport_maps ($sender_dependent_default_trans‐",
                        "content": ""
                    },
                    {
                        "name": "port_maps)",
                        "content": "Overrides the senderdependentdefaulttransportmaps parameter  setting  for  address\nverification probes.\n"
                    }
                ]
            },
            "MISCELLANEOUS CONTROLS": {
                "content": "",
                "subsections": [
                    {
                        "name": "config_directory (see 'postconf -d' output)",
                        "content": "The default location of the Postfix main.cf and master.cf configuration files.\n"
                    },
                    {
                        "name": "daemon_timeout (18000s)",
                        "content": "How  much time a Postfix daemon process may take to handle a request before it is ter‐\nminated by a built-in watchdog timer.\n"
                    },
                    {
                        "name": "empty_address_recipient (MAILER-DAEMON)",
                        "content": "The recipient of mail addressed to the null address.\n"
                    },
                    {
                        "name": "ipc_timeout (3600s)",
                        "content": "The time limit for sending or receiving information  over  an  internal  communication\nchannel.\n"
                    },
                    {
                        "name": "max_idle (100s)",
                        "content": "The  maximum  amount of time that an idle Postfix daemon process waits for an incoming\nconnection before terminating voluntarily.\n"
                    },
                    {
                        "name": "max_use (100)",
                        "content": "The maximal number of incoming connections that a Postfix daemon process will  service\nbefore terminating voluntarily.\n"
                    },
                    {
                        "name": "relocated_maps (empty)",
                        "content": "Optional  lookup  tables  with  new  contact  information for users or domains that no\nlonger exist.\n"
                    },
                    {
                        "name": "process_id (read-only)",
                        "content": "The process ID of a Postfix command or daemon process.\n"
                    },
                    {
                        "name": "process_name (read-only)",
                        "content": "The process name of a Postfix command or daemon process.\n"
                    },
                    {
                        "name": "queue_directory (see 'postconf -d' output)",
                        "content": "The location of the Postfix top-level queue directory.\n"
                    },
                    {
                        "name": "show_user_unknown_table_name (yes)",
                        "content": "Display the name of the recipient table in the \"User unknown\" responses.\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 version 2.0 and later:\n"
                    },
                    {
                        "name": "helpful_warnings (yes)",
                        "content": "Log  warnings  about  problematic  configuration settings, and provide helpful sugges‐\ntions.\n\nAvailable in Postfix 3.3 and later:\n"
                    },
                    {
                        "name": "service_name (read-only)",
                        "content": "The master.cf service name of a Postfix daemon process.\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "postconf(5), configuration parameters\ntransport(5), transport table format\nrelocated(5), format of the \"user has moved\" table\nmaster(8), process manager\npostlogd(8), Postfix logging\nsyslogd(8), system logging\n",
                "subsections": []
            },
            "README FILES": {
                "content": "Use \"postconf readmedirectory\" or \"postconf htmldirectory\" to locate this information.\nADDRESSCLASSREADME, Postfix address classes howto\nADDRESSVERIFICATIONREADME, Postfix address verification\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "The Secure Mailer license must be distributed with this software.\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\nTRIVIAL-REWRITE(8postfix)",
                "subsections": []
            }
        }
    }
}