/etc/aliases: Unterschied zwischen den Versionen
Zeile 33: | Zeile 33: | ||
= TMP = | = TMP = | ||
== ADDRESS EXTENSION == | == 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 | When alias database search fails, and the recipient localpart contains the optional recipient delimiter (e.g., user+foo), the search is repeated for |
Version vom 14. Dezember 2024, 09:09 Uhr
/etc/aliases - Postfix local alias database format
topic - Beschreibung
Beschreibung
Installation
Aufruf
sudo newaliases
Optionen
Parameter
Umgebungsvariablen
Exit-Status
Anwendung
Problembehebung
Konfiguration
Dateien
Anhang
Siehe auch
Dokumentation
Man-Page
Info-Pages
Links
Projekt
Weblinks
TMP
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).
The propagate_unmatched_extensions parameter controls whether an unmatched address extension (+foo) is propagated to the result of table lookup.
CASE FOLDING
The local(8) delivery agent always folds the search string to lowercase before database lookup.
REGULAR EXPRESSION TABLES
This section describes how the table lookups change when the table is given in the form of regular expressions. For a description of regular expression lookup table syntax, see regexp_table(5) or pcre_table(5). NOTE: these formats do not use ":" at the end of a pattern.
Each regular expression is applied to the entire search string. Thus, a search string user+foo is not broken up into user and foo.
Regular expressions are applied in the order as specified in the table, until a regular expression is found that matches the search string.
Lookup results are the same as with indexed file lookups. For security reasons there is no support for $1, $2 etc. substring interpolation.
SECURITY
The local(8) delivery agent disallows regular expression substitution of $1 etc. in alias_maps, because that would open a security hole.
The local(8) delivery agent will silently ignore requests to use the proxymap(8) server within alias_maps. Instead it will open the table directly. Before Postfix version 2.2, the local(8) delivery agent will terminate with a fatal error.
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 (see 'postconf -d' output)
The alias databases for local(8) delivery that are updated with "newaliases" or with "sendmail -bi".
alias_maps (see 'postconf -d' output)
Optional lookup tables with aliases that apply only to local(8) recipients; this is unlike virtual_alias_maps that apply to all recipients: lo‐ cal(8), virtual, and remote.
allow_mail_to_commands (alias, forward)
Restrict local(8) mail delivery to external commands.
allow_mail_to_files (alias, forward)
Restrict local(8) mail delivery to external files.
expand_owner_alias (no)
When delivering to an alias "aliasname" that has an "owner-aliasname" companion alias, set the envelope sender address to the expansion of the "owner-aliasname" alias.
propagate_unmatched_extensions (canonical, virtual)
What address lookup tables copy an address extension from the lookup key to the lookup result.
owner_request_special (yes)
Enable special treatment for owner-listname entries in the aliases(5) file, and don't split owner-listname and listname-request address local‐ parts when the recipient_delimiter is set to "-".
recipient_delimiter (empty)
The set of characters that can separate an email address localpart, user name, or a .forward file name from its extension.
Available in Postfix version 2.3 and later:
frozen_delivered_to (yes)
Update the local(8) delivery agent's idea of the Delivered-To: address (see prepend_delivered_header) only once, at the start of a delivery at‐ tempt; do not update the Delivered-To: address while expanding aliases or .forward files.
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
STANDARDS
RFC 822 (ARPA Internet Text Messages)