1TRIVIAL-REWRITE(8)          System Manager's Manual         TRIVIAL-REWRITE(8)
2
3
4

NAME

6       trivial-rewrite - Postfix address rewriting and resolving daemon
7

SYNOPSIS

9       trivial-rewrite [generic Postfix daemon options]
10

DESCRIPTION

12       The  trivial-rewrite(8)  daemon processes three types of client service
13       requests:
14
15       rewrite context address
16              Rewrite an address to standard form, according  to  the  address
17              rewriting context:
18
19              local  Append  the  domain  names  specified  with  $myorigin or
20                     $mydomain to incomplete addresses; do  swap_bangpath  and
21                     allow_percent_hack  processing  as  described  below, and
22                     strip source routed  addresses  (@site,@site:user@domain)
23                     to user@domain form.
24
25              remote Append  the domain name specified with $remote_header_re‐
26                     write_domain  to  incomplete  addresses.  Otherwise   the
27                     result  is identical to that of the local address rewrit‐
28                     ing context. This prevents  Postfix  from  appending  the
29                     local domain to spam from poorly written remote clients.
30
31       resolve sender address
32              Resolve  the address to a (transport, nexthop, recipient, flags)
33              quadruple. The meaning of the results is as follows:
34
35              transport
36                     The delivery agent to use. This is the first field of  an
37                     entry in the master.cf file.
38
39              nexthop
40                     The host to send to and optional delivery method informa‐
41                     tion.
42
43              recipient
44                     The envelope recipient address that is passed on to  nex‐
45                     thop.
46
47              flags  The address class, whether the address requires relaying,
48                     whether the address has problems, and whether the request
49                     failed.
50
51       verify sender address
52              Resolve the address for address verification purposes.
53

SERVER PROCESS MANAGEMENT

55       The  trivial-rewrite(8) servers run under control by the Postfix master
56       server.  Each server  can  handle  multiple  simultaneous  connections.
57       When all servers are busy while a client connects, the master creates a
58       new server process, provided that the  trivial-rewrite  server  process
59       limit  is  not  exceeded.  Each trivial-rewrite server terminates after
60       serving at least $max_use clients of after $max_idle  seconds  of  idle
61       time.
62

STANDARDS

64       None. The command does not interact with the outside world.
65

SECURITY

67       The  trivial-rewrite(8)  daemon is not security sensitive.  By default,
68       this daemon does not talk to remote or local users.  It can  run  at  a
69       fixed low privilege in a chrooted environment.
70

DIAGNOSTICS

72       Problems and transactions are logged to syslogd(8).
73

CONFIGURATION PARAMETERS

75       On  busy  mail  systems  a  long  time may pass before a main.cf change
76       affecting trivial-rewrite(8) is picked up.  Use  the  command  "postfix
77       reload" to speed up a change.
78
79       The  text  below provides only a parameter summary. See postconf(5) for
80       more details including examples.
81

COMPATIBILITY CONTROLS

83       resolve_dequoted_address (yes)
84              Resolve a recipient address  safely  instead  of  correctly,  by
85              looking inside quotes.
86
87       resolve_null_domain (no)
88              Resolve  an  address  that ends in the "@" null domain as if the
89              local hostname were specified, instead of rejecting the  address
90              as invalid.
91
92       resolve_numeric_domain (no)
93              Resolve   "user@ipaddress"  as  "user@[ipaddress]",  instead  of
94              rejecting the address as invalid.
95

ADDRESS REWRITING CONTROLS

97       myorigin ($myhostname)
98              The domain name that locally-posted mail appears to  come  from,
99              and that locally posted mail is delivered to.
100
101       allow_percent_hack (yes)
102              Enable the rewriting of the form "user%domain" to "user@domain".
103
104       append_at_myorigin (yes)
105              With  locally  submitted mail, append the string "@$myorigin" to
106              mail addresses without domain information.
107
108       append_dot_mydomain (yes)
109              With locally submitted mail, append the string  ".$mydomain"  to
110              addresses that have no ".domain" information.
111
112       recipient_delimiter (empty)
113              The   separator   between  user  names  and  address  extensions
114              (user+foo).
115
116       swap_bangpath (yes)
117              Enable the rewriting of "site!user" into "user@site".
118
119       Available in Postfix 2.2 and later:
120
121       remote_header_rewrite_domain (empty)
122              Don't rewrite message headers from remote clients  at  all  when
123              this  parameter is empty; otherwise, rewrite message headers and
124              append the specified domain name to incomplete addresses.
125

ROUTING CONTROLS

