The -z switchspecifies a separator
(delimiter) character that will separate one return value from the next when multiple values
are returned:
-zchar
Here, char is a single, printable character. If you wish to specify a newline, tab, or backslash,
you can do so using backslash-escaped notation (\n for newline, \t for tab, and \ for
a backslash). In general, the character selected should not be one that you expect to be part
of a returned value. No internal check is made to ensure that the character chosen by you
makes sense for your values.
23.7.11.21 The -Z ldap database-map switch
The -Z switch is used to limit the number of entries returned on a single query. The default
is unlimited.
Note the difference between the -Z and -1 switches. A -Z1 will return only the first match,
while ignoring the rest of the matches. A -1 (?§23.7.11.3 on page 915) returns failure if there
is more than one match.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
922 | Chapter 23: The K (Database-Map) Configuration Command
23.7.11.22 FEATURE(ldap_routing)
When using ldap, it can be desirable to reroute an address to another host or a different
email address. To accomplishth is, V8.10 sendmail introduced FEATURE(ldap_routing). In
its simplest form, it is declared in your mc configuration file like this:
FEATURE(`ldap_routing??)
This declaration causes two ldap-type database maps to be defined:
Kldapmh ldap -1 -v mailHost
-k (&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))
Kldapmra ldap -1 -v mailRoutingAddress
-k (&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))
Here, the ldapmh stands for LDAP mail host, and the ldapmra stands for LDAP mail routing
address.
Pages:
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629