HP-UX Mailing Services Administrator's Guide (B2355-91064)

-k (&(ObjectClass=mailrecipient) (mail=%0))
-v – LDAP attribute
Value that replaces the origin string in the map. In most cases, this is the RFC822
e-mail address. For example:
-v mailroutingaddress
The LDAP maps are defined in the configuration file as follows:
Kldap -1 -v mailHost -k (&(objectClass=inetLocalMailRecipient) (mailLocalAddress=%0))
Kldapmra ldap -1 -v mailRoutingAddress -k (&(objectClass=inetLocalMailRecipient) (mailLocalAddress=%0))
mailLocalAddress is the RFC 2822-compliant e-mail address of the recipient.
mailHost is the fully qualified host name of the MTA that is the final SMTP destination
of the message to the recipient.
mailRoutingAddress is the RFC 822 address to be used when routing messages to
the SMTP MTA of the recipient.
LDAP Recursion and URL Support
Sendmail supports LDAP recursion based on the TYPEs provided as attribute
specifications in an LDAP map definition. This enables the LDAP queries to return a
new query, a DN, or an LDAP URL that is in turn queried.
LDAP recursion enables you to add TYPEs to the search attributes on an LDAP map
specification. Following is the syntax for the LDAP:
-v ATTRIBUTE[:TYPE[:OBJECTCLASS[ OBJECTCLASS ...]]]
Following are the various TYPEs:
NORMAL
Specifies the attribute that you must add to the results string. This is the
default TYPE value.
DN
Matches for this attribute are expected to have a value of a fully qualified
distinguished name. Sendmail looks up that DN and applies the attributes
requested to the returned DN record.
FILTER
Matches for this attribute are expected to have a value of an LDAP search
filter. Sendmail looks up the same parameters as the original search, but
replaces the search filter with the one specified.
URL
Matches for this attribute are expected to have a value of an LDAP URL.
Sendmail looks up that URL and uses the results from the attributes named
in that URL. However, Sendmail searches the URL using the current LDAP
connection, regardless of what is specified as the scheme, LDAP host, and
LDAP port in the LDAP URL.
70 Configuring and Administering Sendmail