other versions
- wheezy 2.9.6-2
- wheezy-backports 2.11.2-1~bpo70+1
- jessie 2.11.3-1+deb8u2
- testing 3.1.4-7
- unstable 3.1.4-7
- experimental 3.2.0-1
other languages
ALIASES(5) | File Formats Manual | ALIASES(5) |
NAME¶
aliases - Postfix local alias database formatSYNOPSIS¶
newaliases
DESCRIPTION¶
The aliases(5) table provides a system-wide mechanism to redirect mail for local recipients. The redirections are processed by the Postfix local(8) delivery agent.
- •
- An alias definition has the form
name: value1, value2, ...
- •
- Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace character is a `#'.
- •
- A logical line starts with non-whitespace text. A line that starts with whitespace continues a logical line.
- address
- Mail is forwarded to address, which is compatible with the RFC 822 standard.
- /file/name
- Mail is appended to /file/name. See local(8) for details of delivery to file. Delivery is not limited to regular files. For example, to dispose of unwanted mail, deflect it to /dev/null.
- |command
- Mail is piped into command. Commands that contain
special characters, such as whitespace, should be enclosed between double
quotes. See local(8) for details of delivery to command.
- :include:/file/name
- Mail is sent to the destinations listed in the named file.
Lines in :include: files have the same syntax as the right-hand
side of alias entries.
ADDRESS EXTENSION¶
When alias database search fails, and the recipient localpart contains the optional recipient delimiter (e.g., user+foo), the search is repeated for the unextended address (e.g., user).
CASE FOLDING¶
The local(8) delivery agent always folds the search string to lowercase before database lookup.
SECURITY¶
The local(8) delivery agent disallows regular expression substitution of $1 etc. in alias_maps, because that would open a security hole.
CONFIGURATION PARAMETERS¶
The following main.cf parameters are especially relevant. The text below provides only a parameter summary. See postconf(5) for more details including examples.
- alias_database
- List of alias databases that are updated by the newaliases(1) command.
- alias_maps
- List of alias databases queried by the local(8) delivery agent.
- allow_mail_to_commands
- Restrict the usage of mail delivery to external command.
- allow_mail_to_files
- Restrict the usage of mail delivery to external file.
- expand_owner_alias
- When delivering to an alias that has an owner- companion alias, set the envelope sender address to the right-hand side of the owner alias, instead using of the left-hand side address.
- propagate_unmatched_extensions
- A list of address rewriting or forwarding mechanisms that propagate an address extension from the original address to the result. Specify zero or more of canonical, virtual, alias, forward, include, or generic.
- owner_request_special
- Give special treatment to owner-listname and listname-request addresses.
- recipient_delimiter
- Delimiter that separates recipients from address extensions.
- frozen_delivered_to
- Update the local(8) delivery agent's Delivered-To: address (see prepend_delivered_header) only once, at the start of a delivery; do not update the Delivered-To: address while expanding aliases or .forward files.
STANDARDS¶
RFC 822 (ARPA Internet Text Messages)
SEE ALSO¶
local(8), local delivery agent newaliases(1), create/update alias database postalias(1), create/update alias database postconf(5), configuration parameters
README FILES¶
Use " postconf readme_directory" or " postconf html_directory" to locate this information.
DATABASE_README, Postfix lookup table overview
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