2
0
mirror of https://github.com/vdukhovni/postfix synced 2025-08-23 02:17:44 +00:00

postfix-3.9-20230507

This commit is contained in:
Wietse Venema 2023-05-07 00:00:00 -05:00 committed by Viktor Dukhovni
parent a80705f3d5
commit 571c79482d
36 changed files with 407 additions and 340 deletions

View File

@ -27133,3 +27133,20 @@ Apologies for any names omitted.
Usability: improved error message when master.cf specifies Usability: improved error message when master.cf specifies
a wild-card network listener (like "smtp inet ... smtpd") a wild-card network listener (like "smtp inet ... smtpd")
while `inet_interfaces is empty. File: master/master_ent.c. while `inet_interfaces is empty. File: master/master_ent.c.
More documentation updates for local aliasing versus virtual
aliasing. Files: proto/aliases, proto/virtual, postfix/postfix.c.
20230506
Cleanup: simplified the master code to handle an empty
inet_interfaces setting. it is now closer to the original
code. Also documented what *_inet_addr_list() functions can
return an empty list. Files: master/master_ent.c,
global/own_inet_addr_list.c.
20230507
Documentation: fine tuning of text about local aliasing
versus virtual aliasing. Files: proto/postconf.proto,
proto/aliases, proto/virtual, proto/ADDRESS_REWRITING_README.html.

View File

@ -489,8 +489,9 @@ transform " Firstname.Lastname " back into UNIX login names, although it seems
that local aliases may be a more appropriate vehicle. See the VIRTUAL_README that local aliases may be a more appropriate vehicle. See the VIRTUAL_README
document for an overview of methods to host virtual domains with Postfix. document for an overview of methods to host virtual domains with Postfix.
Note: virtual aliasing (virtual_alias_maps) applies to all email deliveries, Note: virtual aliasing (virtual_alias_maps) applies to all email deliveries:
unlike local aliasing (alias_maps) which applies only to local(8) delivery. local(8), virtual, and remote. This is unlike local aliasing (alias_maps) which
applies only to local(8) delivery.
Virtual aliasing is disabled by default. To enable, edit the virtual_alias_maps Virtual aliasing is disabled by default. To enable, edit the virtual_alias_maps
parameter in the main.cf file and specify one or more lookup tables, separated parameter in the main.cf file and specify one or more lookup tables, separated
@ -706,8 +707,9 @@ implement distribution lists, or to direct mail for standard aliases such as
postmaster to real people. The table can also be used to map postmaster to real people. The table can also be used to map
"Firstname.Lastname" addresses to login names. "Firstname.Lastname" addresses to login names.
Note: local aliasing (alias_maps) applies only to local(8) delivery, unlike Note: local aliasing (alias_maps) applies only to local(8) delivery. This is
virtual aliasing (virtual_alias_maps) which applies to all email deliveries. unlike virtual aliasing (virtual_alias_maps) which applies to all email
deliveries: local(8), virtual, and remote.
Alias lookups are enabled by default. The default configuration depends on the Alias lookups are enabled by default. The default configuration depends on the
operating system environment, but it is typically one of the following: operating system environment, but it is typically one of the following:

View File

@ -28,7 +28,7 @@ Examples of lookup tables that appear often in the Postfix documentation:
alias_maps = hash:/etc/postfix/aliases (local aliasing) alias_maps = hash:/etc/postfix/aliases (local aliasing)
header_checks = regexp:/etc/postfix/header_checks (content filtering) header_checks = regexp:/etc/postfix/header_checks (content filtering)
transport_maps = hash:/etc/postfix/transport (routing table) transport_maps = hash:/etc/postfix/transport (routing table)
virtual_alias_maps = hash:/etc/postfix/virtual (address rewriting) virtual_alias_maps = hash:/etc/postfix/virtual (virtual aliasing)
All Postfix lookup tables store information as (key, value) pairs. This All Postfix lookup tables store information as (key, value) pairs. This
interface may seem simplistic at first, but it turns out to be very powerful. interface may seem simplistic at first, but it turns out to be very powerful.

View File

@ -45,25 +45,29 @@ decode: root
# newaliases # newaliases
# #
# DESCRIPTION # DESCRIPTION
# The aliases(5) table provides a system-wide mechanism to # The optional aliases(5) table (alias_maps) redirects mail
# redirect mail for local recipients. The redirections are # for local recipients. The redirections are processed by
# processed by the Postfix local(8) delivery agent. # the Postfix local(8) delivery agent.
#
# This is unlike virtual(5) aliasing (virtual_alias_maps)
# which applies to all recipients: local(8), virtual, and
# remote, and which is implemented by the cleanup(8) daemon.
# #
# Normally, the aliases(5) table is specified as a text file # Normally, the aliases(5) table is specified as a text file
# that serves as input to the postalias(1) command. The # that serves as input to the postalias(1) command. The
# result, an indexed file in dbm or db format, is used for # result, an indexed file in dbm or db format, is used for
# fast lookup by the mail system. Execute the command # fast lookup by the mail system. Execute the command
# newaliases in order to rebuild the indexed file after # newaliases in order to rebuild the indexed file after
# changing the Postfix alias database. # changing the Postfix alias database.
# #
# When the table is provided via other means such as NIS, # When the table is provided via other means such as NIS,
# LDAP or SQL, the same lookups are done as for ordinary # LDAP or SQL, the same lookups are done as for ordinary
# indexed files. # indexed files.
# #
# Alternatively, the table can be provided as a regu- # Alternatively, the table can be provided as a regu-
# lar-expression map where patterns are given as regular # lar-expression map where patterns are given as regular
# expressions. In this case, the lookups are done in a # expressions. In this case, the lookups are done in a
# slightly different way as described below under "REGULAR # slightly different way as described below under "REGULAR
# EXPRESSION TABLES". # EXPRESSION TABLES".
# #
# Users can control delivery of their own mail by setting up # Users can control delivery of their own mail by setting up
@ -77,61 +81,61 @@ decode: root
# #
# name: value1, value2, ... # name: value1, value2, ...
# #
# o Empty lines and whitespace-only lines are ignored, # o Empty lines and whitespace-only lines are ignored,
# as are lines whose first non-whitespace character # as are lines whose first non-whitespace character
# is a `#'. # is a `#'.
# #
# o A logical line starts with non-whitespace text. A # o A logical line starts with non-whitespace text. A
# line that starts with whitespace continues a logi- # line that starts with whitespace continues a logi-
# cal line. # cal line.
# #
# The name is a local address (no domain part). Use double # The name is a local address (no domain part). Use double
# quotes when the name contains any special characters such # quotes when the name contains any special characters such
# as whitespace, `#', `:', or `@'. The name is folded to # as whitespace, `#', `:', or `@'. The name is folded to
# lowercase, in order to make database lookups case insensi- # lowercase, in order to make database lookups case insensi-
# tive. # tive.
# #
# In addition, when an alias exists for owner-name, this # In addition, when an alias exists for owner-name, this
# will override the envelope sender address, so that deliv- # will override the envelope sender address, so that deliv-
# ery diagnostics are directed to owner-name, instead of the # ery diagnostics are directed to owner-name, instead of the
# originator of the message (for details, see # originator of the message (for details, see
# owner_request_special, expand_owner_alias and # owner_request_special, expand_owner_alias and
# reset_owner_alias). This is typically used to direct # reset_owner_alias). This is typically used to direct
# delivery errors to the maintainer of a mailing list, who # delivery errors to the maintainer of a mailing list, who
# is in a better position to deal with mailing list delivery # is in a better position to deal with mailing list delivery
# problems than the originator of the undelivered mail. # problems than the originator of the undelivered mail.
# #
# The value contains one or more of the following: # The value contains one or more of the following:
# #
# address # address
# Mail is forwarded to address, which is compatible # Mail is forwarded to address, which is compatible
# with the RFC 822 standard. # with the RFC 822 standard.
# #
# /file/name # /file/name
# Mail is appended to /file/name. For details on how # Mail is appended to /file/name. For details on how
# a file is written see the sections "EXTERNAL FILE # a file is written see the sections "EXTERNAL FILE
# DELIVERY" and "DELIVERY RIGHTS" in the local(8) # DELIVERY" and "DELIVERY RIGHTS" in the local(8)
# documentation. Delivery is not limited to regular # documentation. Delivery is not limited to regular
# files. For example, to dispose of unwanted mail, # files. For example, to dispose of unwanted mail,
# deflect it to /dev/null. # deflect it to /dev/null.
# #
# |command # |command
# Mail is piped into command. Commands that contain # Mail is piped into command. Commands that contain
# special characters, such as whitespace, should be # special characters, such as whitespace, should be
# enclosed between double quotes. For details on how # enclosed between double quotes. For details on how
# a command is executed see "EXTERNAL COMMAND DELIV- # a command is executed see "EXTERNAL COMMAND DELIV-
# ERY" and "DELIVERY RIGHTS" in the local(8) documen- # ERY" and "DELIVERY RIGHTS" in the local(8) documen-
# tation. # tation.
# #
# When the command fails, a limited amount of command # When the command fails, a limited amount of command
# output is mailed back to the sender. The file # output is mailed back to the sender. The file
# /usr/include/sysexits.h defines the expected exit # /usr/include/sysexits.h defines the expected exit
# status codes. For example, use "|exit 67" to simu- # status codes. For example, use "|exit 67" to simu-
# late a "user unknown" error, and "|exit 0" to # late a "user unknown" error, and "|exit 0" to
# implement an expensive black hole. # implement an expensive black hole.
# #
# :include:/file/name # :include:/file/name
# Mail is sent to the destinations listed in the # Mail is sent to the destinations listed in the
# named file. Lines in :include: files have the same # named file. Lines in :include: files have the same
# syntax as the right-hand side of alias entries. # syntax as the right-hand side of alias entries.
# #
@ -143,12 +147,12 @@ decode: root
# #
# ADDRESS EXTENSION # ADDRESS EXTENSION
# When alias database search fails, and the recipient local- # When alias database search fails, and the recipient local-
# part contains the optional recipient delimiter (e.g., # part contains the optional recipient delimiter (e.g.,
# user+foo), the search is repeated for the unextended # user+foo), the search is repeated for the unextended
# address (e.g., user). # address (e.g., user).
# #
# The propagate_unmatched_extensions parameter controls # The propagate_unmatched_extensions parameter controls
# whether an unmatched address extension (+foo) is propa- # whether an unmatched address extension (+foo) is propa-
# gated to the result of table lookup. # gated to the result of table lookup.
# #
# CASE FOLDING # CASE FOLDING
@ -156,83 +160,85 @@ decode: root
# to lowercase before database lookup. # to lowercase before database lookup.
# #
# REGULAR EXPRESSION TABLES # REGULAR EXPRESSION TABLES
# This section describes how the table lookups change when # This section describes how the table lookups change when
# the table is given in the form of regular expressions. For # the table is given in the form of regular expressions. For
# a description of regular expression lookup table syntax, # a description of regular expression lookup table syntax,
# see regexp_table(5) or pcre_table(5). NOTE: these formats # see regexp_table(5) or pcre_table(5). NOTE: these formats
# do not use ":" at the end of a pattern. # do not use ":" at the end of a pattern.
# #
# Each regular expression is applied to the entire search # Each regular expression is applied to the entire search
# string. Thus, a search string user+foo is not broken up # string. Thus, a search string user+foo is not broken up
# into user and foo. # into user and foo.
# #
# Regular expressions are applied in the order as specified # Regular expressions are applied in the order as specified
# in the table, until a regular expression is found that # in the table, until a regular expression is found that
# matches the search string. # matches the search string.
# #
# Lookup results are the same as with indexed file lookups. # Lookup results are the same as with indexed file lookups.
# For security reasons there is no support for $1, $2 etc. # For security reasons there is no support for $1, $2 etc.
# substring interpolation. # substring interpolation.
# #
# SECURITY # SECURITY
# The local(8) delivery agent disallows regular expression # The local(8) delivery agent disallows regular expression
# substitution of $1 etc. in alias_maps, because that would # substitution of $1 etc. in alias_maps, because that would
# open a security hole. # open a security hole.
# #
# The local(8) delivery agent will silently ignore requests # The local(8) delivery agent will silently ignore requests
# to use the proxymap(8) server within alias_maps. Instead # to use the proxymap(8) server within alias_maps. Instead
# it will open the table directly. Before Postfix version # it will open the table directly. Before Postfix version
# 2.2, the local(8) delivery agent will terminate with a # 2.2, the local(8) delivery agent will terminate with a
# fatal error. # fatal error.
# #
# CONFIGURATION PARAMETERS # CONFIGURATION PARAMETERS
# The following main.cf parameters are especially relevant. # The following main.cf parameters are especially relevant.
# The text below provides only a parameter summary. See # The text below provides only a parameter summary. See
# postconf(5) for more details including examples. # postconf(5) for more details including examples.
# #
# alias_database (see 'postconf -d' output) # alias_database (see 'postconf -d' output)
# The alias databases for local(8) delivery that are # The alias databases for local(8) delivery that are
# updated with "newaliases" or with "sendmail -bi". # updated with "newaliases" or with "sendmail -bi".
# #
# alias_maps (see 'postconf -d' output) # alias_maps (see 'postconf -d' output)
# The alias databases that are used for local(8) # Optional lookup tables with aliases that apply only
# delivery. # to local(8) delivery, unlike virtual_alias_maps
# that apply to all email deliveries: local(8), vir-
# tual, and remote.
# #
# allow_mail_to_commands (alias, forward) # allow_mail_to_commands (alias, forward)
# Restrict local(8) mail delivery to external com- # Restrict local(8) mail delivery to external com-
# mands. # mands.
# #
# allow_mail_to_files (alias, forward) # allow_mail_to_files (alias, forward)
# Restrict local(8) mail delivery to external files. # Restrict local(8) mail delivery to external files.
# #
# expand_owner_alias (no) # expand_owner_alias (no)
# When delivering to an alias "aliasname" that has an # When delivering to an alias "aliasname" that has an
# "owner-aliasname" companion alias, set the envelope # "owner-aliasname" companion alias, set the envelope
# sender address to the expansion of the # sender address to the expansion of the
# "owner-aliasname" alias. # "owner-aliasname" alias.
# #
# propagate_unmatched_extensions (canonical, virtual) # propagate_unmatched_extensions (canonical, virtual)
# What address lookup tables copy an address exten- # What address lookup tables copy an address exten-
# sion from the lookup key to the lookup result. # sion from the lookup key to the lookup result.
# #
# owner_request_special (yes) # owner_request_special (yes)
# Enable special treatment for owner-listname entries # Enable special treatment for owner-listname entries
# in the aliases(5) file, and don't split owner-list- # in the aliases(5) file, and don't split owner-list-
# name and listname-request address localparts when # name and listname-request address localparts when
# the recipient_delimiter is set to "-". # the recipient_delimiter is set to "-".
# #
# recipient_delimiter (empty) # recipient_delimiter (empty)
# The set of characters that can separate an email # The set of characters that can separate an email
# address localpart, user name, or a .forward file # address localpart, user name, or a .forward file
# name from its extension. # name from its extension.
# #
# Available in Postfix version 2.3 and later: # Available in Postfix version 2.3 and later:
# #
# frozen_delivered_to (yes) # frozen_delivered_to (yes)
# Update the local(8) delivery agent's idea of the # Update the local(8) delivery agent's idea of the
# Delivered-To: address (see prepend_deliv- # Delivered-To: address (see prepend_deliv-
# ered_header) only once, at the start of a delivery # ered_header) only once, at the start of a delivery
# attempt; do not update the Delivered-To: address # attempt; do not update the Delivered-To: address
# while expanding aliases or .forward files. # while expanding aliases or .forward files.
# #
# STANDARDS # STANDARDS
@ -245,12 +251,12 @@ decode: root
# postconf(5), configuration parameters # postconf(5), configuration parameters
# #
# README FILES # README FILES
# Use "postconf readme_directory" or "postconf html_direc- # Use "postconf readme_directory" or "postconf html_direc-
# tory" to locate this information. # tory" to locate this information.
# DATABASE_README, Postfix lookup table overview # DATABASE_README, Postfix lookup table overview
# #
# LICENSE # LICENSE
# The Secure Mailer license must be distributed with this # The Secure Mailer license must be distributed with this
# software. # software.
# #
# AUTHOR(S) # AUTHOR(S)

View File

@ -11,98 +11,99 @@
# postmap -q - /etc/postfix/virtual <inputfile # postmap -q - /etc/postfix/virtual <inputfile
# #
# DESCRIPTION # DESCRIPTION
# The optional virtual(5) alias table rewrites recipient # The optional virtual(5) alias table (virtual_alias_maps)
# addresses for all local, all virtual, and all remote mail # rewrites all recipients: local(8), virtual, and remote.
# destinations. This is unlike the aliases(5) table which # This feature is implemented in the Postfix cleanup(8) dae-
# is used only for local(8) delivery. This feature is imple- # mon before mail is queued.
# mented in the Postfix cleanup(8) daemon before mail is
# queued.
# #
# Virtual aliasing is recursive; to terminate recursion for # This is unlike the aliases(5) table (alias_maps) which is
# used only for local(8) delivery.
#
# Virtual aliasing is recursive; to terminate recursion for
# a specific address, alias that address to itself. # a specific address, alias that address to itself.
# #
# The main applications of virtual aliasing are: # The main applications of virtual aliasing are:
# #
# o To redirect mail for one address to one or more # o To redirect mail for one address to one or more
# addresses. # addresses.
# #
# o To implement virtual alias domains where all # o To implement virtual alias domains where all
# addresses are aliased to addresses in other # addresses are aliased to addresses in other
# domains. # domains.
# #
# Virtual alias domains are not to be confused with # Virtual alias domains are not to be confused with
# the virtual mailbox domains that are implemented # the virtual mailbox domains that are implemented
# with the Postfix virtual(8) mail delivery agent. # with the Postfix virtual(8) mail delivery agent.
# With virtual mailbox domains, each recipient # With virtual mailbox domains, each recipient
# address can have its own mailbox. # address can have its own mailbox.
# #
# Virtual aliasing is applied only to recipient envelope # Virtual aliasing is applied only to recipient envelope
# addresses, and does not affect message headers. Use # addresses, and does not affect message headers. Use
# canonical(5) mapping to rewrite header and envelope # canonical(5) mapping to rewrite header and envelope
# addresses in general. # addresses in general.
# #
# Normally, the virtual(5) alias table is specified as a # Normally, the virtual(5) alias table is specified as a
# text file that serves as input to the postmap(1) command. # text file that serves as input to the postmap(1) command.
# The result, an indexed file in dbm or db format, is used # The result, an indexed file in dbm or db format, is used
# for fast searching by the mail system. Execute the command # for fast searching by the mail system. Execute the command
# "postmap /etc/postfix/virtual" to rebuild an indexed file # "postmap /etc/postfix/virtual" to rebuild an indexed file
# after changing the corresponding text file. # after changing the corresponding text file.
# #
# When the table is provided via other means such as NIS, # When the table is provided via other means such as NIS,
# LDAP or SQL, the same lookups are done as for ordinary # LDAP or SQL, the same lookups are done as for ordinary
# indexed files. # indexed files.
# #
# Alternatively, the table can be provided as a regu- # Alternatively, the table can be provided as a regu-
# lar-expression map where patterns are given as regular # lar-expression map where patterns are given as regular
# expressions, or lookups can be directed to a TCP-based # expressions, or lookups can be directed to a TCP-based
# server. In those case, the lookups are done in a slightly # server. In those case, the lookups are done in a slightly
# different way as described below under "REGULAR EXPRESSION # different way as described below under "REGULAR EXPRESSION
# TABLES" or "TCP-BASED TABLES". # TABLES" or "TCP-BASED TABLES".
# #
# CASE FOLDING # CASE FOLDING
# The search string is folded to lowercase before database # The search string is folded to lowercase before database
# lookup. As of Postfix 2.3, the search string is not case # lookup. As of Postfix 2.3, the search string is not case
# folded with database types such as regexp: or pcre: whose # folded with database types such as regexp: or pcre: whose
# lookup fields can match both upper and lower case. # lookup fields can match both upper and lower case.
# #
# TABLE FORMAT # TABLE FORMAT
# The input format for the postmap(1) command is as follows: # The input format for the postmap(1) command is as follows:
# #
# pattern address, address, ... # pattern address, address, ...
# When pattern matches a mail address, replace it by # When pattern matches a mail address, replace it by
# the corresponding address. # the corresponding address.
# #
# blank lines and comments # blank lines and comments
# Empty lines and whitespace-only lines are ignored, # Empty lines and whitespace-only lines are ignored,
# as are lines whose first non-whitespace character # as are lines whose first non-whitespace character
# is a `#'. # is a `#'.
# #
# multi-line text # multi-line text
# A logical line starts with non-whitespace text. A # A logical line starts with non-whitespace text. A
# line that starts with whitespace continues a logi- # line that starts with whitespace continues a logi-
# cal line. # cal line.
# #
# TABLE SEARCH ORDER # TABLE SEARCH ORDER
# With lookups from indexed files such as DB or DBM, or from # With lookups from indexed files such as DB or DBM, or from
# networked tables such as NIS, LDAP or SQL, each # networked tables such as NIS, LDAP or SQL, each
# user@domain query produces a sequence of query patterns as # user@domain query produces a sequence of query patterns as
# described below. # described below.
# #
# Each query pattern is sent to each specified lookup table # Each query pattern is sent to each specified lookup table
# before trying the next query pattern, until a match is # before trying the next query pattern, until a match is
# found. # found.
# #
# user@domain address, address, ... # user@domain address, address, ...
# Redirect mail for user@domain to address. This # Redirect mail for user@domain to address. This
# form has the highest precedence. # form has the highest precedence.
# #
# user address, address, ... # user address, address, ...
# Redirect mail for user@site to address when site is # Redirect mail for user@site to address when site is
# equal to $myorigin, when site is listed in $mydes- # equal to $myorigin, when site is listed in $mydes-
# tination, or when it is listed in $inet_interfaces # tination, or when it is listed in $inet_interfaces
# or $proxy_interfaces. # or $proxy_interfaces.
# #
# This functionality overlaps with the functionality # This functionality overlaps with the functionality
# of the local aliases(5) database. The difference is # of the local aliases(5) database. The difference is
# that virtual(5) mapping can be applied to non-local # that virtual(5) mapping can be applied to non-local
# addresses. # addresses.
@ -111,18 +112,18 @@
# Redirect mail for other users in domain to address. # Redirect mail for other users in domain to address.
# This form has the lowest precedence. # This form has the lowest precedence.
# #
# Note: @domain is a wild-card. With this form, the # Note: @domain is a wild-card. With this form, the
# Postfix SMTP server accepts mail for any recipient # Postfix SMTP server accepts mail for any recipient
# in domain, regardless of whether that recipient # in domain, regardless of whether that recipient
# exists. This may turn your mail system into a # exists. This may turn your mail system into a
# backscatter source: Postfix first accepts mail for # backscatter source: Postfix first accepts mail for
# non-existent recipients and then tries to return # non-existent recipients and then tries to return
# that mail as "undeliverable" to the often forged # that mail as "undeliverable" to the often forged
# sender address. # sender address.
# #
# To avoid backscatter with mail for a wild-card # To avoid backscatter with mail for a wild-card
# domain, replace the wild-card mapping with explicit # domain, replace the wild-card mapping with explicit
# 1:1 mappings, or add a reject_unverified_recipient # 1:1 mappings, or add a reject_unverified_recipient
# restriction for that domain: # restriction for that domain:
# #
# smtpd_recipient_restrictions = # smtpd_recipient_restrictions =
@ -132,19 +133,19 @@
# inline:{example.com=reject_unverified_recipient} # inline:{example.com=reject_unverified_recipient}
# unverified_recipient_reject_code = 550 # unverified_recipient_reject_code = 550
# #
# In the above example, Postfix may contact a remote # In the above example, Postfix may contact a remote
# server if the recipient is aliased to a remote # server if the recipient is aliased to a remote
# address. # address.
# #
# RESULT ADDRESS REWRITING # RESULT ADDRESS REWRITING
# The lookup result is subject to address rewriting: # The lookup result is subject to address rewriting:
# #
# o When the result has the form @otherdomain, the # o When the result has the form @otherdomain, the
# result becomes the same user in otherdomain. This # result becomes the same user in otherdomain. This
# works only for the first address in a multi-address # works only for the first address in a multi-address
# lookup result. # lookup result.
# #
# o When "append_at_myorigin=yes", append "@$myorigin" # o When "append_at_myorigin=yes", append "@$myorigin"
# to addresses without "@domain". # to addresses without "@domain".
# #
# o When "append_dot_mydomain=yes", append ".$mydomain" # o When "append_dot_mydomain=yes", append ".$mydomain"
@ -152,29 +153,29 @@
# #
# ADDRESS EXTENSION # ADDRESS EXTENSION
# When a mail address localpart contains the optional recip- # When a mail address localpart contains the optional recip-
# ient delimiter (e.g., user+foo@domain), the lookup order # ient delimiter (e.g., user+foo@domain), the lookup order
# becomes: user+foo@domain, user@domain, user+foo, user, and # becomes: user+foo@domain, user@domain, user+foo, user, and
# @domain. # @domain.
# #
# The propagate_unmatched_extensions parameter controls # The propagate_unmatched_extensions parameter controls
# whether an unmatched address extension (+foo) is propa- # whether an unmatched address extension (+foo) is propa-
# gated to the result of a table lookup. # gated to the result of a table lookup.
# #
# VIRTUAL ALIAS DOMAINS # VIRTUAL ALIAS DOMAINS
# Besides virtual aliases, the virtual alias table can also # Besides virtual aliases, the virtual alias table can also
# be used to implement virtual alias domains. With a virtual # be used to implement virtual alias domains. With a virtual
# alias domain, all recipient addresses are aliased to # alias domain, all recipient addresses are aliased to
# addresses in other domains. # addresses in other domains.
# #
# Virtual alias domains are not to be confused with the vir- # Virtual alias domains are not to be confused with the vir-
# tual mailbox domains that are implemented with the Postfix # tual mailbox domains that are implemented with the Postfix
# virtual(8) mail delivery agent. With virtual mailbox # virtual(8) mail delivery agent. With virtual mailbox
# domains, each recipient address can have its own mailbox. # domains, each recipient address can have its own mailbox.
# #
# With a virtual alias domain, the virtual domain has its # With a virtual alias domain, the virtual domain has its
# own user name space. Local (i.e. non-virtual) usernames # own user name space. Local (i.e. non-virtual) usernames
# are not visible in a virtual alias domain. In particular, # are not visible in a virtual alias domain. In particular,
# local aliases(5) and local mailing lists are not visible # local aliases(5) and local mailing lists are not visible
# as localname@virtual-alias.domain. # as localname@virtual-alias.domain.
# #
# Support for a virtual alias domain looks like: # Support for a virtual alias domain looks like:
@ -183,7 +184,7 @@
# virtual_alias_maps = hash:/etc/postfix/virtual # virtual_alias_maps = hash:/etc/postfix/virtual
# #
# Note: some systems use dbm databases instead of hash. See # Note: some systems use dbm databases instead of hash. See
# the output from "postconf -m" for available database # the output from "postconf -m" for available database
# types. # types.
# #
# /etc/postfix/virtual: # /etc/postfix/virtual:
@ -192,72 +193,73 @@
# user1@virtual-alias.domain address1 # user1@virtual-alias.domain address1
# user2@virtual-alias.domain address2, address3 # user2@virtual-alias.domain address2, address3
# #
# The virtual-alias.domain anything entry is required for a # The virtual-alias.domain anything entry is required for a
# virtual alias domain. Without this entry, mail is rejected # virtual alias domain. Without this entry, mail is rejected
# with "relay access denied", or bounces with "mail loops # with "relay access denied", or bounces with "mail loops
# back to myself". # back to myself".
# #
# Do not specify virtual alias domain names in the main.cf # Do not specify virtual alias domain names in the main.cf
# mydestination or relay_domains configuration parameters. # mydestination or relay_domains configuration parameters.
# #
# With a virtual alias domain, the Postfix SMTP server # With a virtual alias domain, the Postfix SMTP server
# accepts mail for known-user@virtual-alias.domain, and # accepts mail for known-user@virtual-alias.domain, and
# rejects mail for unknown-user@virtual-alias.domain as # rejects mail for unknown-user@virtual-alias.domain as
# undeliverable. # undeliverable.
# #
# Instead of specifying the virtual alias domain name via # Instead of specifying the virtual alias domain name via
# the virtual_alias_maps table, you may also specify it via # the virtual_alias_maps table, you may also specify it via
# the main.cf virtual_alias_domains configuration parameter. # the main.cf virtual_alias_domains configuration parameter.
# This latter parameter uses the same syntax as the main.cf # This latter parameter uses the same syntax as the main.cf
# mydestination configuration parameter. # mydestination configuration parameter.
# #
# REGULAR EXPRESSION TABLES # REGULAR EXPRESSION TABLES
# This section describes how the table lookups change when # This section describes how the table lookups change when
# the table is given in the form of regular expressions. For # the table is given in the form of regular expressions. For
# a description of regular expression lookup table syntax, # a description of regular expression lookup table syntax,
# see regexp_table(5) or pcre_table(5). # see regexp_table(5) or pcre_table(5).
# #
# Each pattern is a regular expression that is applied to # Each pattern is a regular expression that is applied to
# the entire address being looked up. Thus, user@domain mail # the entire address being looked up. Thus, user@domain mail
# addresses are not broken up into their user and @domain # addresses are not broken up into their user and @domain
# constituent parts, nor is user+foo broken up into user and # constituent parts, nor is user+foo broken up into user and
# foo. # foo.
# #
# Patterns are applied in the order as specified in the ta- # Patterns are applied in the order as specified in the ta-
# ble, until a pattern is found that matches the search # ble, until a pattern is found that matches the search
# string. # string.
# #
# Results are the same as with indexed file lookups, with # Results are the same as with indexed file lookups, with
# the additional feature that parenthesized substrings from # the additional feature that parenthesized substrings from
# the pattern can be interpolated as $1, $2 and so on. # the pattern can be interpolated as $1, $2 and so on.
# #
# TCP-BASED TABLES # TCP-BASED TABLES
# This section describes how the table lookups change when # This section describes how the table lookups change when
# lookups are directed to a TCP-based server. For a descrip- # lookups are directed to a TCP-based server. For a descrip-
# tion of the TCP client/server lookup protocol, see tcp_ta- # tion of the TCP client/server lookup protocol, see tcp_ta-
# ble(5). This feature is available in Postfix 2.5 and # ble(5). This feature is available in Postfix 2.5 and
# later. # later.
# #
# Each lookup operation uses the entire address once. Thus, # Each lookup operation uses the entire address once. Thus,
# user@domain mail addresses are not broken up into their # user@domain mail addresses are not broken up into their
# user and @domain constituent parts, nor is user+foo broken # user and @domain constituent parts, nor is user+foo broken
# up into user and foo. # up into user and foo.
# #
# Results are the same as with indexed file lookups. # Results are the same as with indexed file lookups.
# #
# BUGS # BUGS
# The table format does not understand quoting conventions. # The table format does not understand quoting conventions.
# #
# CONFIGURATION PARAMETERS # CONFIGURATION PARAMETERS
# The following main.cf parameters are especially relevant # The following main.cf parameters are especially relevant
# to this topic. See the Postfix main.cf file for syntax # to this topic. See the Postfix main.cf file for syntax
# details and for default values. Use the "postfix reload" # details and for default values. Use the "postfix reload"
# command after a configuration change. # command after a configuration change.
# #
# virtual_alias_maps ($virtual_maps) # virtual_alias_maps ($virtual_maps)
# Optional lookup tables that alias specific mail # Optional lookup tables with aliases that apply to
# addresses or domains to other local or remote # all email deliveries: local(8), virtual, and
# addresses. # remote, unlike alias_maps that apply only to
# local(8) delivery.
# #
# virtual_alias_domains ($virtual_alias_maps) # virtual_alias_domains ($virtual_alias_maps)
# Postfix is the final destination for the specified # Postfix is the final destination for the specified
@ -272,8 +274,8 @@
# Other parameters of interest: # Other parameters of interest:
# #
# inet_interfaces (all) # inet_interfaces (all)
# The network interface addresses that this mail sys- # The local network interface addresses that this
# tem receives mail on. # mail system receives mail on.
# #
# mydestination ($myhostname, localhost.$mydomain, local- # mydestination ($myhostname, localhost.$mydomain, local-
# host) # host)
@ -292,9 +294,9 @@
# the recipient_delimiter is set to "-". # the recipient_delimiter is set to "-".
# #
# proxy_interfaces (empty) # proxy_interfaces (empty)
# The network interface addresses that this mail sys- # The remote network interface addresses that this
# tem receives mail on by way of a proxy or network # mail system receives mail on by way of a proxy or
# address translation unit. # network address translation unit.
# #
# SEE ALSO # SEE ALSO
# cleanup(8), canonicalize and enqueue mail # cleanup(8), canonicalize and enqueue mail

View File

@ -772,8 +772,8 @@ for an overview of methods to host virtual domains with Postfix.
</p> </p>
<p> Note: <a href="ADDRESS_REWRITING_README.html#virtual">virtual aliasing</a> (<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a>) applies to all email <p> Note: <a href="ADDRESS_REWRITING_README.html#virtual">virtual aliasing</a> (<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a>) applies to all email
deliveries, unlike <a href="ADDRESS_REWRITING_README.html#aliases">local aliasing</a> (<a href="postconf.5.html#alias_maps">alias_maps</a>) which applies only deliveries: <a href="local.8.html">local(8)</a>, virtual, and remote. This is unlike local
to <a href="local.8.html">local(8)</a> delivery. </p> aliasing (<a href="postconf.5.html#alias_maps">alias_maps</a>) which applies only to <a href="local.8.html">local(8)</a> delivery. </p>
<p> Virtual aliasing is disabled by default. To enable, edit the <p> Virtual aliasing is disabled by default. To enable, edit the
<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> parameter in the <a href="postconf.5.html">main.cf</a> file and <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> parameter in the <a href="postconf.5.html">main.cf</a> file and
@ -1061,8 +1061,9 @@ The table can also be used to map "Firstname.Lastname" addresses
to login names. </p> to login names. </p>
<p> Note: <a href="ADDRESS_REWRITING_README.html#aliases">local aliasing</a> (<a href="postconf.5.html#alias_maps">alias_maps</a>) applies only to <a href="local.8.html">local(8)</a> <p> Note: <a href="ADDRESS_REWRITING_README.html#aliases">local aliasing</a> (<a href="postconf.5.html#alias_maps">alias_maps</a>) applies only to <a href="local.8.html">local(8)</a>
delivery, unlike <a href="ADDRESS_REWRITING_README.html#virtual">virtual aliasing</a> (<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a>) which applies delivery. This is unlike <a href="ADDRESS_REWRITING_README.html#virtual">virtual aliasing</a> (<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a>)
to all email deliveries. </p> which applies to all email deliveries: <a href="local.8.html">local(8)</a>, virtual, and remote.
</p>
<p> Alias lookups are enabled by default. The default configuration <p> Alias lookups are enabled by default. The default configuration
depends on the operating system environment, but it is typically depends on the operating system environment, but it is typically

View File

@ -59,7 +59,7 @@ documentation: </p>
<a href="postconf.5.html#alias_maps">alias_maps</a> = <a href="DATABASE_README.html#types">hash</a>:/etc/postfix/aliases (<a href="ADDRESS_REWRITING_README.html#aliases">local aliasing</a>) <a href="postconf.5.html#alias_maps">alias_maps</a> = <a href="DATABASE_README.html#types">hash</a>:/etc/postfix/aliases (<a href="ADDRESS_REWRITING_README.html#aliases">local aliasing</a>)
<a href="postconf.5.html#header_checks">header_checks</a> = <a href="regexp_table.5.html">regexp</a>:/etc/postfix/header_checks (content filtering) <a href="postconf.5.html#header_checks">header_checks</a> = <a href="regexp_table.5.html">regexp</a>:/etc/postfix/header_checks (content filtering)
<a href="postconf.5.html#transport_maps">transport_maps</a> = <a href="DATABASE_README.html#types">hash</a>:/etc/postfix/transport (routing table) <a href="postconf.5.html#transport_maps">transport_maps</a> = <a href="DATABASE_README.html#types">hash</a>:/etc/postfix/transport (routing table)
<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> = <a href="DATABASE_README.html#types">hash</a>:/etc/postfix/virtual (address rewriting) <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> = <a href="DATABASE_README.html#types">hash</a>:/etc/postfix/virtual (<a href="ADDRESS_REWRITING_README.html#virtual">virtual aliasing</a>)
</pre> </pre>
</blockquote> </blockquote>

