/etc/aliases in LDAP

Format of an alias entry

Single Tree

Skeleton

 dn: cn=username,ou=Aliases,[["BaseDN"]]
 cn: username
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: target

Example

 dn: cn=postmaster,ou=Aliases,dc=example,dc=com
 cn: postmaster
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root

Distinct Subtrees

Skeleton

 dn: cn=username,ou=Aliases,[["BaseDN"]]
 cn: username
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: target

Example

Using ou=nss,dc=example,dc=com as the Subtree

 dn: cn=mailer-daemon,ou=Aliases,ou=nss,dc=example,dc=com
 cn: postmaster
 objectClass: nisMailAlias
 objectClass: top
 rfc822MailMember: root