Here's how to have Postfix check Active Directory for a valid user on incoming mail.
Edit the /etc/postfix/main.cf file and set the following parameters:
relay_recipient_maps = ldap:/etc/postfix/ldap.cf
Then create the /etc/postfix/ldap.cf file:
server_host = ldap://dc.example.com:389 search_base = dc=example,dc=com timeout = 5 bind = yes version = 3 bind_dn = bindaccount@example.com bind_pw = bindpassword query_filter = (proxyAddresses=smtp:%s) result_attribute = extensionAttribute1 domain = hash:/etc/postfix/transport
Note: The relay_domains must be set to all of the domains for which this server accepts mail.
Note: The /etc/postfix/transport file must contain each domains and it's SMTP transport host (which would be the Exchange server, in this case).
extensionAttribute1 to 'OK'.| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |