{
    "content": [
        {
            "type": "text",
            "text": "# trivial-rewrite(8) (man)\n\n**Summary:** trivial-rewrite - Postfix address rewriting and resolving daemon\n\n**Synopsis:** trivial-rewrite [generic Postfix daemon options]\n\n## See Also\n\n- postconf(5)\n- transport(5)\n- relocated(5)\n- master(8)\n- postlogd(8)\n- syslogd(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (35 lines)\n- **SERVER PROCESS MANAGEMENT** (6 lines)\n- **STANDARDS** (2 lines)\n- **SECURITY** (4 lines)\n- **DIAGNOSTICS** (2 lines)\n- **CONFIGURATION PARAMETERS** (6 lines)\n- **COMPATIBILITY CONTROLS** (20 lines)\n- **ADDRESS REWRITING CONTROLS** (1 lines) — 1 subsections\n  - myorigin ($myhostname) (28 lines)\n- **ROUTING CONTROLS** (26 lines) — 1 subsections\n  - relayhost (empty) (27 lines)\n- **ADDRESS VERIFICATION CONTROLS** (36 lines)\n- **MISCELLANEOUS CONTROLS** (56 lines)\n- **SEE ALSO** (7 lines)\n- **README FILES** (4 lines)\n- **LICENSE** (16 lines)\n\n## Full Content\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\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\n### SERVER PROCESS MANAGEMENT\n\nThe trivial-rewrite(8) servers run under control by the Postfix master server.   Each  server\ncan  handle multiple simultaneous connections.  When all servers are busy while a client con‐\nnects, the master creates a new server process,  provided  that  the  trivial-rewrite  server\nprocess limit is not exceeded.  Each trivial-rewrite server terminates after serving at least\n$maxuse clients of after $maxidle seconds of idle time.\n\n### STANDARDS\n\nNone. The command does not interact with the outside world.\n\n### SECURITY\n\nThe 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\n### DIAGNOSTICS\n\nProblems and transactions are logged to syslogd(8) or postlogd(8).\n\n### CONFIGURATION PARAMETERS\n\nOn busy mail systems a long time may pass  before  a  main.cf  change  affecting  trivial-re‐‐\nwrite(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\n### COMPATIBILITY CONTROLS\n\nresolvedequotedaddress (yes)\nResolve a recipient address safely instead of correctly, by looking inside quotes.\n\nAvailable with Postfix version 2.1 and later:\n\nresolvenulldomain (no)\nResolve 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\nresolvenumericdomain (no)\nResolve  \"user@ipaddress\"  as  \"user@[ipaddress]\", instead of rejecting the address as\ninvalid.\n\nAvailable with Postfix version 2.5 and later:\n\nallowminuser (no)\nAllow a sender or recipient address to have `-' as the first character.\n\n### ADDRESS REWRITING CONTROLS\n\n#### myorigin ($myhostname)\n\nThe domain name that locally-posted mail appears to come from, and that locally posted\nmail is delivered to.\n\nallowpercenthack (yes)\nEnable the rewriting of the form \"user%domain\" to \"user@domain\".\n\nappendatmyorigin (yes)\nWith  locally submitted mail, append the string \"@$myorigin\" to mail addresses without\ndomain information.\n\nappenddotmydomain (Postfix >= 3.0: no, Postfix < 3.0: yes)\nWith locally submitted mail, append the string \".$mydomain\" to addresses that have  no\n\".domain\" information.\n\nrecipientdelimiter (empty)\nThe  set  of  characters  that  can  separate a user name from its extension (example:\nuser+foo), or a .forward file name from its extension (example: .forward+foo).\n\nswapbangpath (yes)\nEnable the rewriting of \"site!user\" into \"user@site\".\n\nAvailable in Postfix 2.2 and later:\n\nremoteheaderrewritedomain (empty)\nDon'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\n### ROUTING CONTROLS\n\nThe 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\nlocaltransport (local:$myhostname)\nThe 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\nvirtualtransport (virtual)\nThe default mail delivery transport and next-hop destination for final delivery to do‐\nmains listed with $virtualmailboxdomains.\n\nrelaytransport (relay)\nThe  default  mail  delivery transport and next-hop destination for remote delivery to\ndomains listed with $relaydomains.\n\ndefaulttransport (smtp)\nThe default mail delivery transport and next-hop destination for destinations that  do\nnot match $mydestination, $inetinterfaces, $proxyinterfaces, $virtualaliasdomains,\n$virtualmailboxdomains, or $relaydomains.\n\nparentdomainmatchessubdomains (see 'postconf -d' output)\nA list of Postfix features where the pattern \"example.com\" also matches subdomains  of\nexample.com, instead of requiring an explicit \".example.com\" pattern.\n\n#### relayhost (empty)\n\nThe next-hop destination(s) for non-local mail; overrides non-local domains in recipi‐\nent addresses.\n\ntransportmaps (empty)\nOptional lookup tables with mappings  from  recipient  address  to  (message  delivery\ntransport, next-hop destination).\n\nAvailable in Postfix version 2.3 and later:\n\nsenderdependentrelayhostmaps (empty)\nA sender-dependent override for the global relayhost parameter setting.\n\nAvailable in Postfix version 2.5 and later:\n\nemptyaddressrelayhostmapslookupkey (<>)\nThe  senderdependentrelayhostmaps  search  string  that will be used instead of the\nnull sender address.\n\nAvailable in Postfix version 2.7 and later:\n\nemptyaddressdefaulttransportmapslookupkey (<>)\nThe senderdependentdefaulttransportmaps search string that will be used instead of\nthe null sender address.\n\nsenderdependentdefaulttransportmaps (empty)\nA sender-dependent override for the global defaulttransport parameter setting.\n\n### ADDRESS VERIFICATION CONTROLS\n\nPostfix  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\naddressverifylocaltransport ($localtransport)\nOverrides the localtransport parameter setting for address verification probes.\n\naddressverifyvirtualtransport ($virtualtransport)\nOverrides the virtualtransport parameter setting for address verification probes.\n\naddressverifyrelaytransport ($relaytransport)\nOverrides the relaytransport parameter setting for address verification probes.\n\naddressverifydefaulttransport ($defaulttransport)\nOverrides the defaulttransport parameter setting for address verification probes.\n\naddressverifyrelayhost ($relayhost)\nOverrides the relayhost parameter setting for address verification probes.\n\naddressverifytransportmaps ($transportmaps)\nOverrides the transportmaps parameter setting for address verification probes.\n\nAvailable in Postfix version 2.3 and later:\n\naddressverifysenderdependentrelayhostmaps ($senderdependentrelayhostmaps)\nOverrides the senderdependentrelayhostmaps parameter setting for address  verifica‐\ntion probes.\n\nAvailable in Postfix version 2.7 and later:\n\naddressverifysenderdependentdefaulttransportmaps      ($senderdependentdefaulttrans‐‐\nportmaps)\nOverrides the senderdependentdefaulttransportmaps parameter  setting  for  address\nverification probes.\n\n### MISCELLANEOUS CONTROLS\n\nconfigdirectory (see 'postconf -d' output)\nThe default location of the Postfix main.cf and master.cf configuration files.\n\ndaemontimeout (18000s)\nHow  much time a Postfix daemon process may take to handle a request before it is ter‐\nminated by a built-in watchdog timer.\n\nemptyaddressrecipient (MAILER-DAEMON)\nThe recipient of mail addressed to the null address.\n\nipctimeout (3600s)\nThe time limit for sending or receiving information  over  an  internal  communication\nchannel.\n\nmaxidle (100s)\nThe  maximum  amount of time that an idle Postfix daemon process waits for an incoming\nconnection before terminating voluntarily.\n\nmaxuse (100)\nThe maximal number of incoming connections that a Postfix daemon process will  service\nbefore terminating voluntarily.\n\nrelocatedmaps (empty)\nOptional  lookup  tables  with  new  contact  information for users or domains that no\nlonger exist.\n\nprocessid (read-only)\nThe process ID of a Postfix command or daemon process.\n\nprocessname (read-only)\nThe process name of a Postfix command or daemon process.\n\nqueuedirectory (see 'postconf -d' output)\nThe location of the Postfix top-level queue directory.\n\nshowuserunknowntablename (yes)\nDisplay the name of the recipient table in the \"User unknown\" responses.\n\nsyslogfacility (mail)\nThe syslog facility of Postfix logging.\n\nsyslogname (see 'postconf -d' output)\nA 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\nhelpfulwarnings (yes)\nLog  warnings  about  problematic  configuration settings, and provide helpful sugges‐\ntions.\n\nAvailable in Postfix 3.3 and later:\n\nservicename (read-only)\nThe master.cf service name of a Postfix daemon process.\n\n### SEE ALSO\n\npostconf(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\n### README FILES\n\nUse \"postconf readmedirectory\" or \"postconf htmldirectory\" to locate this information.\nADDRESSCLASSREADME, Postfix address classes howto\nADDRESSVERIFICATIONREADME, Postfix address verification\n\n### LICENSE\n\nThe 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\n\n\nTRIVIAL-REWRITE(8postfix)\n\n"
        }
    ],
    "structuredContent": {
        "command": "trivial-rewrite",
        "section": "8",
        "mode": "man",
        "summary": "trivial-rewrite - Postfix address rewriting and resolving daemon",
        "synopsis": "trivial-rewrite [generic Postfix daemon options]",
        "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": 20,
                "subsections": []
            },
            {
                "name": "ADDRESS REWRITING CONTROLS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "myorigin ($myhostname)",
                        "lines": 28
                    }
                ]
            },
            {
                "name": "ROUTING CONTROLS",
                "lines": 26,
                "subsections": [
                    {
                        "name": "relayhost (empty)",
                        "lines": 27
                    }
                ]
            },
            {
                "name": "ADDRESS VERIFICATION CONTROLS",
                "lines": 36,
                "subsections": []
            },
            {
                "name": "MISCELLANEOUS CONTROLS",
                "lines": 56,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "README FILES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 16,
                "subsections": []
            }
        ]
    }
}