View File

@ -14,9 +14,13 @@ ALIASES(5) ALIASES(5)
<b>newaliases</b> <b>newaliases</b>
<b>DESCRIPTION</b> <b>DESCRIPTION</b>
The <a href="aliases.5.html"><b>aliases</b>(5)</a> table provides a system-wide mechanism to redirect mail The optional <a href="aliases.5.html"><b>aliases</b>(5)</a> table (<a href="postconf.5.html#alias_maps">alias_maps</a>) redirects mail for local
for local recipients. The redirections are processed by the Postfix recipients. The redirections are processed by the Postfix <a href="local.8.html"><b>local</b>(8)</a>
<a href="local.8.html"><b>local</b>(8)</a> delivery agent. delivery agent.
This is unlike <a href="virtual.5.html"><b>virtual</b>(5)</a> aliasing (<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a>) which applies
to all recipients: <a href="local.8.html">local(8)</a>, virtual, and remote, and which is imple-
mented by the <a href="cleanup.8.html"><b>cleanup</b>(8)</a> daemon.
Normally, the <a href="aliases.5.html"><b>aliases</b>(5)</a> table is specified as a text file that serves Normally, the <a href="aliases.5.html"><b>aliases</b>(5)</a> table is specified as a text file that serves
as input to the <a href="postalias.1.html"><b>postalias</b>(1)</a> command. The result, an indexed file in as input to the <a href="postalias.1.html"><b>postalias</b>(1)</a> command. The result, an indexed file in
@ -144,7 +148,9 @@ ALIASES(5) ALIASES(5)
"<b>newaliases</b>" or with "<b>sendmail -bi</b>". "<b>newaliases</b>" or with "<b>sendmail -bi</b>".
<b><a href="postconf.5.html#alias_maps">alias_maps</a> (see 'postconf -d' output)</b> <b><a href="postconf.5.html#alias_maps">alias_maps</a> (see 'postconf -d' output)</b>
The alias databases that are used for <a href="local.8.html"><b>local</b>(8)</a> delivery. Optional lookup tables with aliases that apply only to <a href="local.8.html"><b>local</b>(8)</a>
delivery, unlike <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> that apply to all email
deliveries: <a href="local.8.html"><b>local</b>(8)</a>, virtual, and remote.
<b><a href="postconf.5.html#allow_mail_to_commands">allow_mail_to_commands</a> (alias, forward)</b> <b><a href="postconf.5.html#allow_mail_to_commands">allow_mail_to_commands</a> (alias, forward)</b>
Restrict <a href="local.8.html"><b>local</b>(8)</a> mail delivery to external commands. Restrict <a href="local.8.html"><b>local</b>(8)</a> mail delivery to external commands.

View File

@ -344,8 +344,8 @@ CLEANUP(8) CLEANUP(8)
<b><a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> ($<a href="postconf.5.html#virtual_maps">virtual_maps</a>)</b> <b><a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> ($<a href="postconf.5.html#virtual_maps">virtual_maps</a>)</b>
Optional lookup tables with aliases that apply to all email Optional lookup tables with aliases that apply to all email
deliveries, unlike <a href="postconf.5.html#alias_maps">alias_maps</a> that apply only to <a href="local.8.html"><b>local</b>(8)</a> deliv- deliveries: <a href="local.8.html"><b>local</b>(8)</a>, virtual, and remote, unlike <a href="postconf.5.html#alias_maps">alias_maps</a>
ery. that apply only to <a href="local.8.html"><b>local</b>(8)</a> delivery.
Available in Postfix version 2.2 and later: Available in Postfix version 2.2 and later:

View File

@ -384,7 +384,7 @@ LOCAL(8) LOCAL(8)
<b><a href="postconf.5.html#alias_maps">alias_maps</a> (see 'postconf -d' output)</b> <b><a href="postconf.5.html#alias_maps">alias_maps</a> (see 'postconf -d' output)</b>
Optional lookup tables with aliases that apply only to <a href="local.8.html"><b>local</b>(8)</a> Optional lookup tables with aliases that apply only to <a href="local.8.html"><b>local</b>(8)</a>
delivery, unlike <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> that apply to all email delivery, unlike <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> that apply to all email
deliveries. deliveries: <a href="local.8.html"><b>local</b>(8)</a>, virtual, and remote.
<b><a href="postconf.5.html#forward_path">forward_path</a> (see 'postconf -d' output)</b> <b><a href="postconf.5.html#forward_path">forward_path</a> (see 'postconf -d' output)</b>
The <a href="local.8.html"><b>local</b>(8)</a> delivery agent search list for finding a .forward The <a href="local.8.html"><b>local</b>(8)</a> delivery agent search list for finding a .forward

View File

@ -613,7 +613,8 @@ Examples:
<p> <p>
Optional lookup tables with aliases that apply only to <a href="local.8.html">local(8)</a> Optional lookup tables with aliases that apply only to <a href="local.8.html">local(8)</a>
delivery, unlike <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> that apply to all email deliveries. delivery, unlike <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> that apply to all email deliveries:
<a href="local.8.html">local(8)</a>, virtual, and remote.
The table format and lookups are documented in <a href="aliases.5.html">aliases(5)</a>. For an The table format and lookups are documented in <a href="aliases.5.html">aliases(5)</a>. For an
overview of Postfix address manipulations see the <a href="ADDRESS_REWRITING_README.html">ADDRESS_REWRITING_README</a> overview of Postfix address manipulations see the <a href="ADDRESS_REWRITING_README.html">ADDRESS_REWRITING_README</a>
document. </p> document. </p>
@ -21619,8 +21620,9 @@ This feature is available in Postfix 2.1 and later.
(default: $<a href="postconf.5.html#virtual_maps">virtual_maps</a>)</b></DT><DD> (default: $<a href="postconf.5.html#virtual_maps">virtual_maps</a>)</b></DT><DD>
<p> <p>
Optional lookup tables with aliases that apply to all email deliveries, Optional lookup tables with aliases that apply to all email deliveries:
unlike <a href="postconf.5.html#alias_maps">alias_maps</a> that apply only to <a href="local.8.html">local(8)</a> delivery. <a href="local.8.html">local(8)</a>, virtual, and remote, unlike <a href="postconf.5.html#alias_maps">alias_maps</a> that apply only
to <a href="local.8.html">local(8)</a> delivery.
The table format and lookups The table format and lookups
are documented in <a href="virtual.5.html">virtual(5)</a>. For an overview of Postfix address are documented in <a href="virtual.5.html">virtual(5)</a>. For an overview of Postfix address
manipulations see the <a href="ADDRESS_REWRITING_README.html">ADDRESS_REWRITING_README</a> document. manipulations see the <a href="ADDRESS_REWRITING_README.html">ADDRESS_REWRITING_README</a> document.

View File

@ -135,7 +135,7 @@ the following convention: </p>
<li> <a href="access.5.html">access(5)</a>, Postfix SMTP access control table <li> <a href="access.5.html">access(5)</a>, Postfix SMTP access control table
<li> <a href="aliases.5.html">aliases(5)</a>, Postfix alias database <li> <a href="aliases.5.html">aliases(5)</a>, Postfix <a href="ADDRESS_REWRITING_README.html#aliases">local aliasing</a>
<li> <a href="canonical.5.html">canonical(5)</a>, Postfix input address rewriting <li> <a href="canonical.5.html">canonical(5)</a>, Postfix input address rewriting

View File

@ -346,7 +346,7 @@ POSTFIX(1) POSTFIX(1)
Table-driven mechanisms: Table-driven mechanisms:
<a href="access.5.html">access(5)</a>, Postfix SMTP access control table <a href="access.5.html">access(5)</a>, Postfix SMTP access control table
<a href="aliases.5.html">aliases(5)</a>, Postfix alias database <a href="aliases.5.html">aliases(5)</a>, Postfix <a href="ADDRESS_REWRITING_README.html#aliases">local aliasing</a>
<a href="canonical.5.html">canonical(5)</a>, Postfix input address rewriting <a href="canonical.5.html">canonical(5)</a>, Postfix input address rewriting
<a href="generic.5.html">generic(5)</a>, Postfix output address rewriting <a href="generic.5.html">generic(5)</a>, Postfix output address rewriting
<a href="header_checks.5.html">header_checks(5)</a>, <a href="header_checks.5.html">body_checks(5)</a>, Postfix content inspection <a href="header_checks.5.html">header_checks(5)</a>, <a href="header_checks.5.html">body_checks(5)</a>, Postfix content inspection

View File

@ -832,8 +832,8 @@ SMTPD(8) SMTPD(8)
<b><a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> ($<a href="postconf.5.html#virtual_maps">virtual_maps</a>)</b> <b><a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> ($<a href="postconf.5.html#virtual_maps">virtual_maps</a>)</b>
Optional lookup tables with aliases that apply to all email Optional lookup tables with aliases that apply to all email
deliveries, unlike <a href="postconf.5.html#alias_maps">alias_maps</a> that apply only to <a href="local.8.html"><b>local</b>(8)</a> deliv- deliveries: <a href="local.8.html"><b>local</b>(8)</a>, virtual, and remote, unlike <a href="postconf.5.html#alias_maps">alias_maps</a>
ery. that apply only to <a href="local.8.html"><b>local</b>(8)</a> delivery.
<b><a href="postconf.5.html#unknown_virtual_alias_reject_code">unknown_virtual_alias_reject_code</a> (550)</b> <b><a href="postconf.5.html#unknown_virtual_alias_reject_code">unknown_virtual_alias_reject_code</a> (550)</b>
The Postfix SMTP server reply code when a recipient address The Postfix SMTP server reply code when a recipient address

View File