127       The following is applicable to Postfix version 2.0 and later.   Earlier
128       versions  do  not have support for: virtual_transport, relay_transport,
129       virtual_alias_domains, virtual_mailbox_domains or proxy_interfaces.
130
131       local_transport (local:$myhostname)
132              The default mail delivery transport and next-hop destination for
133              final  delivery  to  domains  listed with mydestination, and for
134              [ipaddress]  destinations   that   match   $inet_interfaces   or
135              $proxy_interfaces.
136
137       virtual_transport (virtual)
138              The default mail delivery transport and next-hop destination for
139              final delivery to domains listed with $virtual_mailbox_domains.
140
141       relay_transport (relay)
142              The default mail delivery transport and next-hop destination for
143              remote delivery to domains listed with $relay_domains.
144
145       default_transport (smtp)
146              The default mail delivery transport and next-hop destination for
147              destinations that do not match $mydestination, $inet_interfaces,
148              $proxy_interfaces,     $virtual_alias_domains,    $virtual_mail‐
149              box_domains, or $relay_domains.
150
151       parent_domain_matches_subdomains (see 'postconf -d' output)
152              What Postfix features match subdomains of "domain.tld" automati‐
153              cally, instead of requiring an explicit ".domain.tld" pattern.
154
155       relayhost (empty)
156              The  next-hop destination of non-local mail; overrides non-local
157              domains in recipient addresses.
158
159       transport_maps (empty)
160              Optional lookup tables with mappings from recipient  address  to
161              (message delivery transport, next-hop destination).
162
163       Available in Postfix version 2.3 and later:
164
165       sender_dependent_relayhost_maps (empty)
166              A  sender-dependent  override for the global relayhost parameter
167              setting.
168

ADDRESS VERIFICATION CONTROLS

170       Postfix version 2.1 introduces sender and recipient  address  verifica‐
171       tion.  This feature is implemented by sending probe email messages that
172       are not actually delivered.  By default,  address  verification  probes
173       use  the  same  route  as regular mail. To override specific aspects of
174       message routing for address verification probes, specify one or more of
175       the following:
176
177       address_verify_local_transport ($local_transport)
178              Overrides the local_transport parameter setting for address ver‐
179              ification probes.
180
181       address_verify_virtual_transport ($virtual_transport)
182              Overrides the virtual_transport parameter  setting  for  address
183              verification probes.
184
185       address_verify_relay_transport ($relay_transport)
186              Overrides the relay_transport parameter setting for address ver‐
187              ification probes.
188
189       address_verify_default_transport ($default_transport)
190              Overrides the default_transport parameter  setting  for  address
191              verification probes.
192
193       address_verify_relayhost ($relayhost)
194              Overrides  the relayhost parameter setting for address verifica‐
195              tion probes.
196
197       address_verify_transport_maps ($transport_maps)
198              Overrides the transport_maps parameter setting for address veri‐
199              fication probes.
200
201       Available in Postfix version 2.3 and later:
202
203       address_verify_sender_dependent_relayhost_maps (empty)
204              Overrides  the sender_dependent_relayhost_maps parameter setting
205              for address verification probes.
206

MISCELLANEOUS CONTROLS

208       config_directory (see 'postconf -d' output)
209              The default location of the Postfix main.cf and  master.cf  con‐
210              figuration files.
211
212       daemon_timeout (18000s)
213              How  much  time  a  Postfix  daemon process may take to handle a
214              request before it is terminated by a built-in watchdog timer.
215
216       empty_address_recipient (MAILER-DAEMON)
217              The recipient of mail addressed to the null address.
218
219       ipc_timeout (3600s)
220              The time limit for sending  or  receiving  information  over  an
221              internal communication channel.
222
223       max_idle (100s)
224              The  maximum  amount of time that an idle Postfix daemon process
225              waits for an incoming connection before terminating voluntarily.
226
227       max_use (100)
228              The maximal number of incoming connections that a Postfix daemon
229              process will service before terminating voluntarily.
230
231       relocated_maps (empty)
232              Optional lookup tables with new contact information for users or
233              domains that no longer exist.
234
235       process_id (read-only)
236              The process ID of a Postfix command or daemon process.
237
238       process_name (read-only)
239              The process name of a Postfix command or daemon process.
240
241       queue_directory (see 'postconf -d' output)
242              The location of the Postfix top-level queue directory.
243
244       show_user_unknown_table_name (yes)
245              Display the name of the recipient table in  the  "User  unknown"
246              responses.
247
248       syslog_facility (mail)
249              The syslog facility of Postfix logging.
250
251       syslog_name (postfix)
252              The  mail  system  name that is prepended to the process name in
253              syslog records, so that "smtpd"  becomes,  for  example,  "post‐
254              fix/smtpd".
255
256       Available in Postfix version 2.0 and later:
257
258       helpful_warnings (yes)
259              Log  warnings about problematic configuration settings, and pro‐
260              vide helpful suggestions.
261

SEE ALSO

263       postconf(5), configuration parameters
264       transport(5), transport table format
265       relocated(5), format of the "user has moved" table
266       master(8), process manager
267       syslogd(8), system logging
268

README FILES

270       Use "postconf readme_directory" or "postconf html_directory" to  locate
271       this information.
272       ADDRESS_CLASS_README, Postfix address classes howto
273       ADDRESS_VERIFICATION_README, Postfix address verification
274

LICENSE

276       The Secure Mailer license must be distributed with this software.
277

AUTHOR(S)

279       Wietse Venema
280       IBM T.J. Watson Research
281       P.O. Box 704
282       Yorktown Heights, NY 10598, USA
283
284
285
286                                                            TRIVIAL-REWRITE(8)
Impressum