Configuring the OpenLDAP Active Directory with Postfix
For this section, we are going to use OpenLDAP as a backend to both our Postfix (as an MTA) and Dovecot (as an POP3/IMAP server) users, in order for them to be connected to each other, and help with address lookup and aliases.
Note
OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol (LDAP). This section doesn't cover how to install an OpenLDAP server. We will assume that we have one already configured inside our network.
Our OpenLDAP server has the following information as follows:
dn: uid=user,ou=people,dc=packtldap,dc=co,dc=uk objectClass: posixAccount objectClass: inetOrgPerson uid: user1 homeDirectory: /home/user1 userPassword: <passwordhash>
For the configuration of the LDAP settings for both of our services, we need to edit and add some options to their configuration files. We will start with Dovecot. We will first open the Dovecot main configuration file with a text editor, then make the necessary...