NAME
relocated - format of Postfix relocated table
SYNOPSIS
ppoossttmmaapp //eettcc//ppoossttffiixx//rreellooccaatteeddDESCRIPTION
The optional rreellooccaatteedd table provides the information that is used in "user has moved to newlocation" bounce messages. Normally, the rreellooccaatteedd table is specified as a text file that serves as input to the ppoossttmmaapp(1) command. The result, an indexed file in ddbbmm or ddbb format, is used for fast searching by the mail system. Execute the command ppoossttmmaapp //eettcc//ppoossttffiixx//rreellooccaatteedd in order to rebuild theindexed file after changing the relocated table.
When the table is provided via other means such as NIS, LDAP or SQL, the same lookups are done as for ordinary indexed files.Alternatively, the table can be provided as a regular-expression map
where patterns are given as regular expressions, or lookups can bedirected to TCP-based server. In that case, the lookups are done in a
slightly different way as described below under "REGULAR EXPRESSIONTABLES" and "TCP-BASED TABLES".
Table lookups are case insensitive. TTAABBLLEE FFOORRMMAATT The input format for the ppoossttmmaapp(1) command is as follows: +o An entry has one of the following form: pattern newlocation Where newlocation specifies contact information such as an email address, or perhaps a street address or telephone number.+o Empty lines and whitespace-only lines are ignored, as are lines
whose first non-whitespace character is a `#'.
+o A logical line starts with non-whitespace text. A line that
starts with whitespace continues a logical line. With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, patterns are tried in the order as listed below: user@domain Matches user@domain. This form has precedence over all other forms.user Matches user@site when site is $mmyyoorriiggiinn, when site is listed in
$mmyyddeessttiinnaattiioonn, or when site is listed in $iinneettiinntteerrffaacceess or
$pprrooxxyyiinntteerrffaacceess.
@domainMatches every address in domain. This form has the lowest prece-
dence. AADDDDRREESSSS EEXXTTEENNSSIIOONN When a mail address localpart contains the optional recipient delimiter (e.g., user+foo@domain), the lookup order becomes: user+foo@domain, user@domain, user+foo, user, and @domain. RREEGGUULLAARR EEXXPPRREESSSSIIOONN TTAABBLLEESS This section describes how the table lookups change when the table is given in the form of regular expressions or when lookups are directedto a TCP-based server. For a description of regular expression lookup
table syntax, see rreeggeexxppttaabbllee(5) or ppccrreettaabbllee(5). For a description of the TCP client/server table lookup protocol, see ttccppttaabbllee(5). Each pattern is a regular expression that is applied to the entireaddress being looked up. Thus, user@domain mail addresses are not bro-
ken up into their user and @domain constituent parts, nor is user+foo broken up into user and foo. Patterns are applied in the order as specified in the table, until a pattern is found that matches the search string. Results are the same as with indexed file lookups, with the additionalfeature that parenthesized substrings from the pattern can be interpo-
lated as $$11, $$22 and so on.
TTCCPP-BBAASSEEDD TTAABBLLEESS
This section describes how the table lookups change when lookups aredirected to a TCP-based server. For a description of the TCP
client/server lookup protocol, see ttccppttaabbllee(5). This feature is not available in Postfix version 2.1. Each lookup operation uses the entire address once. Thus, user@domainmail addresses are not broken up into their user and @domain con-
stituent parts, nor is user+foo broken up into user and foo. Results are the same as with indexed file lookups.BUGS
The table format does not understand quoting conventions. CCOONNFFIIGGUURRAATTIIOONN PPAARRAAMMEETTEERRSS The following mmaaiinn..ccff parameters are especially relevant. The text below provides only a parameter summary. See postconf(5) for more details including examples. rreellooccaatteeddmmaappssList of lookup tables for relocated users or sites.
Other parameters of interest: iinneettiinntteerrffaacceess The network interface addresses that this system receives mail on. You need to stop and start Postfix when this parameter changes. mmyyddeessttiinnaattiioonn List of domains that this mail system considers local. mmyyoorriiggiinnThe domain that is appended to locally-posted mail.
pprrooxxyyiinntteerrffaacceess Other interfaces that this machine receives mail on by way of a proxy agent or network address translator.SEE ALSO
trivial-rewrite(8), address resolver
postmap(1), Postfix lookup table manager postconf(5), configuration parameters README FILES Use "ppoossttccoonnff rreeaaddmmeeddiirreeccttoorryy" or "ppoossttccoonnff hhttmmllddiirreeccttoorryy" to locate this information. DATABASEREADME, Postfix lookup table overview ADDRESSREWRITINGREADME, address rewriting guide LLIICCEENNSSEE 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 RELOCATED(5)