Import ezmlm-idx 0.40
[ezmlm] / ezmlm-limit.1
CommitLineData
f8beb284
MW
1.TH ezmlm-limit 1
2.SH NAME
3ezmlm-limit \- Limits traffic to list
4.SH SYNOPSIS
5.B ezmlm-limit
6[
7.B -f\fI file
8][
9.B -dDF
10][
11.B \-t
12.I secs
13][
14.B -n
15.I msgs
16]
17.I dir
18
19.B ezmlm-limit
20is intended to limit traffic to a list in case an outside
21source sends excessive messages. Traffic is limited by converting the list
22to a message moderated list, or by deferring messages.
23
24.B ezmlm-limit
25reads
26.IR dir\fB/loopnum .
27If it does not exist or contains a time stamp more than
28.I secs
29seconds old, it is updated.
30If it exists, contains a time stamp less than
31.I secs
32seconds old, and
33.I msgs
34messages or more have passed since
35.I dir\fB/loopnum
36was created,
37.B ezmlm-limit
38creates
39.IR dir\fB/modpost .
40For lists set up with
41.B ezmlm-store(1)
42this results in future messages being moderated.
43
44As long as
45.I dir\fB/modpost
46does not exist,
47.B ezmlm-store(1)
48will simply forward the message to
49.BR ezmlm-send(1).
50Once
51.I dir\fB/modpost
52exists, messages will be queued for moderation. Thus, in case of error (such
53as misconfigured auto responders) subscribers are spared
54messages in excess of the limit. However, no messages are lost, since the
55moderator(s) can (selectively) approve queued messages.
56
57If
58.I dir\fB/modpost
59already exists,
60.B ezmlm-limit
61will not take any action.
62
63Resetting the list requires manual
64removal of
65.IR dir\fB/modpost . Queued messages can be managed with regular moderation
66or approved in bulk with
67.BR ezmlm-accept(1) .
68
69.B ezmlm-limit
70is not required for normal lists, since qmail and
71ezmlm loop detection prevent problems caused by regular bounces. However,
72it affords some protection against malice, and severely misconfigured
73subscribers.
74
75.SH OPTIONS
76.TP
77.B \-d
78Defer excess traffic. Excess messages are deferred and qmail will re-deliver. As
79a consequence, traffic will be throttled to the maximum allowed. Due to qmail
80delivery back-off, messages may not be disseminated in the order received. If
81traffic is continuously above or close to the limit, some messages may be
82delayed for a long time or even bounced.
83.TP
84.B \-D
85(Default.)
86Make the list moderated once excess traffic is detected. This requires the
87list to be configured up with
88.B ezmlm-store(1)
89rather than
90.BR ezmlm-send(1) ,
91which is easiest done by first creating a message moderated list, then removing
92.IR dir\fB/modpost .
93.TP
94.B \-n\fI msgs
95Trigger after
96.I msgs
97messages (default 30).
98.TP
99.B \-f\fI file
100Instead of
101.I dir\fB/loopnum
102use
103.I file
104as the time stamp. This allows the use of multiple instances of
105.B ezmlm-limit
106for the same list. For instance, you may allow 60 messages per hour with one
107instance and 150 messages per day with another. If
108.I file
109is relative, this is relative to
110.IR dir .
111.TP
112.B \-F
113(Default.)
114Use
115.I dir\fB/loopnum
116as the time stamp.
117.TP
118.B \-t\fI secs
119Check the number of messages within period of
120.I secs
121seconds (default 3600 seconds).
122.SH "SEE ALSO"
123ezmlm-accept(1),
124ezmlm-make(1),
125ezmlm-send(1),
126ezmlm-store(1),
127ezmlm(5)