Home | History | Annotate | Line # | Download | only in proto
aliases revision 1.1
      1  1.1  tron #++
      2  1.1  tron # NAME
      3  1.1  tron #	aliases 5
      4  1.1  tron # SUMMARY
      5  1.1  tron #	Postfix local alias database format
      6  1.1  tron # SYNOPSIS
      7  1.1  tron # .fi
      8  1.1  tron #	\fBnewaliases\fR
      9  1.1  tron # DESCRIPTION
     10  1.1  tron #	The \fBaliases\fR(5) table provides a system-wide mechanism to
     11  1.1  tron #	redirect mail for local recipients. The redirections are
     12  1.1  tron #	processed by the Postfix \fBlocal\fR(8) delivery agent.
     13  1.1  tron #
     14  1.1  tron #	Normally, the \fBaliases\fR(5) table is specified as a text file
     15  1.1  tron #	that serves as input to the \fBpostalias\fR(1) command. The
     16  1.1  tron #	result, an indexed file in \fBdbm\fR or \fBdb\fR format, is
     17  1.1  tron #	used for fast lookup by the mail system. Execute the command
     18  1.1  tron #	\fBnewaliases\fR in order to rebuild the indexed file after
     19  1.1  tron #	changing the Postfix alias database.
     20  1.1  tron #
     21  1.1  tron #	The input and output file formats are expected to be compatible
     22  1.1  tron #	with Sendmail version 8, and are expected to be suitable for the
     23  1.1  tron #	use as NIS maps.
     24  1.1  tron #
     25  1.1  tron #	Users can control delivery of their own mail by setting
     26  1.1  tron #	up \fB.forward\fR files in their home directory.
     27  1.1  tron #	Lines in per-user \fB.forward\fR files have the same syntax
     28  1.1  tron #	as the right-hand side of \fBaliases\fR(5) entries.
     29  1.1  tron #
     30  1.1  tron #	The format of the alias database input file is as follows:
     31  1.1  tron # .IP \(bu
     32  1.1  tron #	An alias definition has the form
     33  1.1  tron # .sp
     34  1.1  tron # .nf
     35  1.1  tron #	     \fIname\fR: \fIvalue1\fR, \fIvalue2\fR, \fI...\fR
     36  1.1  tron # .fi
     37  1.1  tron # .IP \(bu
     38  1.1  tron #	Empty lines and whitespace-only lines are ignored, as
     39  1.1  tron #	are lines whose first non-whitespace character is a `#'.
     40  1.1  tron # .IP \(bu
     41  1.1  tron #	A logical line starts with non-whitespace text. A line that
     42  1.1  tron #	starts with whitespace continues a logical line.
     43  1.1  tron # .PP
     44  1.1  tron #	The \fIname\fR is a local address (no domain part).
     45  1.1  tron #	Use double quotes when the name contains any special characters
     46  1.1  tron #	such as whitespace, `#', `:', or `@'. The \fIname\fR is folded to
     47  1.1  tron #	lowercase, in order to make database lookups case insensitive.
     48  1.1  tron # .PP
     49  1.1  tron #	In addition, when an alias exists for \fBowner-\fIname\fR, delivery
     50  1.1  tron #	diagnostics are directed to that address, instead of to the originator
     51  1.1  tron #	of the message.
     52  1.1  tron #	This is typically used to direct delivery errors to the maintainer of
     53  1.1  tron #	a mailing list, who is in a better position to deal with mailing
     54  1.1  tron #	list delivery problems than the originator of the undelivered mail.
     55  1.1  tron # .PP
     56  1.1  tron #	The \fIvalue\fR contains one or more of the following:
     57  1.1  tron # .IP \fIaddress\fR
     58  1.1  tron #	Mail is forwarded to \fIaddress\fR, which is compatible
     59  1.1  tron #	with the RFC 822 standard.
     60  1.1  tron # .IP \fI/file/name\fR
     61  1.1  tron #	Mail is appended to \fI/file/name\fR. See \fBlocal\fR(8)
     62  1.1  tron #	for details of delivery to file.
     63  1.1  tron #	Delivery is not limited to regular files.  For example, to dispose
     64  1.1  tron #	of unwanted mail, deflect it to \fB/dev/null\fR.
     65  1.1  tron # .IP "|\fIcommand\fR"
     66  1.1  tron #	Mail is piped into \fIcommand\fR. Commands that contain special
     67  1.1  tron #	characters, such as whitespace, should be enclosed between double
     68  1.1  tron #	quotes. See \fBlocal\fR(8) for details of delivery to command.
     69  1.1  tron # .sp
     70  1.1  tron #	When the command fails, a limited amount of command output is
     71  1.1  tron #	mailed back to the sender.  The file \fB/usr/include/sysexits.h\fR
     72  1.1  tron #	defines the expected exit status codes. For example, use
     73  1.1  tron #	\fB"|exit 67"\fR to simulate a "user unknown" error, and
     74  1.1  tron #	\fB"|exit 0"\fR to implement an expensive black hole.
     75  1.1  tron # .IP \fB:include:\fI/file/name\fR
     76  1.1  tron #	Mail is sent to the destinations listed in the named file.
     77  1.1  tron #	Lines in \fB:include:\fR files have the same syntax
     78  1.1  tron #	as the right-hand side of alias entries.
     79  1.1  tron # .sp
     80  1.1  tron #	A destination can be any destination that is described in this
     81  1.1  tron #	manual page. However, delivery to "|\fIcommand\fR" and
     82  1.1  tron #	\fI/file/name\fR is disallowed by default. To enable, edit the
     83  1.1  tron #	\fBallow_mail_to_commands\fR and \fBallow_mail_to_files\fR
     84  1.1  tron #	configuration parameters.
     85  1.1  tron # ADDRESS EXTENSION
     86  1.1  tron # .ad
     87  1.1  tron # .fi
     88  1.1  tron #	When alias database search fails, and the recipient localpart
     89  1.1  tron #	contains the optional recipient delimiter (e.g., \fIuser+foo\fR),
     90  1.1  tron #	the search is repeated for the unextended address (e.g., \fIuser\fR).
     91  1.1  tron #
     92  1.1  tron #	The \fBpropagate_unmatched_extensions\fR parameter controls
     93  1.1  tron #	whether an unmatched address extension (\fI+foo\fR) is
     94  1.1  tron #	propagated to the result of table lookup.
     95  1.1  tron # CASE FOLDING
     96  1.1  tron # .ad
     97  1.1  tron # .fi
     98  1.1  tron #       The local(8) delivery agent always folds the search string
     99  1.1  tron #       to lowercase before database lookup.
    100  1.1  tron # SECURITY
    101  1.1  tron # .ad
    102  1.1  tron # .fi
    103  1.1  tron #	The \fBlocal\fR(8) delivery agent disallows regular expression
    104  1.1  tron #	substitution of $1 etc. in \fBalias_maps\fR, because that
    105  1.1  tron #	would open a security hole.
    106  1.1  tron #
    107  1.1  tron #	The \fBlocal\fR(8) delivery agent will silently ignore
    108  1.1  tron #	requests to use the \fBproxymap\fR(8) server within
    109  1.1  tron #	\fBalias_maps\fR. Instead it will open the table directly.
    110  1.1  tron #	Before Postfix version 2.2, the \fBlocal\fR(8) delivery
    111  1.1  tron #	agent will terminate with a fatal error.
    112  1.1  tron # CONFIGURATION PARAMETERS
    113  1.1  tron # .ad
    114  1.1  tron # .fi
    115  1.1  tron #	The following \fBmain.cf\fR parameters are especially relevant.
    116  1.1  tron #	The text below provides only a parameter summary. See
    117  1.1  tron #	\fBpostconf\fR(5) for more details including examples.
    118  1.1  tron # .IP \fBalias_database\fR
    119  1.1  tron #	List of alias databases that are updated by the
    120  1.1  tron #	\fBnewaliases\fR(1) command.
    121  1.1  tron # .IP \fBalias_maps\fR
    122  1.1  tron #	List of alias databases queried by the \fBlocal\fR(8) delivery agent.
    123  1.1  tron # .IP \fBallow_mail_to_commands\fR
    124  1.1  tron #	Restrict the usage of mail delivery to external command.
    125  1.1  tron # .IP \fBallow_mail_to_files\fR
    126  1.1  tron #	Restrict the usage of mail delivery to external file.
    127  1.1  tron # .IP \fBexpand_owner_alias\fR
    128  1.1  tron #	When delivering to an alias that has an \fBowner-\fR companion alias,
    129  1.1  tron #	set the envelope sender address to the right-hand side of the
    130  1.1  tron #	owner alias, instead using of the left-hand side address.
    131  1.1  tron # .IP \fBpropagate_unmatched_extensions\fR
    132  1.1  tron #	A list of address rewriting or forwarding mechanisms that
    133  1.1  tron #	propagate an address extension from the original address
    134  1.1  tron #	to the result. Specify zero or more of \fBcanonical\fR,
    135  1.1  tron #	\fBvirtual\fR, \fBalias\fR, \fBforward\fR, \fBinclude\fR,
    136  1.1  tron #	or \fBgeneric\fR.
    137  1.1  tron # .IP \fBowner_request_special\fR
    138  1.1  tron #	Give special treatment to \fBowner-\fIlistname\fR and
    139  1.1  tron #	\fIlistname\fB-request\fR
    140  1.1  tron #	addresses.
    141  1.1  tron # .IP \fBrecipient_delimiter\fR
    142  1.1  tron #	Delimiter that separates recipients from address extensions.
    143  1.1  tron # .PP
    144  1.1  tron #	Available in Postfix version 2.3 and later:
    145  1.1  tron # .IP \fBfrozen_delivered_to\fR
    146  1.1  tron #	Update the local(8) delivery agent's Delivered-To: address
    147  1.1  tron #	(see prepend_delivered_header) only once, at the start of
    148  1.1  tron #	a delivery; do not update the Delivered-To: address while
    149  1.1  tron #	expanding aliases or .forward files.
    150  1.1  tron # STANDARDS
    151  1.1  tron #	RFC 822 (ARPA Internet Text Messages)
    152  1.1  tron # SEE ALSO
    153  1.1  tron #	local(8), local delivery agent
    154  1.1  tron #	newaliases(1), create/update alias database
    155  1.1  tron #	postalias(1), create/update alias database
    156  1.1  tron #	postconf(5), configuration parameters
    157  1.1  tron # README FILES
    158  1.1  tron # .ad
    159  1.1  tron # .fi
    160  1.1  tron #	Use "\fBpostconf readme_directory\fR" or
    161  1.1  tron #	"\fBpostconf html_directory\fR" to locate this information.
    162  1.1  tron # .na
    163  1.1  tron # .nf
    164  1.1  tron #	DATABASE_README, Postfix lookup table overview
    165  1.1  tron # LICENSE
    166  1.1  tron # .ad
    167  1.1  tron # .fi
    168  1.1  tron #	The Secure Mailer license must be distributed with this software.
    169  1.1  tron # AUTHOR(S)
    170  1.1  tron #	Wietse Venema
    171  1.1  tron #	IBM T.J. Watson Research
    172  1.1  tron #	P.O. Box 704
    173  1.1  tron #	Yorktown Heights, NY 10598, USA
    174  1.1  tron #--
    175