Update of /cvsroot/tmda/tmda/TMDA
In directory usw-pr-cvs1:/tmp/cvs-serv17737/TMDA
Modified Files:
ChangeLog Defaults.py
Log Message:
New feature: auto-response rate limiting. Meant as a last resort to
prevent mail loops between TMDA and broken remote auto-responders, you
can now specify the maximum number of automatic responses sent to a
given sender in a day by setting MAX_AUTORESPONSES_PER_DAY.
The default at this point is 50. Disable with 0.
A new directory 'responses' will be created under DATADIR to store the
rate limiting information. This can be changed by setting
RESPONSE_DIR.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/ChangeLog,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -r1.221 -r1.222
--- ChangeLog 8 Aug 2002 16:49:46 -0000 1.221
+++ ChangeLog 21 Aug 2002 22:37:41 -0000 1.222
@@ -1,3 +1,8 @@
+2002-08-21 Jason R. Mastaler <[EMAIL PROTECTED]>
+
+ * Defaults.py (MAX_AUTORESPONSES_PER_DAY, RESPONSE_DIR): New
+ variables.
+
2002-08-08 Jason R. Mastaler <[EMAIL PROTECTED]>
* MessageLogger.py: New module.
Index: Defaults.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Defaults.py,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -r1.137 -r1.138
--- Defaults.py 8 Aug 2002 16:49:46 -0000 1.137
+++ Defaults.py 21 Aug 2002 22:37:41 -0000 1.138
@@ -777,6 +777,32 @@
if not vars().has_key('MESSAGE_FROM_STYLE'):
MESSAGE_FROM_STYLE = "angles"
+# MAX_AUTORESPONSES_PER_DAY
+# An integer specifying the maximum number of automatic responses sent
+# to a given sender address in a day. This includes _all_
+# auto-responses sent by TMDA (confirmation requests, confirmation
+# acceptance notices, failure notices, etc.)
+#
+# This limit prevents response loops between TMDA and misconfigured
+# remote auto-responders. TMDA already inhibits automatic replies to
+# any message that looks like a mailing list message or a bounce
+# message. This is a fallback safety valve so it should be set fairly
+# high. Set to 0 for no limit.
+# Default is 50
+if not vars().has_key('MAX_AUTORESPONSES_PER_DAY'):
+ MAX_AUTORESPONSES_PER_DAY = 50
+
+# RESPONSE_DIR
+# Full path to a directory containing auto-response rate-limiting
+# information. Only consulted if MAX_AUTORESPONSES_PER_DAY != 0
+#
+# Example:
+# RESPONSE_DIR = "/full/path/to/responses/"
+#
+# Default is ~/.tmda/responses
+if not vars().has_key('RESPONSE_DIR') and MAX_AUTORESPONSES_PER_DAY != 0:
+ RESPONSE_DIR = os.path.join(DATADIR, 'responses')
+
# DELIVERED_CACHE
# Path to the cache file used to keep track of which messages have
# already been delivered.
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs