TRIVIAL-REWRITE(8) System Manager's Manual TRIVIAL-REWRITE(8)
trivial-rewrite - Postfix address rewriting and resolving daemon
trivial-rewrite [generic Postfix daemon options]
The trivial-rewrite daemon processes three types of client service
Rewrite an address to standard form. The trivial-rewrite daemon
by default appends local domain information to unqualified
addresses, swaps bang paths to domain form, and strips source
routing information. This process is under control of several
configuration parameters (see below).
Resolve an address to a (transport, nexthop, recipient) triple.
The meaning of the results is as follows:
The delivery agent to use. This is the first field of an
entry in the master.cf file.
The host to send to and optional delivery method informa-
The envelope recipient address that is passed on to nex-
verify Resolve an address for address verification purposes.
SERVER PROCESS MANAGEMENT
The trivial-rewrite servers run under control by the Postfix master
server. Each server can handle multiple simultaneous connections.
When all servers are busy while a client connects, the master creates a
new server process, provided that the trivial-rewrite server process
limit is not exceeded. Each trivial-rewrite server terminates after
serving at least $max_use clients of after $max_idle seconds of idle
None. The command does not interact with the outside world.
The trivial-rewrite daemon is not security sensitive. By default, this
daemon does not talk to remote or local users. It can run at a fixed
low privilege in a chrooted environment.
Problems and transactions are logged to syslogd(8).
On busy mail systems a long time may pass before a main.cf change
affecting trivial_rewrite(8) is picked up. Use the command "postfix
reload" to speed up a change.
The text below provides only a parameter summary. See postconf(5) for
more details including examples.
Resolve a recipient address safely instead of correctly, by
looking inside quotes.
Resolve an address that ends in the "@" null domain as if the
local hostname were specified, instead of rejecting the address
ADDRESS REWRITING CONTROLS
The default domain name that locally-posted mail appears to come
from, and that locally posted mail is delivered to.
Enable the rewriting of the form "user%domain" to "user@domain".
Append the string "@$myorigin" to mail addresses without domain
Append the string ".$mydomain" to addresses that have no
The separator between user names and address extensions
Enable the rewriting of "site!user" into "user@site".
The following is applicable to Postfix version 2.0 and later. Earlier
versions do not have support for: virtual_transport, relay_transport,
virtual_alias_domains, virtual_mailbox_domains or proxy_interfaces.
The default mail delivery transport for domains that match
$mydestination, $inet_interfaces or $proxy_interfaces.
The default mail delivery transport for domains that match the
$virtual_mailbox_domains parameter value.
The default mail delivery transport and next-hop information for
domains that match the $relay_domains parameter value.
The default mail delivery transport for domains that do not
match $mydestination, $inet_interfaces, $proxy_interfaces, $vir-
tual_alias_domains, $virtual_mailbox_domains, or $relay_domains.
parent_domain_matches_subdomains (see 'postconf -d' output)
What Postfix features match subdomains of "domain.tld" automati-
cally, instead of requiring an explicit ".domain.tld" pattern.
The default host to send non-local mail to when no entry is
matched in the optional transport(5) table.
Optional lookup tables with mappings from recipient address to
(message delivery transport, next-hop destination).
ADDRESS VERIFICATION CONTROLS
Postfix version 2.1 introduces sender and recipient address verifica-
tion. This feature is implemented by sending probe email messages that
are not actually delivered. By default, address verification probes
use the same route as regular mail. To override specific aspects of
message routing for address verification probes, specify one or more of
Overrides the local_transport parameter setting for address ver-
Overrides the virtual_transport parameter setting for address
Overrides the relay_transport parameter setting for address ver-
Overrides the default_transport parameter setting for address
Overrides the relayhost parameter setting for address verifica-
Overrides the transport_maps parameter setting for address veri-
config_directory (see 'postconf -d' output)
The default location of the Postfix main.cf and master.cf con-
How much time a Postfix daemon process may take to handle a
request before it is terminated by a built-in watchdog timer.
The recipient of mail addressed to the null address.
The time limit for sending or receiving information over an
internal communication channel.
The maximum amount of time that an idle Postfix daemon process
waits for the next service request before exiting.
The maximal number of connection requests before a Postfix dae-
mon process terminates.
Optional lookup tables with new contact information for users or
domains that no longer exist.
The process ID of a Postfix command or daemon process.
The process name of a Postfix command or daemon process.
queue_directory (see 'postconf -d' output)
The location of the Postfix top-level queue directory.
Display the name of the recipient table in the "User unknown"
The syslog facility of Postfix logging.
The mail system name that is prepended to the process name in
syslog records, so that "smtpd" becomes, for example, "post-
Available in Postfix version 2.0 and later:
Log warnings about problematic configuration settings, and pro-
vide helpful suggestions.
postconf(5), configuration parameters
transport(5), transport table format
relocated(5), format of the "user has moved" table
master(8), process manager
syslogd(8), system logging
Use "postconf readme_directory" or "postconf html_directory" to locate
ADDRESS_CLASS_README, Postfix address classes howto
ADDRESS_VERIFICATION_README, Postfix address verification
The Secure Mailer license must be distributed with this software.
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA