bestmx is a special internal type that can utilize only a few of the K command switches, as
listed in Table 23-8.
* We are clutching at straws here for an example. Note that sendmail already does all this, including looking
up more than just the first MX record.
Table 23-8. The bestmx database-map type K command switches
Switch ?§ Description
-a ?§23.3.2 on page 887 Append tag on successful match.
-D ?§23.3.3 on page 887 Don??™t use this database map if DeliveryMode=defer.
-m ?§23.3.7 on page 888 Suppress replacement on match.
-q ?§23.3.11 on page 889 Don??™t strip quotes from key.
-T ?§23.3.13 on page 890 Suffix to append on temporary failure.
-t ?§23.3.14 on page 891 Ignore temporary errors.
-z ?§23.3.16 on page 891 Specify the column delimiter.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
23.7 Alphabetized Database-Map Types | 903
The -z switch(special for this bestmx database-map type) allows multiple MX records to be
returned, and specifies a column delimiter used to separate one record from another. As
long as the column delimiter is not a character that appears in any domain name, it will be
used to separate all the MX records returned by the MX lookup. These records will be
returned in the new workspace. For example, if the -z switchspecified a comma, and if
abc.
Pages:
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592