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 ...

Get Mastering CentOS 7 Linux Server now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.