lkundrak / rpms / sendmail

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