@ -18,101 +18,102 @@ VIRTUAL(5) VIRTUAL(5)
<b>postmap -q - /etc/postfix/virtual</b> &lt;<i>inputfile</i> <b>postmap -q - /etc/postfix/virtual</b> &lt;<i>inputfile</i>
<b>DESCRIPTION</b> <b>DESCRIPTION</b>
The optional <a href="virtual.5.html"><b>virtual</b>(5)</a> alias table rewrites recipient addresses for The optional <a href="virtual.5.html"><b>virtual</b>(5)</a> alias table (<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a>) rewrites all
all local, all virtual, and all remote mail destinations. This is recipients: <a href="local.8.html">local(8)</a>, virtual, and remote. This feature is implemented
unlike the <a href="aliases.5.html"><b>aliases</b>(5)</a> table which is used only for <a href="local.8.html"><b>local</b>(8)</a> delivery. in the Postfix <a href="cleanup.8.html"><b>cleanup</b>(8)</a> daemon before mail is queued.
This feature is implemented in the Postfix <a href="cleanup.8.html"><b>cleanup</b>(8)</a> daemon before
mail is queued.
Virtual aliasing is recursive; to terminate recursion for a specific This is unlike the <a href="aliases.5.html"><b>aliases</b>(5)</a> table (<a href="postconf.5.html#alias_maps">alias_maps</a>) which is used only for
<a href="local.8.html"><b>local</b>(8)</a> delivery.
Virtual aliasing is recursive; to terminate recursion for a specific
address, alias that address to itself. address, alias that address to itself.
The main applications of <a href="ADDRESS_REWRITING_README.html#virtual">virtual aliasing</a> are: The main applications of <a href="ADDRESS_REWRITING_README.html#virtual">virtual aliasing</a> are:
<b>o</b> To redirect mail for one address to one or more addresses. <b>o</b> To redirect mail for one address to one or more addresses.
<b>o</b> To implement virtual alias domains where all addresses are <b>o</b> To implement virtual alias domains where all addresses are
aliased to addresses in other domains. aliased to addresses in other domains.
Virtual alias domains are not to be confused with the virtual Virtual alias domains are not to be confused with the virtual
mailbox domains that are implemented with the Postfix <a href="virtual.8.html"><b>virtual</b>(8)</a> mailbox domains that are implemented with the Postfix <a href="virtual.8.html"><b>virtual</b>(8)</a>
mail delivery agent. With <a href="ADDRESS_CLASS_README.html#virtual_mailbox_class">virtual mailbox domains</a>, each recipi- mail delivery agent. With <a href="ADDRESS_CLASS_README.html#virtual_mailbox_class">virtual mailbox domains</a>, each recipi-
ent address can have its own mailbox. ent address can have its own mailbox.
Virtual aliasing is applied only to recipient envelope addresses, and Virtual aliasing is applied only to recipient envelope addresses, and
does not affect message headers. Use <a href="canonical.5.html"><b>canonical</b>(5)</a> mapping to rewrite does not affect message headers. Use <a href="canonical.5.html"><b>canonical</b>(5)</a> mapping to rewrite
header and envelope addresses in general. header and envelope addresses in general.
Normally, the <a href="virtual.5.html"><b>virtual</b>(5)</a> alias table is specified as a text file that Normally, the <a href="virtual.5.html"><b>virtual</b>(5)</a> alias table is specified as a text file that
serves as input to the <a href="postmap.1.html"><b>postmap</b>(1)</a> command. The result, an indexed file serves as input to the <a href="postmap.1.html"><b>postmap</b>(1)</a> command. The result, an indexed file
in <b>dbm</b> or <b>db</b> format, is used for fast searching by the mail system. in <b>dbm</b> or <b>db</b> format, is used for fast searching by the mail system.
Execute the command "<b>postmap /etc/postfix/virtual</b>" to rebuild an Execute the command "<b>postmap /etc/postfix/virtual</b>" to rebuild an
indexed file after changing the corresponding text file. indexed file after changing the corresponding text file.
When the table is provided via other means such as NIS, LDAP or SQL, When the table is provided via other means such as NIS, LDAP or SQL,
the same lookups are done as for ordinary indexed files. the same lookups are done as for ordinary indexed files.
Alternatively, the table can be provided as a regular-expression map Alternatively, the table can be provided as a regular-expression map
where patterns are given as regular expressions, or lookups can be where patterns are given as regular expressions, or lookups can be
directed to a TCP-based server. In those case, the lookups are done in directed to a TCP-based server. In those case, the lookups are done in
a slightly different way as described below under "REGULAR EXPRESSION a slightly different way as described below under "REGULAR EXPRESSION
TABLES" or "TCP-BASED TABLES". TABLES" or "TCP-BASED TABLES".
<b>CASE FOLDING</b> <b>CASE FOLDING</b>
The search string is folded to lowercase before database lookup. As of The search string is folded to lowercase before database lookup. As of
Postfix 2.3, the search string is not case folded with database types Postfix 2.3, the search string is not case folded with database types
such as <a href="regexp_table.5.html">regexp</a>: or <a href="pcre_table.5.html">pcre</a>: whose lookup fields can match both upper and such as <a href="regexp_table.5.html">regexp</a>: or <a href="pcre_table.5.html">pcre</a>: whose lookup fields can match both upper and
lower case. lower case.
<b>TABLE FORMAT</b> <b>TABLE FORMAT</b>
The input format for the <a href="postmap.1.html"><b>postmap</b>(1)</a> command is as follows: The input format for the <a href="postmap.1.html"><b>postmap</b>(1)</a> command is as follows:
<i>pattern address, address, ...</i> <i>pattern address, address, ...</i>
When <i>pattern</i> matches a mail address, replace it by the corre- When <i>pattern</i> matches a mail address, replace it by the corre-
sponding <i>address</i>. sponding <i>address</i>.
blank lines and comments blank lines and comments
Empty lines and whitespace-only lines are ignored, as are lines Empty lines and whitespace-only lines are ignored, as are lines
whose first non-whitespace character is a `#'. whose first non-whitespace character is a `#'.
multi-line text multi-line text
A logical line starts with non-whitespace text. A line that A logical line starts with non-whitespace text. A line that
starts with whitespace continues a logical line. starts with whitespace continues a logical line.
<b>TABLE SEARCH ORDER</b> <b>TABLE SEARCH ORDER</b>
With lookups from indexed files such as DB or DBM, or from networked With lookups from indexed files such as DB or DBM, or from networked
tables such as NIS, LDAP or SQL, each <i>user</i>@<i>domain</i> query produces a tables such as NIS, LDAP or SQL, each <i>user</i>@<i>domain</i> query produces a
sequence of query patterns as described below. sequence of query patterns as described below.
Each query pattern is sent to each specified lookup table before trying Each query pattern is sent to each specified lookup table before trying
the next query pattern, until a match is found. the next query pattern, until a match is found.
<i>user</i>@<i>domain address, address, ...</i> <i>user</i>@<i>domain address, address, ...</i>
Redirect mail for <i>user</i>@<i>domain</i> to <i>address</i>. This form has the Redirect mail for <i>user</i>@<i>domain</i> to <i>address</i>. This form has the
highest precedence. highest precedence.
<i>user address, address, ...</i> <i>user address, address, ...</i>
Redirect mail for <i>user</i>@<i>site</i> to <i>address</i> when <i>site</i> is equal to Redirect mail for <i>user</i>@<i>site</i> to <i>address</i> when <i>site</i> is equal to
$<b><a href="postconf.5.html#myorigin">myorigin</a></b>, when <i>site</i> is listed in $<b><a href="postconf.5.html#mydestination">mydestination</a></b>, or when it is $<b><a href="postconf.5.html#myorigin">myorigin</a></b>, when <i>site</i> is listed in $<b><a href="postconf.5.html#mydestination">mydestination</a></b>, or when it is
listed in $<b><a href="postconf.5.html#inet_interfaces">inet_interfaces</a></b> or $<b><a href="postconf.5.html#proxy_interfaces">proxy_interfaces</a></b>. listed in $<b><a href="postconf.5.html#inet_interfaces">inet_interfaces</a></b> or $<b><a href="postconf.5.html#proxy_interfaces">proxy_interfaces</a></b>.
This functionality overlaps with the functionality of the local This functionality overlaps with the functionality of the local
<i>aliases</i>(5) database. The difference is that <a href="virtual.5.html"><b>virtual</b>(5)</a> mapping <i>aliases</i>(5) database. The difference is that <a href="virtual.5.html"><b>virtual</b>(5)</a> mapping
can be applied to non-local addresses. can be applied to non-local addresses.
@<i>domain address, address, ...</i> @<i>domain address, address, ...</i>
Redirect mail for other users in <i>domain</i> to <i>address</i>. This form Redirect mail for other users in <i>domain</i> to <i>address</i>. This form
has the lowest precedence. has the lowest precedence.
Note: @<i>domain</i> is a wild-card. With this form, the Postfix SMTP Note: @<i>domain</i> is a wild-card. With this form, the Postfix SMTP
server accepts mail for any recipient in <i>domain</i>, regardless of server accepts mail for any recipient in <i>domain</i>, regardless of
whether that recipient exists. This may turn your mail system whether that recipient exists. This may turn your mail system
into a backscatter source: Postfix first accepts mail for into a backscatter source: Postfix first accepts mail for
non-existent recipients and then tries to return that mail as non-existent recipients and then tries to return that mail as
"undeliverable" to the often forged sender address. "undeliverable" to the often forged sender address.
To avoid backscatter with mail for a wild-card domain, replace To avoid backscatter with mail for a wild-card domain, replace
the wild-card mapping with explicit 1:1 mappings, or add a the wild-card mapping with explicit 1:1 mappings, or add a
<a href="postconf.5.html#reject_unverified_recipient">reject_unverified_recipient</a> restriction for that domain: <a href="postconf.5.html#reject_unverified_recipient">reject_unverified_recipient</a> restriction for that domain:
<a href="postconf.5.html#smtpd_recipient_restrictions">smtpd_recipient_restrictions</a> = <a href="postconf.5.html#smtpd_recipient_restrictions">smtpd_recipient_restrictions</a> =
@ -128,11 +129,11 @@ VIRTUAL(5) VIRTUAL(5)
<b>RESULT ADDRESS REWRITING</b> <b>RESULT ADDRESS REWRITING</b>
The lookup result is subject to address rewriting: The lookup result is subject to address rewriting:
<b>o</b> When the result has the form @<i>otherdomain</i>, the result becomes <b>o</b> When the result has the form @<i>otherdomain</i>, the result becomes
the same <i>user</i> in <i>otherdomain</i>. This works only for the first the same <i>user</i> in <i>otherdomain</i>. This works only for the first
address in a multi-address lookup result. address in a multi-address lookup result.
<b>o</b> When "<b><a href="postconf.5.html#append_at_myorigin">append_at_myorigin</a>=yes</b>", append "<b>@$<a href="postconf.5.html#myorigin">myorigin</a></b>" to addresses <b>o</b> When "<b><a href="postconf.5.html#append_at_myorigin">append_at_myorigin</a>=yes</b>", append "<b>@$<a href="postconf.5.html#myorigin">myorigin</a></b>" to addresses
without "@domain". without "@domain".
<b>o</b> When "<b><a href="postconf.5.html#append_dot_mydomain">append_dot_mydomain</a>=yes</b>", append "<b>.$<a href="postconf.5.html#mydomain">mydomain</a></b>" to addresses <b>o</b> When "<b><a href="postconf.5.html#append_dot_mydomain">append_dot_mydomain</a>=yes</b>", append "<b>.$<a href="postconf.5.html#mydomain">mydomain</a></b>" to addresses
@ -140,26 +141,26 @@ VIRTUAL(5) VIRTUAL(5)
<b>ADDRESS EXTENSION</b> <b>ADDRESS EXTENSION</b>
When a mail address localpart contains the optional recipient delimiter When a mail address localpart contains the optional recipient delimiter
(e.g., <i>user+foo</i>@<i>domain</i>), the lookup order becomes: <i>user+foo</i>@<i>domain</i>, (e.g., <i>user+foo</i>@<i>domain</i>), the lookup order becomes: <i>user+foo</i>@<i>domain</i>,
<i>user</i>@<i>domain</i>, <i>user+foo</i>, <i>user</i>, and @<i>domain</i>. <i>user</i>@<i>domain</i>, <i>user+foo</i>, <i>user</i>, and @<i>domain</i>.
The <b><a href="postconf.5.html#propagate_unmatched_extensions">propagate_unmatched_extensions</a></b> parameter controls whether an The <b><a href="postconf.5.html#propagate_unmatched_extensions">propagate_unmatched_extensions</a></b> parameter controls whether an
unmatched address extension (<i>+foo</i>) is propagated to the result of a ta- unmatched address extension (<i>+foo</i>) is propagated to the result of a ta-
ble lookup. ble lookup.
<b>VIRTUAL ALIAS DOMAINS</b> <b>VIRTUAL ALIAS DOMAINS</b>
Besides virtual aliases, the virtual alias table can also be used to Besides virtual aliases, the virtual alias table can also be used to
implement virtual alias domains. With a <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a>, all implement <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domains</a>. With a virtual alias domain, all
recipient addresses are aliased to addresses in other domains. recipient addresses are aliased to addresses in other domains.
Virtual alias domains are not to be confused with the virtual mailbox Virtual alias domains are not to be confused with the virtual mailbox
domains that are implemented with the Postfix <a href="virtual.8.html"><b>virtual</b>(8)</a> mail delivery domains that are implemented with the Postfix <a href="virtual.8.html"><b>virtual</b>(8)</a> mail delivery
agent. With <a href="ADDRESS_CLASS_README.html#virtual_mailbox_class">virtual mailbox domains</a>, each recipient address can have agent. With virtual mailbox domains, each recipient address can have
its own mailbox. its own mailbox.
With a <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a>, the virtual domain has its own user name With a <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a>, the virtual domain has its own user name
space. Local (i.e. non-virtual) usernames are not visible in a virtual space. Local (i.e. non-virtual) usernames are not visible in a virtual
alias domain. In particular, local <a href="aliases.5.html"><b>aliases</b>(5)</a> and local mailing lists alias domain. In particular, local <a href="aliases.5.html"><b>aliases</b>(5)</a> and local mailing lists
are not visible as <i>localname@virtual-alias.domain</i>. are not visible as <i>localname@virtual-alias.domain</i>.
Support for a <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a> looks like: Support for a <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a> looks like:
@ -167,7 +168,7 @@ VIRTUAL(5) VIRTUAL(5)
/etc/postfix/<a href="postconf.5.html">main.cf</a>: /etc/postfix/<a href="postconf.5.html">main.cf</a>:
<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> = <a href="DATABASE_README.html#types">hash</a>:/etc/postfix/virtual <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> = <a href="DATABASE_README.html#types">hash</a>:/etc/postfix/virtual
Note: some systems use <b>dbm</b> databases instead of <b>hash</b>. See the output Note: some systems use <b>dbm</b> databases instead of <b>hash</b>. See the output
from "<b>postconf -m</b>" for available database types. from "<b>postconf -m</b>" for available database types.
/etc/postfix/virtual: /etc/postfix/virtual:
@ -177,46 +178,46 @@ VIRTUAL(5) VIRTUAL(5)
<i>user2@virtual-alias.domain address2, address3</i> <i>user2@virtual-alias.domain address2, address3</i>
The <i>virtual-alias.domain anything</i> entry is required for a virtual alias The <i>virtual-alias.domain anything</i> entry is required for a virtual alias
domain. <b>Without this entry, mail is rejected with "relay access</b> domain. <b>Without this entry, mail is rejected with "relay access</b>
<b>denied", or bounces with "mail loops back to myself".</b> <b>denied", or bounces with "mail loops back to myself".</b>
Do not specify <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a> names in the <a href="postconf.5.html"><b>main.cf</a> <a href="postconf.5.html#mydestination">mydestination</a></b> Do not specify <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a> names in the <a href="postconf.5.html"><b>main.cf</a> <a href="postconf.5.html#mydestination">mydestination</a></b>
or <b><a href="postconf.5.html#relay_domains">relay_domains</a></b> configuration parameters. or <b><a href="postconf.5.html#relay_domains">relay_domains</a></b> configuration parameters.
With a <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a>, the Postfix SMTP server accepts mail for With a <a href="ADDRESS_CLASS_README.html#virtual_alias_class">virtual alias domain</a>, the Postfix SMTP server accepts mail for
<i>known-user@virtual-alias.domain</i>, and rejects mail for <i>unknown-user</i>@<i>vir-</i> <i>known-user@virtual-alias.domain</i>, and rejects mail for <i>unknown-user</i>@<i>vir-</i>
<i>tual-alias.domain</i> as undeliverable. <i>tual-alias.domain</i> as undeliverable.
Instead of specifying the virtual alias domain name via the <b><a href="postconf.5.html#virtual_alias_maps">vir</a>-</b> Instead of specifying the virtual alias domain name via the <b><a href="postconf.5.html#virtual_alias_maps">vir</a>-</b>
<b><a href="postconf.5.html#virtual_alias_maps">tual_alias_maps</a></b> table, you may also specify it via the <a href="postconf.5.html"><b>main.cf</a> <a href="postconf.5.html#virtual_alias_domains">vir-</b> <b><a href="postconf.5.html#virtual_alias_maps">tual_alias_maps</a></b> table, you may also specify it via the <a href="postconf.5.html"><b>main.cf</a> <a href="postconf.5.html#virtual_alias_domains">vir-</b>
<b>tual_alias_domains</a></b> configuration parameter. This latter parameter uses <b>tual_alias_domains</a></b> configuration parameter. This latter parameter uses
the same syntax as the <a href="postconf.5.html"><b>main.cf</a> <a href="postconf.5.html#mydestination">mydestination</a></b> configuration parameter. the same syntax as the <a href="postconf.5.html"><b>main.cf</a> <a href="postconf.5.html#mydestination">mydestination</a></b> configuration parameter.
<b>REGULAR EXPRESSION TABLES</b> <b>REGULAR EXPRESSION TABLES</b>
This section describes how the table lookups change when the table is This section describes how the table lookups change when the table is
given in the form of regular expressions. For a description of regular given in the form of regular expressions. For a description of regular
expression lookup table syntax, see <a href="regexp_table.5.html"><b>regexp_table</b>(5)</a> or <a href="pcre_table.5.html"><b>pcre_table</b>(5)</a>. expression lookup table syntax, see <a href="regexp_table.5.html"><b>regexp_table</b>(5)</a> or <a href="pcre_table.5.html"><b>pcre_table</b>(5)</a>.
Each pattern is a regular expression that is applied to the entire Each pattern is a regular expression that is applied to the entire
address being looked up. Thus, <i>user@domain</i> mail addresses are not bro- address being looked up. Thus, <i>user@domain</i> mail addresses are not bro-
ken up into their <i>user</i> and <i>@domain</i> constituent parts, nor is <i>user+foo</i> ken up into their <i>user</i> and <i>@domain</i> constituent parts, nor is <i>user+foo</i>
broken up into <i>user</i> and <i>foo</i>. broken up into <i>user</i> and <i>foo</i>.
Patterns are applied in the order as specified in the table, until a Patterns are applied in the order as specified in the table, until a
pattern is found that matches the search string. pattern is found that matches the search string.
Results are the same as with indexed file lookups, with the additional Results are the same as with indexed file lookups, with the additional
feature that parenthesized substrings from the pattern can be interpo- feature that parenthesized substrings from the pattern can be interpo-
lated as <b>$1</b>, <b>$2</b> and so on. lated as <b>$1</b>, <b>$2</b> and so on.
<b>TCP-BASED TABLES</b> <b>TCP-BASED TABLES</b>
This section describes how the table lookups change when lookups are This section describes how the table lookups change when lookups are
directed to a TCP-based server. For a description of the TCP directed to a TCP-based server. For a description of the TCP
client/server lookup protocol, see <a href="tcp_table.5.html"><b>tcp_table</b>(5)</a>. This feature is client/server lookup protocol, see <a href="tcp_table.5.html"><b>tcp_table</b>(5)</a>. This feature is
available in Postfix 2.5 and later. available in Postfix 2.5 and later.
Each lookup operation uses the entire address once. Thus, <i>user@domain</i> Each lookup operation uses the entire address once. Thus, <i>user@domain</i>
mail addresses are not broken up into their <i>user</i> and <i>@domain</i> con- mail addresses are not broken up into their <i>user</i> and <i>@domain</i> con-
stituent parts, nor is <i>user+foo</i> broken up into <i>user</i> and <i>foo</i>. stituent parts, nor is <i>user+foo</i> broken up into <i>user</i> and <i>foo</i>.
Results are the same as with indexed file lookups. Results are the same as with indexed file lookups.
@ -230,8 +231,9 @@ VIRTUAL(5) VIRTUAL(5)
Use the "<b>postfix reload</b>" command after a configuration change. Use the "<b>postfix reload</b>" command after a configuration change.
<b><a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> ($<a href="postconf.5.html#virtual_maps">virtual_maps</a>)</b> <b><a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> ($<a href="postconf.5.html#virtual_maps">virtual_maps</a>)</b>
Optional lookup tables that alias specific mail addresses or Optional lookup tables with aliases that apply to all email
domains to other local or remote addresses. deliveries: <a href="local.8.html"><b>local</b>(8)</a>, virtual, and remote, unlike <a href="postconf.5.html#alias_maps">alias_maps</a>
that apply only to <a href="local.8.html"><b>local</b>(8)</a> delivery.
<b><a href="postconf.5.html#virtual_alias_domains">virtual_alias_domains</a> ($<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a>)</b> <b><a href="postconf.5.html#virtual_alias_domains">virtual_alias_domains</a> ($<a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a>)</b>
Postfix is the final destination for the specified list of vir- Postfix is the final destination for the specified list of vir-
@ -245,8 +247,8 @@ VIRTUAL(5) VIRTUAL(5)
Other parameters of interest: Other parameters of interest:
<b><a href="postconf.5.html#inet_interfaces">inet_interfaces</a> (all)</b> <b><a href="postconf.5.html#inet_interfaces">inet_interfaces</a> (all)</b>
The network interface addresses that this mail system receives The local network interface addresses that this mail system
mail on. receives mail on.
<b><a href="postconf.5.html#mydestination">mydestination</a> ($<a href="postconf.5.html#myhostname">myhostname</a>, localhost.$<a href="postconf.5.html#mydomain">mydomain</a>, localhost)</b> <b><a href="postconf.5.html#mydestination">mydestination</a> ($<a href="postconf.5.html#myhostname">myhostname</a>, localhost.$<a href="postconf.5.html#mydomain">mydomain</a>, localhost)</b>
The list of domains that are delivered via the $<a href="postconf.5.html#local_transport">local_transport</a> The list of domains that are delivered via the $<a href="postconf.5.html#local_transport">local_transport</a>
@ -263,8 +265,9 @@ VIRTUAL(5) VIRTUAL(5)
set to "-". set to "-".
<b><a href="postconf.5.html#proxy_interfaces">proxy_interfaces</a> (empty)</b> <b><a href="postconf.5.html#proxy_interfaces">proxy_interfaces</a> (empty)</b>
The network interface addresses that this mail system receives The remote network interface addresses that this mail system
mail on by way of a proxy or network address translation unit. receives mail on by way of a proxy or network address transla-
tion unit.
<b>SEE ALSO</b> <b>SEE ALSO</b>
<a href="cleanup.8.html">cleanup(8)</a>, canonicalize and enqueue mail <a href="cleanup.8.html">cleanup(8)</a>, canonicalize and enqueue mail

