Commits

Zhang Huangbin committed 473289e

Queary user aliases as allowed sender.

  • Participants
  • Parent commits 1d3fcf1

Comments (0)

Files changed (1)

File src/plugins/ldap_maillist_access_policy.py

     if policy == 'membersonly':
         # Filter used to get domain members.
         searchFilter = "(&(|(objectclass=mailUser)(objectClass=mailExternalUser))(accountStatus=active)(memberOfGroup=%s))" % (recipient, )
-        searchAttr = ['mail']
+        searchAttr = ['mail', 'shadowAddress',]
     elif policy == 'allowedonly' or policy == 'moderatorsonly':
         basedn = listDn
         searchScope = 0     # Use SCOPE_BASE to improve performance.
         # Policy: membersAndModeratorsOnly.
         # Filter used to get both members and moderators.
         searchFilter = "(|(&(|(objectClass=mailUser)(objectClass=mailExternalUser))(memberOfGroup=%s))(&(objectclass=mailList)(mail=%s)))" % (recipient, recipient, )
-        searchAttr = ['mail', 'listAllowedUser']
+        searchAttr = ['mail', 'shadowAddress', 'listAllowedUser',]
 
     try:
         result = ldapConn.search_s(basedn, searchScope, searchFilter, searchAttr)