Managing users with LDAP
Managing users is very scalable by directly updating an LDAP/AD directory. LDAP lookups are defined in the [LDAP] section of dbmail.conf to work with almost every schema.
DBMail administrators need to set object classes and field names so that email aliases and users can be successfully looked up to enable delivery of their email. When presented with an email for a user, DBMail creates users in the sql table dbmail_users as they arrive including mailboxes.
A typical user might be John Doe at example.com with an email alias of jdoe@example.com
Using the following settings:
user_objectclass = top,account,inetOrgPerson
field_uid = uid
field_nid = uidNumber
field_mail = mail
This can translate as the following user:
ldapsearch -D uid=johndoe,ou=users,dc=example,dc=com '(mail=johndoe@example.com)'
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> (default) with scope subtree
# filter: (mail=johndoe@example.com)
# requesting: ALL
#
# jdoe, Users, p-o.co.uk
dn: uid=johndoe,ou=Users,dc=example,dc=com
uid: dbmail
uidNumber: 1001
gidNumber: 513
homeDirectory: /home/johndoe
loginShell: /bin/sh
sn: Doe
givenName: John
displayName: John
cn: johndoe
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
mail: johndoe@example.com
# search result
search: 2
result: 0 Success
Happy integrating and scaling.