View File

@ -317,7 +317,7 @@ postfix\-wrapper(5), Postfix multi\-instance API
Table\-driven mechanisms: Table\-driven mechanisms:
access(5), Postfix SMTP access control table access(5), Postfix SMTP access control table
aliases(5), Postfix alias database aliases(5), Postfix local aliasing
canonical(5), Postfix input address rewriting canonical(5), Postfix input address rewriting
generic(5), Postfix output address rewriting generic(5), Postfix output address rewriting
header_checks(5), body_checks(5), Postfix content inspection header_checks(5), body_checks(5), Postfix content inspection

View File

@ -13,9 +13,13 @@ Postfix local alias database format
.SH DESCRIPTION .SH DESCRIPTION
.ad .ad
.fi .fi
The \fBaliases\fR(5) table provides a system\-wide mechanism to The optional \fBaliases\fR(5) table (alias_maps) redirects
redirect mail for local recipients. The redirections are mail for local recipients. The redirections are processed
processed by the Postfix \fBlocal\fR(8) delivery agent. by the Postfix \fBlocal\fR(8) delivery agent.
This is unlike \fBvirtual\fR(5) aliasing (virtual_alias_maps)
which applies to all recipients: local(8), virtual, and remote,
and which is implemented by the \fBcleanup\fR(8) daemon.
Normally, the \fBaliases\fR(5) table is specified as a text file Normally, the \fBaliases\fR(5) table is specified as a text file
that serves as input to the \fBpostalias\fR(1) command. The that serves as input to the \fBpostalias\fR(1) command. The
@ -165,7 +169,9 @@ The text below provides only a parameter summary. See
The alias databases for \fBlocal\fR(8) delivery that are updated with The alias databases for \fBlocal\fR(8) delivery that are updated with
"\fBnewaliases\fR" or with "\fBsendmail \-bi\fR". "\fBnewaliases\fR" or with "\fBsendmail \-bi\fR".
.IP "\fBalias_maps (see 'postconf -d' output)\fR" .IP "\fBalias_maps (see 'postconf -d' output)\fR"
The alias databases that are used for \fBlocal\fR(8) delivery. Optional lookup tables with aliases that apply only to \fBlocal\fR(8)
delivery, unlike virtual_alias_maps that apply to all email deliveries:
\fBlocal\fR(8), virtual, and remote.
.IP "\fBallow_mail_to_commands (alias, forward)\fR" .IP "\fBallow_mail_to_commands (alias, forward)\fR"
Restrict \fBlocal\fR(8) mail delivery to external commands. Restrict \fBlocal\fR(8) mail delivery to external commands.
.IP "\fBallow_mail_to_files (alias, forward)\fR" .IP "\fBallow_mail_to_files (alias, forward)\fR"

View File

