Sendmail 8.9.3 Release Notes
10 Chapter1
New and Changed Features
New Features
NOTE Any ldap-style options must be double-quoted and must follow
immediately after the option (i.e. no spaces between the option and the
quote).
To lookup a login name in this database and have the official email
address for that user returned, you might use a declaration like this:
example: Kldap
ldapx -k"uid=%s" -v"mail" -h"test1.india.hp.com"
-b"o=organization, c=US"
For the above query to work, you need to comment out the ruleset
mentioned below in the sendmail.cf configuration file along with the
above kldap directive.
#LDAP support
#R< > $- $: < > $(ldap $1 $: $1 $) Local users only
#R< > $+ $=O $+ $@ $>97 $1 $2 $3 try again
If you want the LDAP alias to take precedence over the other system
aliases i.e, the /etc/mail/aliases or nis alias, the AliasFile option
must be set with the value "sequence:ldap" as shown:
O AliasFile = sequence:ldap, /etc/mail/aliases,
nis:mail.aliases
LDAP Support using the sendmail.cf file
The following steps describe how to enable LDAP support using the
sendmail-8.8.6 sendmail.cf file:
• Add the following kldap directive in the sendmail.cf file in the options
section.
Kldap ldapx -k"uid=%s" -v"mail" -hldap_server_name
-b"o=organization, c=US"
• Add the following LDAP rules in ruleset5 in the sendmail.cf file.
These rules have to be added above the rule which has the comment
"see if we have a relay or a hub".
#LDAP support ( This is a comment and needs to be
commented)