Commits

Zhang Huangbin committed 3e5f49a

Remove unused script: tools/dovecot-quota-warning.sh.

  • Participants
  • Parent commits 378e7d7

Comments (0)

Files changed (3)

File iRedMail/tools/create_mail_user_OpenLDAP.py

 LDAP_URI = 'ldap://127.0.0.1:389'
 
 # LDAP base dn.
-BASEDN = 'o=domains,dc=iredmail,dc=org'
+BASEDN = 'o=domains,dc=example,dc=com'
 
 # LDAP bind dn & password.
-#BINDDN = 'cn=Manager,dc=iredmail,dc=org'
+#BINDDN = 'cn=Manager,dc=example,dc=com'
 #BINDPW = 'passwd'
 
 # Storage base directory.

File iRedMail/tools/create_mail_user_OpenLDAP.sh

 # ------------------------------------------------------------------
 # -------------------------- LDAP Setting --------------------------
 # ------------------------------------------------------------------
-LDAP_SUFFIX="dc=iredmail,dc=org"
+LDAP_SUFFIX="dc=example,dc=com"
 
 # Setting 'BASE_DN'.
 BASE_DN="o=domains,${LDAP_SUFFIX}"
     usage
 else
     # Promopt to check settings.
-    [ X"${LDAP_SUFFIX}" == X"dc=iredmail,dc=org" ] && echo "You should change 'LDAP_SUFFIX' in $0."
+    [ X"${LDAP_SUFFIX}" == X"dc=example,dc=com" ] && echo "You should change 'LDAP_SUFFIX' in $0."
 
     # Get domain name.
     DOMAIN_NAME="$1"

File iRedMail/tools/dovecot-quota-warning.sh

-#!/bin/sh
-
-# Author:   Zhang Huangbin <zhb _at_ iredmail.org>
-# Purpose:  Send mail to notify user when his mailbox quota exceeds a
-#           specified limit.
-# Project:  iRedMail (http://www.iredmail.org/)
-
-PERCENT=$1
-
-cat << EOF | /usr/libexec/dovecot/deliver -d ${USER} -c /etc/dovecot.conf
-From: postmaster@iredmail.org
-Subject: Mailbox Quota Warning: ${PERCENT}% Full.
-
-Mailbox quota report:
-
-    * Your mailbox is now ${PERCENT}% full, please clear some files for
-      further mails.
-
-EOF