Blame SOURCES/sendmail-etc-mail-virtusertable

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