How do I store sendmail aliases in LDAP?

Solution Unverified - Updated -

Issue

  • 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 sendmail.cf 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, example.com 
dn: cn=rocker,ou=Aliases,dc=example,dc=com
cn: rocker
objectClass: nisMailAlias
objectClass: top
rfc822MailMember: rocke.robertson@example.com

Environment

  • 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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.