Ordinary rewriting templates

Ordinary rewriting templates, A@B or A%B@C
The most commonly used form of rewrite rule template is A%B@C, where A is the new username, B is the new host/domain specification, and C is  the routing system (official channel name). If B and C are identical, %B may be omitted; i.e., you may simply use A@C when B and C  are identical.

For instance, if an MTA for domain.com has the system (host) name   (the official host name of the "l" channel), and if the default email domain name is , then typical rewrite rules could include: host.domain.com   $U%host.domain.com@hostname.domain.com mail.domain.com   $U%mail.domain.com@hostname.domain.com meaning that addresses with domain names of  or   will be routed, (without any beforehand domain name change) to the "l" channel.

Note that in a current Unified Configuration, such rewrite rules would typically be automatically generated, and make use of the   and   and  substitutions,  to appear as: msconfig&#x3e; show rewrite ...other rewrite rules... role.rewrite.rule = &/IMTA_HOST/ $U%$D@&/IMTA_HOST/ role.rewrite.rule = &/IMTA_DEFAULTDOMAIN/ $U%$D@&/IMTA_HOST/ ...other rewrite rules

See also:
 * Rewrite rule template formats