Blame SOURCES/sendmail-etc-mail-virtusertable

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