Updated: 2024/11/15
Install required software:
dnf install postfix-ldap
Configure main.cf:
relay_recipient_maps = ldap:/etc/postfix/ldap.cf
Create and configure /etc/postfix/ldap.cf:
server_host = domain.local
search_base = dc=domain, dc=local
version = 3
start_tls = yes
bind_dn = CN=Svc-SMTP-LDAP,OU=Service Accounts,OU=Domain Users,DC=domain,DC=local
bind_pw = password
query_filter = (proxyAddresses=smtp:%s)
result_attribute = mail
Restart Postfix:
systemctl restart postfix
Home > Build Procedures > Postfix SMTP gateway for Exchange on Rocky 9