|
|
12796d |
# A domain-specific form of aliasing, allowing multiple virtual domains to be
|
|
|
12796d |
# hosted on one machine.
|
|
|
12796d |
#
|
|
|
12796d |
# info@foo.com foo-info
|
|
|
12796d |
# info@bar.com bar-info
|
|
|
12796d |
# joe@bar.com error:nouser 550 No such user here
|
|
|
12796d |
# jax@bar.com error:5.7.0:550 Address invalid
|
|
|
12796d |
# @baz.org jane@example.net
|
|
|
12796d |
#
|
|
|
12796d |
# then mail addressed to info@foo.com will be sent to the address foo-info,
|
|
|
12796d |
# mail addressed to info@bar.com will be delivered to bar-info, and mail
|
|
|
12796d |
# addressed to anyone at baz.org will be sent to jane@example.net, mail to
|
|
|
12796d |
# joe@bar.com will be rejected with the specified error message, and mail to
|
|
|
12796d |
# jax@bar.com will also have a RFC 1893 compliant error code 5.7.0.
|
|
|
12796d |
#
|
|
|
12796d |
# The username from the original address is passed as %1 allowing:
|
|
|
12796d |
#
|
|
|
12796d |
# @foo.org %1@example.com
|
|
|
12796d |
#
|
|
|
12796d |
# Additionally, if the local part consists of "user+detail" then "detail" is
|
|
|
12796d |
# passed as %2 and "+detail" is passed as %3 when a match against user+* is
|
|
|
12796d |
# attempted, so entries like
|
|
|
12796d |
#
|
|
|
12796d |
# old+*@foo.org new+%2@example.com
|
|
|
12796d |
# gen+*@foo.org %2@example.com
|
|
|
12796d |
# +*@foo.org %1%3@example.com
|
|
|
12796d |
# X++@foo.org Z%3@example.com
|
|
|
12796d |
# @bar.org %1%3
|
|
|
12796d |
#
|
|
|
12796d |
# Note: to preserve "+detail" for a default case (@domain) %1%3 must be used
|
|
|
12796d |
# as RHS. There are two wildcards after "+": "+" matches only a non-empty
|
|
|
12796d |
# detail, "*" matches also empty details, e.g., user+@foo.org matches#
|
|
|
12796d |
# +*@foo.org but not ++@foo.org. This can be used to ensure that the
|
|
|
12796d |
# parameters %2 and %3 are not empty.
|
|
|
12796d |
#
|
|
|
12796d |
# All the host names on the left hand side (foo.com, bar.com, and baz.org)
|
|
|
12796d |
# must be in class {w} or class {VirtHost}. The latter can be defined by the
|
|
|
12796d |
# macros VIRTUSER_DOMAIN or VIRTUSER_DOMAIN_FILE (analogously to
|
|
|
12796d |
# MASQUERADE_DOMAIN and MASQUERADE_DOMAIN_FILE). If VIRTUSER_DOMAIN or
|
|
|
12796d |
# VIRTUSER_DOMAIN_FILE is used, then the entries of class {VirtHost} are
|
|
|
12796d |
# added to class {R}, i.e., relaying is allowed to (and from) those domains.
|