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