dc.gov@hash not available
There is no possible way to put an @ character into a key.
One use for filling a class with a database-map lookup might involve looking up the
name for root on the local machine:
LOCAL_CONFIG
F{RootName}0@text:-k2 -v0 -z: /etc/passwd
Here, we need to know the name of root because it is not the same on all machines
(some might call it toor, and others rot). The name found will be placed into the class
$={RootName}. Th etext-type database map is used because it can look up keys in a
plain file. The /etc/passwd file might look, in part, like this:
0th
?†“
boss:Kmz4md67r66n2:0:1:Operator:/:/bin/csh daemon:*:1:1::/:
?†‘
2nd
We wish to look up the first entry in that file that has a user-id of zero. Note that
text type database maps are arranged in columns that are numbered, starting with
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
22.1 Class Configuration Commands | 861
column zero. In this case, the second column holds the user-id and the ???zeroth??? column
holds the name we seek.
The F configuration command looks up the key 0 in a text type database map found in
the file /etc/passwd. The database-map switches that prefix the file name tell sendmail
to do the following: look up the key in the second column (the -k2); return the value
from the zeroth column (the -v0); and use a colon as the column separator (the -z:).
Pages:
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519