Prev | Current Page 78 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

All rights reserved.
1.8 The sendmail.cf File | 33
Use of multicharacter macros and # comments (V8 configuration files and above) can
make rules appear a bit less cryptic:
R$- # If a plain username
$@ $1 @ ${REMOTE} # append "@" remote host
The details of rules such as this are more fully explained in Chapter 18 on page 648.
1.8.4.4 Rule sets
Because rewriting can require several steps, rules are organized into sets, which can
be thought of as subroutines. The S command begins a rule set:
S3
This particular S command begins rule set 3. Beginning withV8.7 sendmail, rule sets
can be given symbolic names as well as numbers:
SHubset
This particular S command begins a rule set named Hubset. Named rule sets are automatically
assigned numbers by sendmail.
All the R commands (rules) that follow an S command belong to that rule set. A rule
set ends when another S command appears to define another rule set. Rule sets are
covered in Chapter 19 on page 683.
1.8.4.5 Class macros
There are times when the single text value of a D command (macro definition) is not
sufficient. Often, you will want to define a macro to have multiple values and view
those values as elements in an array. The C command defines a class macro. A class
macro is like an array in that it can hold many items. The name of a class is either a
single letter or, beginning with V8.


Pages:
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
tłumacz niemieckiego hosting zakłady bukmacherskie serwis drukarek katowice petrozawodzkich.waw.pl