How do I store sendmail aliases in LDAP?

Solution Unverified - Updated -


  • How to convert the aliases db to an LDAP format and have it work with Sendmail? Please see the following example:

  • Used the following option in sendmail mc file.

define('ALIAS_FILE', `ldap:`)
  • It created the following setting
O AliasFile=ldap
  • And here is an example entry loaded into ldap server.
# ldapsearch -v -x -b 'dc=example,dc=com' '(objectclass=nisMailAlias)' 

# rocker, Aliases, 
dn: cn=rocker,ou=Aliases,dc=example,dc=com
cn: rocker
objectClass: nisMailAlias
objectClass: top


  • Red Hat Enterprise Linux 5
  • sendmail

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In