2016-01-04 16:11:02 +01:00
|
|
|
Index: warnquota.conf
|
|
|
|
===================================================================
|
2014-06-12 10:03:40 +02:00
|
|
|
--- warnquota.conf.orig
|
|
|
|
+++ warnquota.conf
|
|
|
|
@@ -1,21 +1,37 @@
|
2007-01-16 00:34:54 +01:00
|
|
|
-# this is an example warnquota.conf
|
|
|
|
+###################################################################
|
|
|
|
+# Configuration file for the warnquota utility
|
|
|
|
+# File Format:
|
|
|
|
+# ^^^^^^^^^^^^
|
|
|
|
+# (1) lines begining with # or ; are comments
|
|
|
|
+# (2) blank lines are ignored
|
|
|
|
+# (3) other lines have the form 'value = string'
|
|
|
|
+# (4) strings may be quoted (double quotes) but they don't have to
|
|
|
|
+# (5) strings may end with backslash in order to continue
|
|
|
|
+# on the next line
|
|
|
|
+# (6) line breaks are marked with '|' character
|
|
|
|
+###################################################################
|
2014-06-12 10:03:40 +02:00
|
|
|
+
|
|
|
|
+#
|
|
|
|
+# Comment this out or remove it once you have edited this config file
|
|
|
|
+#
|
|
|
|
+FAIL = "configure /etc/warnquota.conf before running warnquota"
|
|
|
|
+
|
|
|
|
#
|
|
|
|
-; ; and # type comments are allowed
|
|
|
|
-# and even blank lines
|
2016-01-04 16:11:02 +01:00
|
|
|
+# command used for sending mails
|
|
|
|
+#
|
2014-06-12 10:03:40 +02:00
|
|
|
+MAIL_CMD ▷⋅= "/usr/lib/sendmail -t"
|
2007-01-16 00:34:54 +01:00
|
|
|
|
|
|
|
-# values can be quoted:
|
2013-06-14 14:11:53 +02:00
|
|
|
-#MAIL_CMD = "/usr/my/sendmail/instead/sendmail -t"
|
|
|
|
-MAIL_CMD = "/bin/echo"
|
2012-06-09 11:14:44 +02:00
|
|
|
-FROM = "bas@example.com"
|
2007-01-16 00:34:54 +01:00
|
|
|
-# but they don't have to be:
|
|
|
|
-SUBJECT = Hey, user, clean up your account!
|
2012-06-09 11:14:44 +02:00
|
|
|
-CC_TO = "sysadm@example.com"
|
2007-01-16 00:34:54 +01:00
|
|
|
+#
|
|
|
|
+# Standard mail fields
|
2014-06-12 10:03:40 +02:00
|
|
|
+FROM = "root@localhost"
|
2007-01-16 00:34:54 +01:00
|
|
|
+SUBJECT = "Your account quota has exceeded!"
|
|
|
|
+CC_TO = "root@localhost"
|
|
|
|
# If you set this variable CC will be used only when user has less than
|
|
|
|
# specified grace time left (examples of possible times: 5 seconds, 1 minute,
|
|
|
|
# 12 hours, 5 days)
|
|
|
|
# CC_BEFORE = 2 days
|
2012-06-09 11:14:44 +02:00
|
|
|
-SUPPORT = "support@example.com"
|
2007-01-16 00:34:54 +01:00
|
|
|
-PHONE = "(123) 456-1111 or (222) 333-4444"
|
|
|
|
+SUPPORT = "root@localhost"
|
|
|
|
+PHONE = "123 456 789"
|
|
|
|
# Text in the beginning of the mail (if not specified, default text is used)
|
2014-06-12 10:03:40 +02:00
|
|
|
# This way text can be split to more lines
|
|
|
|
# Line breaks are done by '|' character
|
2016-01-04 16:11:02 +01:00
|
|
|
@@ -45,33 +61,27 @@ GROUP_SIGNATURE = See you!| Your admin
|
2007-01-16 00:34:54 +01:00
|
|
|
#
|
2014-06-12 10:03:40 +02:00
|
|
|
#Here you can set a charset for emails sent by warnquota (e.g. UTF-8)
|
2009-01-12 18:18:50 +01:00
|
|
|
#CHARSET =
|
2007-01-16 00:34:54 +01:00
|
|
|
-# If you are using LDAP mail lookups.
|
2016-01-04 16:11:02 +01:00
|
|
|
+
|
|
|
|
+##############################################################
|
|
|
|
+# Configuration for LDAP (if you are using LDAP mail lookups)
|
|
|
|
# host, port, tls, binddn, and bindpw are straight forward.
|
2007-01-16 00:34:54 +01:00
|
|
|
-# LDAP_BASEDN is your search base dn
|
|
|
|
-# LDAP_SEARCH_ATTRIBUTE is the attr for the value you are looking for
|
|
|
|
-# LDAP_MAIL_ATTRIBUTE is the attribute you want used for the mail address
|
|
|
|
-# LDAP_DEFAULT_MAIL_DOMAIN is the default domain
|
|
|
|
-# if the attribute isn't found
|
2014-06-12 10:03:40 +02:00
|
|
|
-# if binddn and bindpw are blank or left out, an anonymous bind is used
|
|
|
|
-#
|
|
|
|
-# LDAP_MAIL = false # or true if you want to use it
|
|
|
|
-# If you have at least LDAP 2.3 installed, you should use LDAP_URI
|
|
|
|
-# LDAP_URI = ldaps://my.server:389
|
|
|
|
-# Otherwise you should specify LDAP_HOST and LDAP_PORT
|
|
|
|
-# LDAP_HOST = ldap
|
|
|
|
-# LDAP_PORT = 389
|
2016-01-04 16:11:02 +01:00
|
|
|
-# LDAP_TLS = false (false|never|allow|try|demand) use StarTLS
|
|
|
|
-# false - don't use starTLS
|
|
|
|
-# never - don't ask for a certificate
|
|
|
|
-# allow - request certificate, proceed even if not verified
|
|
|
|
-# try - request certificate, terminate if bad, proceed if not sent
|
|
|
|
-# demand - request certificate, proceed only if verified
|
2014-06-12 10:03:40 +02:00
|
|
|
-# LDAP_BINDDN = uid=ReadOnlyUser,o=YourOrg
|
|
|
|
-# LDAP_BINDPW = YourReadOnlyUserPassword
|
|
|
|
-# LDAP_BASEDN = YourSearchBase
|
|
|
|
-# LDAP_SEARCH_ATTRIBUTE = uid
|
|
|
|
-# LDAP_MAIL_ATTRIBUTE = mailLocalAddress
|
|
|
|
-# LDAP_DEFAULT_MAIL_DOMAIN = YourDefaultMailDomain.com
|
2007-01-16 00:34:54 +01:00
|
|
|
+##############################################################
|
|
|
|
+# Your search base dn
|
|
|
|
+#
|
|
|
|
+# LDAP_BASEDN
|
|
|
|
+
|
|
|
|
+# The attr for the value you are looking for
|
|
|
|
+#
|
|
|
|
+# LDAP_SEARCH_ATTRIBUTE
|
|
|
|
+
|
|
|
|
+# The attribute you want used for the mail address
|
|
|
|
+#
|
|
|
|
+# LDAP_MAIL_ATTRIBUTE
|
|
|
|
+
|
|
|
|
+# The default domain if the attribute isn't found
|
|
|
|
+#
|
|
|
|
+# LDAP_DEFAULT_MAIL_DOMAIN
|
|
|
|
+
|
2016-01-04 16:11:02 +01:00
|
|
|
#
|
|
|
|
# end of example warnquota.conf file
|
|
|
|
#
|