HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Sendmail and the LDAP Protocol
Chapter 2 71
NOTE The LDAP-style options (-v and -h in the previous example) must be
double quoted and must follow immediately after the option. Do not
leave spaces between the option and the quote.
LDAP-Based Routing
You can use the LDAP protocol to implement LDAP-based rerouting.
This provides a method to reroute addresses with a domain portion in
class {LDAPRoute} to either a different mail host or a different address.
You can use the /usr/newconfig/etc/mail/cf/cf/gen_cf script to
enable the LDAP-based routing.
You can add the domains to the class {LDAPRoute}, as shown in the
following examples. Ensure that you set up a domain for LDAP routing.
Assume that your domain is yyy.com. Add the following line in the
sendmail.cf file:
C{LDAPRoute}yyy.com
or
F{LDAPRoute}/etc/mail/ldap-domain-file
where /etc/mail/ldap-domain-file contains the domains.
The LDAPDefaultSpec option in the sendmail.cf file sets the default
LDAP map specification. You must set this up before defining LDAP
maps. The settings are used for all LDAP maps unless they are specified
in the individual map specification (K command). By default, it appears
in the sendmail.cf file as follows:
O LDAPDefaultSpec=-h localhost
localhost can be replaced by your LDAP server name.
Following are the switches commonly used by most applications:
• -b – LDAP search base
Directory in the LDAP tree where the search begins. For example:
-b “o=hp.com”
• -d – BindDN