Prev | Current Page 79 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

7, a curly-brace-enclosed multicharacter name:
CW localhost fontserver ?†? a single letter
C{MY_NAMES} localhost fontserver ?†? multiple characters (beginning with V8.7)
Here, eachclass contains two items: localhost and fontserver. The value of a class
macro is accessed withan expression suchas $=W or $={MY_NAMES}. Class macros are
covered in Chapter 22 on page 854.
1.8.4.6 File class macros
To make administration easier, it is often convenient to store long or volatile lists of
values in a file. The F sendmail.cf command defines a file class macro. It is just like
the C command shown earlier, except that the array values are taken from a file:
FW/etc/mail/mynames
F{MY_NAMES}/etc/mail/mynames ?†? multiple characters (beginning with V8.7)
Here, the file class macros W and {MY_NAMES} obtain their values from the file /etc/mail/
mynames.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
34 | Chapter 1: Some Basics
The file class macro can also take its list of values from the output of a program.
That form looks like this:
FM|/bin/shownames
F{MY_NAMES}|/bin/shownames ?†? multiple characters (beginning with V8.7)
Here, sendmail runs the program /bin/shownames. The output of that program is
appended to the class macro.
Beginning withV8.12, sendmail can also take its list of values from a database map.


Pages:
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
tematy administracja studia tematy tematy tematy