NAME
trivial-rewrite
-
Postfix address rewriting and resolving daemon
SYNOPSIS
ttrriivviiaall--rreewwrriittee [generic Postfix daemon options]
DESCRIPTION
The ttrriivviiaall--rreewwrriittee(8) daemon processes three types of client
service requests:
-
rreewwrriittee _c_o_n_t_e_x_t _a_d_d_r_e_s_s
Rewrite an address to standard form, according to the
-
address rewriting context:
-
llooccaall
Append the domain names specified with $$mmyyoorriiggiinn or
-
$$mmyyddoommaaiinn to incomplete addresses; do sswwaapp__bbaannggppaatthh
and aallllooww__ppeerrcceenntt__hhaacckk processing as described below, and
strip source routed addresses (_@_s_i_t_e_,_@_s_i_t_e_:_u_s_e_r_@_d_o_m_a_i_n)
to _u_s_e_r_@_d_o_m_a_i_n form.
-
rreemmoottee
Append the domain name specified with
-
$$rreemmoottee__hheeaaddeerr__rreewwrriittee__ddoommaaiinn to incomplete
addresses. Otherwise the result is identical to that of
the llooccaall address rewriting context. This prevents
Postfix from appending the local domain to spam from poorly
written remote clients.
-
rreessoollvvee _s_e_n_d_e_r _a_d_d_r_e_s_s
Resolve the address to a (_t_r_a_n_s_p_o_r_t, _n_e_x_t_h_o_p,
-
_r_e_c_i_p_i_e_n_t, _f_l_a_g_s) quadruple. The meaning of
the results is as follows:
-
_t_r_a_n_s_p_o_r_t
The delivery agent to use. This is the first field of an entry
-
in the mmaasstteerr..ccff file.
-
_n_e_x_t_h_o_p
The host to send to and optional delivery method information.
-
-
_r_e_c_i_p_i_e_n_t
The envelope recipient address that is passed on to _n_e_x_t_h_o_p.
-
-
_f_l_a_g_s
The address class, whether the address requires relaying,
-
whether the address has problems, and whether the request failed.
-
vveerriiffyy _s_e_n_d_e_r _a_d_d_r_e_s_s
Resolve the address for address verification purposes.
-
SERVER PROCESS MANAGEMENT
The ttrriivviiaall--rreewwrriittee(8) 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 $$mmaaxx__uussee clients of after $$mmaaxx__iiddllee
seconds of idle time.
STANDARDS
None. The command does not interact with the outside world.
SECURITY
The ttrriivviiaall--rreewwrriittee(8) 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.
DIAGNOSTICS
Problems and transactions are logged to ssyyssllooggdd(8).
CONFIGURATION PARAMETERS
On busy mail systems a long time may pass before a mmaaiinn..ccff
change affecting ttrriivviiaall--rreewwrriittee(8) is picked up. Use the command
"ppoossttffiixx rreellooaadd" to speed up a change.
The text below provides only a parameter summary. See
ppoossttccoonnff(5) for more details including examples.
COMPATIBILITY CONTROLS
-
rreessoollvvee__ddeeqquuootteedd__aaddddrreessss ((yyeess))
Resolve a recipient address safely instead of correctly, by
-
looking inside quotes.
-
rreessoollvvee__nnuullll__ddoommaaiinn ((nnoo))
Resolve an address that ends in the "@" null domain as if the
-
local hostname were specified, instead of rejecting the address as
invalid.
-
rreessoollvvee__nnuummeerriicc__ddoommaaiinn ((nnoo))
Resolve "user@ipaddress" as "user@[ipaddress]", instead of
-
rejecting the address as invalid.
Available with Postfix version 2.5 and later:
-
aallllooww__mmiinn__uusseerr ((nnoo))
Allow a sender or recipient address to have `-' as the first
-
character.
ADDRESS REWRITING CONTROLS
-
mmyyoorriiggiinn (($$mmyyhhoossttnnaammee))
The domain name that locally-posted mail appears to come
-
from, and that locally posted mail is delivered to.
-
aallllooww__ppeerrcceenntt__hhaacckk ((yyeess))
Enable the rewriting of the form "user%domain" to "user@domain".
-
-
aappppeenndd__aatt__mmyyoorriiggiinn ((yyeess))
With locally submitted mail, append the string "@$myorigin" to mail
-
addresses without domain information.
-
aappppeenndd__ddoott__mmyyddoommaaiinn ((yyeess))
With locally submitted mail, append the string ".$mydomain" to
-
addresses that have no ".domain" information.
-
rreecciippiieenntt__ddeelliimmiitteerr ((eemmppttyy))
The separator between user names and address extensions (user+foo).
-
-
sswwaapp__bbaannggppaatthh ((yyeess))
Enable the rewriting of "site!user" into "user@site".
-
Available in Postfix 2.2 and later:
-
rreemmoottee__hheeaaddeerr__rreewwrriittee__ddoommaaiinn ((eemmppttyy))
Don't rewrite message headers from remote clients at all when
-
this parameter is empty; otherwise, rewrite message headers and
append the specified domain name to incomplete addresses.
ROUTING CONTROLS
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.
-
llooccaall__ttrraannssppoorrtt ((llooccaall::$$mmyyhhoossttnnaammee))
The default mail delivery transport and next-hop destination
-
for final delivery to domains listed with mydestination, and for
[ipaddress] destinations that match $inet_interfaces or $proxy_interfaces.
-
vviirrttuuaall__ttrraannssppoorrtt ((vviirrttuuaall))
The default mail delivery transport and next-hop destination for
-
final delivery to domains listed with $virtual_mailbox_domains.
-
rreellaayy__ttrraannssppoorrtt ((rreellaayy))
The default mail delivery transport and next-hop destination for
-
remote delivery to domains listed with $relay_domains.
-
ddeeffaauulltt__ttrraannssppoorrtt ((ssmmttpp))
The default mail delivery transport and next-hop destination for
-
destinations that do not match $mydestination, $inet_interfaces,
$proxy_interfaces, $virtual_alias_domains, $virtual_mailbox_domains,
or $relay_domains.
-
ppaarreenntt__ddoommaaiinn__mmaattcchheess__ssuubbddoommaaiinnss ((sseeee ''ppoossttccoonnff --dd'' oouuttppuutt))
What Postfix features match subdomains of "domain.tld" automatically,
-
instead of requiring an explicit ".domain.tld" pattern.
-
rreellaayyhhoosstt ((eemmppttyy))
The next-hop destination of non-local mail; overrides non-local
-
domains in recipient addresses.
-
ttrraannssppoorrtt__mmaappss ((eemmppttyy))
Optional lookup tables with mappings from recipient address to
-
(message delivery transport, next-hop destination).
Available in Postfix version 2.3 and later:
-
sseennddeerr__ddeeppeennddeenntt__rreellaayyhhoosstt__mmaappss ((eemmppttyy))
A sender-dependent override for the global relayhost parameter
-
setting.
Available in Postfix version 2.5 and later:
-
eemmppttyy__aaddddrreessss__rreellaayyhhoosstt__mmaappss__llooookkuupp__kkeeyy ((<<>>))
The sender_dependent_relayhost_maps search string that will be
-
used instead of the null sender address.
Available in Postfix version 2.7 and later:
-
eemmppttyy__aaddddrreessss__ddeeffaauulltt__ttrraannssppoorrtt__mmaappss__llooookkuupp__kkeeyy ((<<>>))
The sender_dependent_default_transport_maps search string that
-
will be used instead of the null sender address.
-
sseennddeerr__ddeeppeennddeenntt__ddeeffaauulltt__ttrraannssppoorrtt__mmaappss ((eemmppttyy))
A sender-dependent override for the global default_transport
-
parameter setting.
ADDRESS VERIFICATION CONTROLS
Postfix version 2.1 introduces sender and recipient address verification.
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 the following:
-
aaddddrreessss__vveerriiffyy__llooccaall__ttrraannssppoorrtt (($$llooccaall__ttrraannssppoorrtt))
Overrides the local_transport parameter setting for address
-
verification probes.
-
aaddddrreessss__vveerriiffyy__vviirrttuuaall__ttrraannssppoorrtt (($$vviirrttuuaall__ttrraannssppoorrtt))
Overrides the virtual_transport parameter setting for address
-
verification probes.
-
aaddddrreessss__vveerriiffyy__rreellaayy__ttrraannssppoorrtt (($$rreellaayy__ttrraannssppoorrtt))
Overrides the relay_transport parameter setting for address
-
verification probes.
-
aaddddrreessss__vveerriiffyy__ddeeffaauulltt__ttrraannssppoorrtt (($$ddeeffaauulltt__ttrraannssppoorrtt))
Overrides the default_transport parameter setting for address
-
verification probes.
-
aaddddrreessss__vveerriiffyy__rreellaayyhhoosstt (($$rreellaayyhhoosstt))
Overrides the relayhost parameter setting for address verification
-
probes.
-
aaddddrreessss__vveerriiffyy__ttrraannssppoorrtt__mmaappss (($$ttrraannssppoorrtt__mmaappss))
Overrides the transport_maps parameter setting for address verification
-
probes.
Available in Postfix version 2.3 and later:
-
aaddddrreessss__vveerriiffyy__sseennddeerr__ddeeppeennddeenntt__rreellaayyhhoosstt__mmaappss (($$sseennddeerr__ddeeppeennddeenntt__rreellaayyhhoosstt__mmaappss))
Overrides the sender_dependent_relayhost_maps parameter setting for address
-
verification probes.
Available in Postfix version 2.7 and later:
-
aaddddrreessss__vveerriiffyy__sseennddeerr__ddeeppeennddeenntt__ddeeffaauulltt__ttrraannssppoorrtt__mmaappss (($$sseennddeerr__ddeeppeennddeenntt__ddeeffaauulltt__ttrraannssppoorrtt__mmaappss))
Overrides the sender_dependent_default_transport_maps parameter
-
setting for address verification probes.
MISCELLANEOUS CONTROLS
-
ccoonnffiigg__ddiirreeccttoorryy ((sseeee ''ppoossttccoonnff --dd'' oouuttppuutt))
The default location of the Postfix main.cf and master.cf
-
configuration files.
-
ddaaeemmoonn__ttiimmeeoouutt ((1188000000ss))
How much time a Postfix daemon process may take to handle a
-
request before it is terminated by a built-in watchdog timer.
-
eemmppttyy__aaddddrreessss__rreecciippiieenntt ((MMAAIILLEERR--DDAAEEMMOONN))
The recipient of mail addressed to the null address.
-
-
iippcc__ttiimmeeoouutt ((33660000ss))
The time limit for sending or receiving information over an internal
-
communication channel.
-
mmaaxx__iiddllee ((110000ss))
The maximum amount of time that an idle Postfix daemon process waits
-
for an incoming connection before terminating voluntarily.
-
mmaaxx__uussee ((110000))
The maximal number of incoming connections that a Postfix daemon
-
process will service before terminating voluntarily.
-
rreellooccaatteedd__mmaappss ((eemmppttyy))
Optional lookup tables with new contact information for users or
-
domains that no longer exist.
-
pprroocceessss__iidd ((rreeaadd--oonnllyy))
The process ID of a Postfix command or daemon process.
-
-
pprroocceessss__nnaammee ((rreeaadd--oonnllyy))
The process name of a Postfix command or daemon process.
-
-
qquueeuuee__ddiirreeccttoorryy ((sseeee ''ppoossttccoonnff --dd'' oouuttppuutt))
The location of the Postfix top-level queue directory.
-
-
sshhooww__uusseerr__uunnkknnoowwnn__ttaabbllee__nnaammee ((yyeess))
Display the name of the recipient table in the "User unknown"
-
responses.
-
ssyysslloogg__ffaacciilliittyy ((mmaaiill))
The syslog facility of Postfix logging.
-
-
ssyysslloogg__nnaammee ((sseeee ''ppoossttccoonnff --dd'' oouuttppuutt))
The mail system name that is prepended to the process name in syslog
-
records, so that "smtpd" becomes, for example, "postfix/smtpd".
Available in Postfix version 2.0 and later:
-
hheellppffuull__wwaarrnniinnggss ((yyeess))
Log warnings about problematic configuration settings, and provide
-
helpful suggestions.
SEE ALSO
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
README FILES
Use "ppoossttccoonnff rreeaaddmmee__ddiirreeccttoorryy" or
"ppoossttccoonnff hhttmmll__ddiirreeccttoorryy" to locate this information.
ADDRESS_CLASS_README, Postfix address classes howto
ADDRESS_VERIFICATION_README, Postfix address verification
LICENSE
The Secure Mailer license must be distributed with this software.
AUTHOR(S)
Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA