Prev | Current Page 1180 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


To illustrate, consider the following rule:
R $+ < @ $+ > $: $>set
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
678 | Chapter 18: The R (Rules) Configuration Command
Here, the RHS $>set operator tells sendmail to perform additional rewriting using a
secondary set of rules called set. The workspace is passed as is to that secondary rule set,
and the result of the rewriting by that secondary rule set becomes the new workspace.
The $> operator is described in full in ?§18.7.4 on page 664.
18.9.14 $[ $]
Canonicalize hostname RHS operators
The $[ $] operators are used to convert a non-fully qualified hostname, or a CNAME, into
the official, fully qualified hostname. They are also used to convert square bracket-enclosed
addresses into hostnames. They must be used in a pair with the host or address to be
looked up between them. To illustrate, consider this rule:
R $+ < @ $+ > $: $1 < @ $[ $2 $] >
This rule will match a focused address such as gw<@wash> and cause the host part (the
second $+ on the LHS) to be passed to the RHS (the $2). Because the $2 is between the pair
of $[ $] operators, it is looked up withDNS and converted to a fully qualified hostname.
Thus, the domain dc.gov, for example, will have the host wash fully qualified to become
wash.dc.gov.


Pages:
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192
dieta light koszenie trawy Poznań wierszyki pozycjonowanie typy bukmacherskie