Integrating a local mail server into my LDAP lab
Introduction This is the second stage of my OpenLDAP home lab. I set up a mail server to work with existing LDAP configuration. Pre-Requisites VM Intercommunication setup Pi-hole Local TLS for HTTP...

Source: DEV Community
Introduction This is the second stage of my OpenLDAP home lab. I set up a mail server to work with existing LDAP configuration. Pre-Requisites VM Intercommunication setup Pi-hole Local TLS for HTTPS OpenLDAP Home Lab Setup Process Mail Server Install In the existing setup, I cloned another debian server VM, gave it static IP 192.168.57.7, set its hostname to mail-server.acme.internal and then added the DNS record in Pi-hole. Then I went ahead and installed the required packages for postfix and dovecot to work with LDAP. sudo apt install -y postfix postfix-ldap dovecot-core dovecot-imapd dovecot-ldap dovecot-lmtpd Then I chose "Internet Site" in the postfix install prompt asking about which type of mail server to install and set the domain to acme.internal. Postfix Config I edited /etc/postfix/main.cf to have this configuration: myhostname = mail-server.acme.internal mydomain = acme.internal mydestination = $myhostname, $mydomain, localhost mynetworks = 192.168.57.0/24 127.0.0.0/8 inet_