LDAP / Active Directory
DBMail can scale to any number of users and can integrate with an organisations LDAP / Active Directory server for single sign on.
When setting auth = ldap, you also need to configure the [LDAP] section.
dbmail.conf has sensible defaults but as a minimum you need to identify the server uri, username and password:
uri = ldap://example.com/
bind_dn = uid=userid,ou=users,dc=example,dc=com
bind_pw = secret
Active Directory users may want to set referrals to 'no' if you are seeing 'Operations errors'
referrals = no
DBMail needs to know how to identify your users and their email addresses so you will need to ensure your users have an objectclass and mail field for their email address:
user_objectclass = top,person,inetOrgPerson
field_mail = mail
cn_string = uid
field_passwd = userPassword
field_uid = uid
field_nid = uidNumber
If you want to allow your users to forward mail when they move on you will need to set the forw_objectclass and field_fwdtarget, as the inetOrgPerson doesn't have a forwarding address there is a dbmail schema that provides a mailForwardingAddress.
field_fwdtarget = mailForwardingAddress