Commits

Zhang Huangbin committed d66ca42

Rename new policy: membersAndModeratorsOnly.

  • Participants
  • Parent commits 2708166

Comments (0)

Files changed (2)

 Please read installation guide here:
 
-    - http://www.iredmail.org/iredapd_installation.html
+    - For OpenLDAP backend:
+      http://www.iredmail.org/iredapd_installation.html
+
+    - For MySQL backend:
+      http://www.iredmail.org/wiki/index.php?title=Install/iRedAPD/MySQL

File src/plugins/ldap_maillist_access_policy.py

         searchFilter = "(&(objectclass=mailList)(mail=%s))" % (recipient, )
         searchAttr = ['listAllowedUser']
     else:
-        # Policy: membersAndAllowedOnly.
+        # 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']
         else:
             return ACTION_REJECT
     else:
-        # Handle other access policies: membersOnly, allowedOnly, membersAndAllowedOnly.
+        # Handle other access policies: membersOnly, allowedOnly, membersAndModeratorsOnly.
         allowedSenders = __get_allowed_senders(
                 ldapConn=ldapConn,
                 ldapBaseDn=ldapBaseDn,