Commits

Zhang Huangbin committed 320c816

Typo.

  • Participants
  • Parent commits a74a0d0

Comments (0)

Files changed (1)

src/plugins/ldap_domain_wblist.py

 #!/usr/bin/env python
 # encoding: utf-8
 
-# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
+# Author: Zhang Huangbin <zhb@ iredmail.org>
 
 # ----------------------------------------------------------------------------
-# This plugin is used for mail deliver restriction.
-#
-# Handled policies:
-#   - public:   Unrestricted
-#   - domain:   Only users under same domain are allowed.
-#   - subdomain:    Only users under same domain and sub domains are allowed.
-#   - membersOnly:  Only members are allowed.
-#   - moderatorsOnly:   Only moderators are allowed.
-#   - membersAndModeratorsOnly: Only members and moderators are allowed.
-
+# This plugin is used for per-domain white-/blacklist.
 # ----------------------------------------------------------------------------
 
 import sys
 
 ACTION_REJECT = 'REJECT Not Authorized'
 
-# smtp session data
-#   * sasl username
-#   * recipient address
-# LDIF of domain
-
 def restriction(ldapConn, ldapBaseDn, smtpSessionData, **kargs):
     sender = smtpSessionData['sender'].lower()
     senderDomain = sender.split('@')[-1]