Was this page helpful?

Configure Postfix to Verify Active Directory Recipient

    Table of contents
    1. 1. Configure Postfix
    2. 2. Configure Users

    Here's how to have Postfix check Active Directory for a valid user on incoming mail.

    Configure Postfix

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

    Configure Users

    Using adsiedit.msc, edit each user who will be receiving outside mail by setting the extensionAttribute1 to 'OK'.
    Was this page helpful?
    Tag page (Edit tags)
    • No tags
    You must login to post a comment.
    Powered by MindTouch Core