@ -359,7 +359,8 @@ alias_database = hash:/etc/mail/aliases
.ft R .ft R
.SH alias_maps (default: see "postconf \-d" output) .SH alias_maps (default: see "postconf \-d" output)
Optional lookup tables with aliases that apply only to \fBlocal\fR(8) Optional lookup tables with aliases that apply only to \fBlocal\fR(8)
delivery, unlike virtual_alias_maps that apply to all email deliveries. delivery, unlike virtual_alias_maps that apply to all email deliveries:
\fBlocal\fR(8), virtual, and remote.
The table format and lookups are documented in \fBaliases\fR(5). For an The table format and lookups are documented in \fBaliases\fR(5). For an
overview of Postfix address manipulations see the ADDRESS_REWRITING_README overview of Postfix address manipulations see the ADDRESS_REWRITING_README
document. document.
@ -15228,8 +15229,9 @@ from each original recipient.
.PP .PP
This feature is available in Postfix 2.1 and later. This feature is available in Postfix 2.1 and later.
.SH virtual_alias_maps (default: $virtual_maps) .SH virtual_alias_maps (default: $virtual_maps)
Optional lookup tables with aliases that apply to all email deliveries, Optional lookup tables with aliases that apply to all email deliveries:
unlike alias_maps that apply only to \fBlocal\fR(8) delivery. \fBlocal\fR(8), virtual, and remote, unlike alias_maps that apply only
to \fBlocal\fR(8) delivery.
The table format and lookups The table format and lookups
are documented in \fBvirtual\fR(5). For an overview of Postfix address are documented in \fBvirtual\fR(5). For an overview of Postfix address
manipulations see the ADDRESS_REWRITING_README document. manipulations see the ADDRESS_REWRITING_README document.

View File

@ -16,13 +16,14 @@ Postfix virtual alias table format
.SH DESCRIPTION .SH DESCRIPTION
.ad .ad
.fi .fi
The optional \fBvirtual\fR(5) alias table rewrites recipient The optional \fBvirtual\fR(5) alias table (virtual_alias_maps)
addresses for all local, all virtual, and all remote mail rewrites all recipients: local(8), virtual, and remote.
destinations. This feature is implemented
This is unlike the \fBaliases\fR(5) table which is used
only for \fBlocal\fR(8) delivery. This feature is implemented
in the Postfix \fBcleanup\fR(8) daemon before mail is queued. in the Postfix \fBcleanup\fR(8) daemon before mail is queued.
This is unlike the \fBaliases\fR(5) table (alias_maps) which
is used only for \fBlocal\fR(8) delivery.
Virtual aliasing is recursive; to terminate recursion for Virtual aliasing is recursive; to terminate recursion for
a specific address, alias that address to itself. a specific address, alias that address to itself.
@ -270,8 +271,9 @@ this topic. See the Postfix \fBmain.cf\fR file for syntax details
and for default values. Use the "\fBpostfix reload\fR" command after and for default values. Use the "\fBpostfix reload\fR" command after
a configuration change. a configuration change.
.IP "\fBvirtual_alias_maps ($virtual_maps)\fR" .IP "\fBvirtual_alias_maps ($virtual_maps)\fR"
Optional lookup tables that alias specific mail addresses or domains Optional lookup tables with aliases that apply to all email deliveries:
to other local or remote addresses. \fBlocal\fR(8), virtual, and remote, unlike alias_maps that apply only
to \fBlocal\fR(8) delivery.
.IP "\fBvirtual_alias_domains ($virtual_alias_maps)\fR" .IP "\fBvirtual_alias_domains ($virtual_alias_maps)\fR"
Postfix is the final destination for the specified list of virtual Postfix is the final destination for the specified list of virtual
alias domains, that is, domains for which all addresses are aliased alias domains, that is, domains for which all addresses are aliased
@ -282,7 +284,7 @@ key to the lookup result.
.PP .PP
Other parameters of interest: Other parameters of interest:
.IP "\fBinet_interfaces (all)\fR" .IP "\fBinet_interfaces (all)\fR"
The network interface addresses that this mail system receives The local network interface addresses that this mail system receives
mail on. mail on.
.IP "\fBmydestination ($myhostname, localhost.$mydomain, localhost)\fR" .IP "\fBmydestination ($myhostname, localhost.$mydomain, localhost)\fR"
The list of domains that are delivered via the $local_transport The list of domains that are delivered via the $local_transport
@ -296,7 +298,7 @@ Enable special treatment for owner\-\fIlistname\fR entries in the
\fIlistname\fR\-request address localparts when the recipient_delimiter \fIlistname\fR\-request address localparts when the recipient_delimiter
is set to "\-". is set to "\-".
.IP "\fBproxy_interfaces (empty)\fR" .IP "\fBproxy_interfaces (empty)\fR"
The network interface addresses that this mail system receives mail The remote network interface addresses that this mail system receives mail
on by way of a proxy or network address translation unit. on by way of a proxy or network address translation unit.
.SH "SEE ALSO" .SH "SEE ALSO"
.na .na

View File

@ -321,8 +321,9 @@ remote domains.
.PP .PP
Available in Postfix version 2.0 and later: Available in Postfix version 2.0 and later:
.IP "\fBvirtual_alias_maps ($virtual_maps)\fR" .IP "\fBvirtual_alias_maps ($virtual_maps)\fR"
Optional lookup tables with aliases that apply to all email deliveries, Optional lookup tables with aliases that apply to all email deliveries:
unlike alias_maps that apply only to \fBlocal\fR(8) delivery. \fBlocal\fR(8), virtual, and remote, unlike alias_maps that apply only
to \fBlocal\fR(8) delivery.
.PP .PP
Available in Postfix version 2.2 and later: Available in Postfix version 2.2 and later:
.IP "\fBcanonical_classes (envelope_sender, envelope_recipient, header_sender, header_recipient)\fR" .IP "\fBcanonical_classes (envelope_sender, envelope_recipient, header_sender, header_recipient)\fR"

View File

@ -450,7 +450,8 @@ home_mailbox, mail_spool_directory, fallback_transport_maps,
fallback_transport, and luser_relay. fallback_transport, and luser_relay.
.IP "\fBalias_maps (see 'postconf -d' output)\fR" .IP "\fBalias_maps (see 'postconf -d' output)\fR"
Optional lookup tables with aliases that apply only to \fBlocal\fR(8) Optional lookup tables with aliases that apply only to \fBlocal\fR(8)
delivery, unlike virtual_alias_maps that apply to all email deliveries. delivery, unlike virtual_alias_maps that apply to all email deliveries:
\fBlocal\fR(8), virtual, and remote.
.IP "\fBforward_path (see 'postconf -d' output)\fR" .IP "\fBforward_path (see 'postconf -d' output)\fR"
The \fBlocal\fR(8) delivery agent search list for finding a .forward The \fBlocal\fR(8) delivery agent search list for finding a .forward
file with user\-specified delivery methods. file with user\-specified delivery methods.

View File

@ -735,8 +735,9 @@ Postfix is the final destination for the specified list of virtual
alias domains, that is, domains for which all addresses are aliased alias domains, that is, domains for which all addresses are aliased
to addresses in other local or remote domains. to addresses in other local or remote domains.
.IP "\fBvirtual_alias_maps ($virtual_maps)\fR" .IP "\fBvirtual_alias_maps ($virtual_maps)\fR"
Optional lookup tables with aliases that apply to all email deliveries, Optional lookup tables with aliases that apply to all email deliveries:
unlike alias_maps that apply only to \fBlocal\fR(8) delivery. \fBlocal\fR(8), virtual, and remote, unlike alias_maps that apply only
to \fBlocal\fR(8) delivery.
.IP "\fBunknown_virtual_alias_reject_code (550)\fR" .IP "\fBunknown_virtual_alias_reject_code (550)\fR"
The Postfix SMTP server reply code when a recipient address matches The Postfix SMTP server reply code when a recipient address matches
$virtual_alias_domains, and $virtual_alias_maps specifies a list $virtual_alias_domains, and $virtual_alias_maps specifies a list

View File

@ -772,8 +772,8 @@ for an overview of methods to host virtual domains with Postfix.
</p> </p>
<p> Note: virtual aliasing (virtual_alias_maps) applies to all email <p> Note: virtual aliasing (virtual_alias_maps) applies to all email
deliveries, unlike local aliasing (alias_maps) which applies only deliveries: local(8), virtual, and remote. This is unlike local
to local(8) delivery. </p> aliasing (alias_maps) which applies only to local(8) delivery. </p>
<p> Virtual aliasing is disabled by default. To enable, edit the <p> Virtual aliasing is disabled by default. To enable, edit the
virtual_alias_maps parameter in the main.cf file and virtual_alias_maps parameter in the main.cf file and
@ -1061,8 +1061,9 @@ The table can also be used to map "Firstname.Lastname" addresses
to login names. </p> to login names. </p>
<p> Note: local aliasing (alias_maps) applies only to local(8) <p> Note: local aliasing (alias_maps) applies only to local(8)
delivery, unlike virtual aliasing (virtual_alias_maps) which applies delivery. This is unlike virtual aliasing (virtual_alias_maps)
to all email deliveries. </p> which applies to all email deliveries: local(8), virtual, and remote.
</p>
<p> Alias lookups are enabled by default. The default configuration <p> Alias lookups are enabled by default. The default configuration
depends on the operating system environment, but it is typically depends on the operating system environment, but it is typically

View File

@ -59,7 +59,7 @@ documentation: </p>
alias_maps = hash:/etc/postfix/aliases (local aliasing) alias_maps = hash:/etc/postfix/aliases (local aliasing)
header_checks = regexp:/etc/postfix/header_checks (content filtering) header_checks = regexp:/etc/postfix/header_checks (content filtering)
transport_maps = hash:/etc/postfix/transport (routing table) transport_maps = hash:/etc/postfix/transport (routing table)
virtual_alias_maps = hash:/etc/postfix/virtual (address rewriting) virtual_alias_maps = hash:/etc/postfix/virtual (virtual aliasing)
</pre> </pre>
</blockquote> </blockquote>

View File

@ -7,9 +7,13 @@
# .fi # .fi
# \fBnewaliases\fR # \fBnewaliases\fR
# DESCRIPTION # DESCRIPTION
# The \fBaliases\fR(5) table provides a system-wide mechanism to # The optional \fBaliases\fR(5) table (alias_maps) redirects
# redirect mail for local recipients. The redirections are # mail for local recipients. The redirections are processed
# processed by the Postfix \fBlocal\fR(8) delivery agent. # by the Postfix \fBlocal\fR(8) delivery agent.
#
# This is unlike \fBvirtual\fR(5) aliasing (virtual_alias_maps)
# which applies to all recipients: local(8), virtual, and remote,
# and which is implemented by the \fBcleanup\fR(8) daemon.
# #
# Normally, the \fBaliases\fR(5) table is specified as a text file # Normally, the \fBaliases\fR(5) table is specified as a text file
# that serves as input to the \fBpostalias\fR(1) command. The # that serves as input to the \fBpostalias\fR(1) command. The
@ -149,7 +153,9 @@
# The alias databases for \fBlocal\fR(8) delivery that are updated with # The alias databases for \fBlocal\fR(8) delivery that are updated with
# "\fBnewaliases\fR" or with "\fBsendmail -bi\fR". # "\fBnewaliases\fR" or with "\fBsendmail -bi\fR".
# .IP "\fBalias_maps (see 'postconf -d' output)\fR" # .IP "\fBalias_maps (see 'postconf -d' output)\fR"
# The alias databases that are used for \fBlocal\fR(8) delivery. # Optional lookup tables with aliases that apply only to \fBlocal\fR(8)
# delivery, unlike virtual_alias_maps that apply to all email deliveries:
# \fBlocal\fR(8), virtual, and remote.
# .IP "\fBallow_mail_to_commands (alias, forward)\fR" # .IP "\fBallow_mail_to_commands (alias, forward)\fR"
# Restrict \fBlocal\fR(8) mail delivery to external commands. # Restrict \fBlocal\fR(8) mail delivery to external commands.
# .IP "\fBallow_mail_to_files (alias, forward)\fR" # .IP "\fBallow_mail_to_files (alias, forward)\fR"

View File

@ -490,7 +490,8 @@ alias_database = hash:/etc/mail/aliases
<p> <p>
Optional lookup tables with aliases that apply only to local(8) Optional lookup tables with aliases that apply only to local(8)
delivery, unlike virtual_alias_maps that apply to all email deliveries. delivery, unlike virtual_alias_maps that apply to all email deliveries:
local(8), virtual, and remote.
The table format and lookups are documented in aliases(5). For an The table format and lookups are documented in aliases(5). For an
overview of Postfix address manipulations see the ADDRESS_REWRITING_README overview of Postfix address manipulations see the ADDRESS_REWRITING_README
document. </p> document. </p>
@ -7284,8 +7285,9 @@ This feature is available in Postfix 2.1 and later.
%PARAM virtual_alias_maps $virtual_maps %PARAM virtual_alias_maps $virtual_maps
<p> <p>
Optional lookup tables with aliases that apply to all email deliveries, Optional lookup tables with aliases that apply to all email deliveries:
unlike alias_maps that apply only to local(8) delivery. local(8), virtual, and remote, unlike alias_maps that apply only
to local(8) delivery.
The table format and lookups The table format and lookups
are documented in virtual(5). For an overview of Postfix address are documented in virtual(5). For an overview of Postfix address
manipulations see the ADDRESS_REWRITING_README document. manipulations see the ADDRESS_REWRITING_README document.

View File

@ -45,3 +45,6 @@ proto proto ADDRESS_REWRITING_README html
cleanup cleanup c local local c smtpd smtpd c cleanup cleanup c local local c smtpd smtpd c
cleanup cleanup c local local c smtpd smtpd c cleanup cleanup c local local c smtpd smtpd c
cleanup cleanup c local local c smtpd smtpd c cleanup cleanup c local local c smtpd smtpd c
postfix postfix c
aliasing Files proto aliases proto virtual postfix postfix c
proto proto aliases proto virtual proto ADDRESS_REWRITING_README html

View File

@ -246,3 +246,4 @@ dt dt b name value b Postfix ge 3 0 dt
parametername stress something something Other parametername stress something something Other
p Note on OpenBSD systems specify dev dev arandom when dev dev urandom p Note on OpenBSD systems specify dev dev arandom when dev dev urandom
user3 example net smtp smtp relay example net submission user3 example net smtp smtp relay example net submission
virtual_alias_maps hash etc postfix virtual virtual aliasing

View File

@ -10,13 +10,14 @@
# #
# \fBpostmap -q - /etc/postfix/virtual <\fIinputfile\fR # \fBpostmap -q - /etc/postfix/virtual <\fIinputfile\fR
# DESCRIPTION # DESCRIPTION
# The optional \fBvirtual\fR(5) alias table rewrites recipient # The optional \fBvirtual\fR(5) alias table (virtual_alias_maps)
# addresses for all local, all virtual, and all remote mail # rewrites all recipients: local(8), virtual, and remote.
# destinations. # This feature is implemented
# This is unlike the \fBaliases\fR(5) table which is used
# only for \fBlocal\fR(8) delivery. This feature is implemented
# in the Postfix \fBcleanup\fR(8) daemon before mail is queued. # in the Postfix \fBcleanup\fR(8) daemon before mail is queued.
# #
# This is unlike the \fBaliases\fR(5) table (alias_maps) which
# is used only for \fBlocal\fR(8) delivery.
#
# Virtual aliasing is recursive; to terminate recursion for # Virtual aliasing is recursive; to terminate recursion for
# a specific address, alias that address to itself. # a specific address, alias that address to itself.
# #
@ -244,8 +245,9 @@
# and for default values. Use the "\fBpostfix reload\fR" command after # and for default values. Use the "\fBpostfix reload\fR" command after
# a configuration change. # a configuration change.
# .IP "\fBvirtual_alias_maps ($virtual_maps)\fR" # .IP "\fBvirtual_alias_maps ($virtual_maps)\fR"
# Optional lookup tables that alias specific mail addresses or domains # Optional lookup tables with aliases that apply to all email deliveries:
# to other local or remote addresses. # \fBlocal\fR(8), virtual, and remote, unlike alias_maps that apply only
# to \fBlocal\fR(8) delivery.
# .IP "\fBvirtual_alias_domains ($virtual_alias_maps)\fR" # .IP "\fBvirtual_alias_domains ($virtual_alias_maps)\fR"
# Postfix is the final destination for the specified list of virtual # Postfix is the final destination for the specified list of virtual
# alias domains, that is, domains for which all addresses are aliased # alias domains, that is, domains for which all addresses are aliased
@ -256,7 +258,7 @@
# .PP # .PP
# Other parameters of interest: # Other parameters of interest:
# .IP "\fBinet_interfaces (all)\fR" # .IP "\fBinet_interfaces (all)\fR"
# The network interface addresses that this mail system receives # The local network interface addresses that this mail system receives
# mail on. # mail on.
# .IP "\fBmydestination ($myhostname, localhost.$mydomain, localhost)\fR" # .IP "\fBmydestination ($myhostname, localhost.$mydomain, localhost)\fR"
# The list of domains that are delivered via the $local_transport # The list of domains that are delivered via the $local_transport
@ -270,7 +272,7 @@
# \fIlistname\fR-request address localparts when the recipient_delimiter # \fIlistname\fR-request address localparts when the recipient_delimiter
# is set to "-". # is set to "-".
# .IP "\fBproxy_interfaces (empty)\fR" # .IP "\fBproxy_interfaces (empty)\fR"
# The network interface addresses that this mail system receives mail # The remote network interface addresses that this mail system receives mail
# on by way of a proxy or network address translation unit. # on by way of a proxy or network address translation unit.
# SEE ALSO # SEE ALSO
# cleanup(8), canonicalize and enqueue mail # cleanup(8), canonicalize and enqueue mail

View File

@ -295,8 +295,9 @@
/* .PP /* .PP
/* Available in Postfix version 2.0 and later: /* Available in Postfix version 2.0 and later:
/* .IP "\fBvirtual_alias_maps ($virtual_maps)\fR" /* .IP "\fBvirtual_alias_maps ($virtual_maps)\fR"
/* Optional lookup tables with aliases that apply to all email deliveries, /* Optional lookup tables with aliases that apply to all email deliveries:
/* unlike alias_maps that apply only to \fBlocal\fR(8) delivery. /* \fBlocal\fR(8), virtual, and remote, unlike alias_maps that apply only
/* to \fBlocal\fR(8) delivery.
/* .PP /* .PP
/* Available in Postfix version 2.2 and later: /* Available in Postfix version 2.2 and later:
/* .IP "\fBcanonical_classes (envelope_sender, envelope_recipient, header_sender, header_recipient)\fR" /* .IP "\fBcanonical_classes (envelope_sender, envelope_recipient, header_sender, header_recipient)\fR"

View File

@ -20,7 +20,7 @@
* Patches change both the patchlevel and the release date. Snapshots have no * Patches change both the patchlevel and the release date. Snapshots have no
* patchlevel; they change the release date only. * patchlevel; they change the release date only.
*/ */
#define MAIL_RELEASE_DATE "20230505" #define MAIL_RELEASE_DATE "20230507"
#define MAIL_VERSION_NUMBER "3.9" #define MAIL_VERSION_NUMBER "3.9"
#ifdef SNAPSHOT #ifdef SNAPSHOT

View File

@ -11,7 +11,7 @@
/* wildcard_inet_addr() determines all wild-card addresses /* wildcard_inet_addr() determines all wild-card addresses
/* for all supported address families. /* for all supported address families.
/* DIAGNOSTICS /* DIAGNOSTICS
/* Fatal errors: out of memory. /* Fatal errors: out of memory; no wildcard addresses.
/* SEE ALSO /* SEE ALSO
/* inet_addr_list(3) address list management /* inet_addr_list(3) address list management
/* LICENSE /* LICENSE

View File

@ -414,7 +414,8 @@
/* fallback_transport, and luser_relay. /* fallback_transport, and luser_relay.
/* .IP "\fBalias_maps (see 'postconf -d' output)\fR" /* .IP "\fBalias_maps (see 'postconf -d' output)\fR"
/* Optional lookup tables with aliases that apply only to \fBlocal\fR(8) /* Optional lookup tables with aliases that apply only to \fBlocal\fR(8)
/* delivery, unlike virtual_alias_maps that apply to all email deliveries. /* delivery, unlike virtual_alias_maps that apply to all email deliveries:
/* \fBlocal\fR(8), virtual, and remote.
/* .IP "\fBforward_path (see 'postconf -d' output)\fR" /* .IP "\fBforward_path (see 'postconf -d' output)\fR"
/* The \fBlocal\fR(8) delivery agent search list for finding a .forward /* The \fBlocal\fR(8) delivery agent search list for finding a .forward
/* file with user-specified delivery methods. /* file with user-specified delivery methods.

View File

@ -367,17 +367,14 @@ MASTER_SERV *get_master_ent()
inet_addr_list_uniq(MASTER_INET_ADDRLIST(serv)); inet_addr_list_uniq(MASTER_INET_ADDRLIST(serv));
serv->listen_fd_count = MASTER_INET_ADDRLIST(serv)->used; serv->listen_fd_count = MASTER_INET_ADDRLIST(serv)->used;
} else { } else {
if (strcasecmp(saved_interfaces, INET_INTERFACES_ALL) == 0) { MASTER_INET_ADDRLIST(serv) =
MASTER_INET_ADDRLIST(serv) = wildcard_inet_addr_list(); strcasecmp(saved_interfaces, INET_INTERFACES_ALL) ?
/* Errors, and no interface found, are fatal. */ own_inet_addr_list() : /* result can be empty */
} else { wildcard_inet_addr_list(); /* result can't be empty */
MASTER_INET_ADDRLIST(serv) = own_inet_addr_list(); if (MASTER_INET_ADDRLIST(serv)->used == 0)
/* Errors are fatal, but inet_interfaces can be empty. */ fatal_with_context("service definition requires valid"
if (MASTER_INET_ADDRLIST(serv)->used == 0) " host name or address, or non-empty"
fatal_with_context("service definition requires valid" " %s setting", VAR_INET_INTERFACES);
" host name or address, or non-empty"
" %s setting", VAR_INET_INTERFACES);
}
inet_addr_list_uniq(MASTER_INET_ADDRLIST(serv)); inet_addr_list_uniq(MASTER_INET_ADDRLIST(serv));
serv->listen_fd_count = MASTER_INET_ADDRLIST(serv)->used; serv->listen_fd_count = MASTER_INET_ADDRLIST(serv)->used;
} }

View File

@ -303,7 +303,7 @@
/* /*
/* Table-driven mechanisms: /* Table-driven mechanisms:
/* access(5), Postfix SMTP access control table /* access(5), Postfix SMTP access control table
/* aliases(5), Postfix alias database /* aliases(5), Postfix local aliasing
/* canonical(5), Postfix input address rewriting /* canonical(5), Postfix input address rewriting
/* generic(5), Postfix output address rewriting /* generic(5), Postfix output address rewriting
/* header_checks(5), body_checks(5), Postfix content inspection /* header_checks(5), body_checks(5), Postfix content inspection

View File

@ -691,8 +691,9 @@
/* alias domains, that is, domains for which all addresses are aliased /* alias domains, that is, domains for which all addresses are aliased
/* to addresses in other local or remote domains. /* to addresses in other local or remote domains.
/* .IP "\fBvirtual_alias_maps ($virtual_maps)\fR" /* .IP "\fBvirtual_alias_maps ($virtual_maps)\fR"
/* Optional lookup tables with aliases that apply to all email deliveries, /* Optional lookup tables with aliases that apply to all email deliveries:
/* unlike alias_maps that apply only to \fBlocal\fR(8) delivery. /* \fBlocal\fR(8), virtual, and remote, unlike alias_maps that apply only
/* to \fBlocal\fR(8) delivery.
/* .IP "\fBunknown_virtual_alias_reject_code (550)\fR" /* .IP "\fBunknown_virtual_alias_reject_code (550)\fR"
/* The Postfix SMTP server reply code when a recipient address matches /* The Postfix SMTP server reply code when a recipient address matches
/* $virtual_alias_domains, and $virtual_alias_maps specifies a list /* $virtual_alias_domains, and $virtual_alias_maps specifies a list