Postfix ldap query for members of alias

Discussion in 'Server Operation' started by cliff117, Feb 11, 2017.

  1. cliff117

    cliff117 New Member

    Please help me to find how to do this.
    I have postfix integrated with AD and I have some issue with alias maps.

    Here is my virtual_alias_maps.cf:
    Code:
    server_host     = test.local
    server_port     = 389
    version         = 3
    bind            = yes
    start_tls       = no
    bind_dn         = [email protected]
    bind_pw         = password
    search_base     = ou=Groups,dc=test,dc=local
    scope           = sub
    query_filter    = (&(objectClass=group)(mail=%s))
    special_result_attribute = member
    leaf_result_attribute = mail
    debuglevel      = 0
    It works fine, but I need to select only enabled users is group, not all.
    Something like: "query for special_result_attribute = (&(mail=%s)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))"
    Thanks in advance.
     

Share This Page