Previous | Next | Contents | Index |
Once a host/domain specification matches a rewrite rule, it is rewritten using the template part of the rule. The template specifies three things:
Substitution strings are allowed in the template. For instance, to mention some of the more commonly used substitution strings, any occurrences of $U in the template are replaced with the username from the original address, any occurrences of $H are replaced with the portion of the host/domain specification that was not matched by the rule, and any occurrences of $D are replaced by the portion of the host/domain specification that was matched by the rewrite rule. Table 2-3 contains a summary of these and other substitution strings which are presented in detail in Section 2.2.6.
As an example, suppose that the host/domain specification adrian@example.com has matched the rewrite rule
example.com $U@EXAMPLE.COM |
.com $U%$H$D@TCP-DAEMON |
Previous | Next | Contents | Index |