CN=Accepted Domains,CN=Transport Settings,CN=TSTHOSTING,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=local
The linux distribution used for this config is Ubuntu.
Software packages required:
A seperate configuration file was put together called ad_relay_domains.cf which we placed under /etc/postfix/ad_relay_domains.cf
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = Administrator
bind_pw = MyPassw0rd (__mailto:MyPassw0rd)
search_base = cn=Accepted Domains,cn=Transport Settings,cn=TSTHOSTING,cn=Microsoft Exchange,cn=Services,cn=Configuration,dc=domain,dc=local
scope = sub
query_filter = (msExchAcceptedDomainName=%s)
- Server_Host enter the IP address of an AD Domain Controller
- Server_Port needs to be the standard port for LDAP
- version must be 3
- Bind, yes we are creating an LDAP bind.
- Start_TLS, we are not using a digital certificate on Active Directory (pretty standard). TLS is more common with AD LDS/ADAM Instances as they are not protected using Kerberos v5.
- bind_dn enter the user account you wish to bind to Active Directory with.
- bind_pw is the password that goes with the user account specified under bind_dn. You must enter it in "password (__mailto:password)" format.
- search_base is the location in Active Directory where Exchange 2010 stores its accepted domains.
- scope specifies all sub objects
- query_filter is the attribute on the accepted domain objects we wish to query.
- result_attribute is the attribute we are interested in the query result.
relay_domains = _ldap:/etc/postfix/ad_relay_domains.cf
Credits for this solution go to Daniel Borg.