Import ezmlm 0.53
[ezmlm] / ezmlm-manage.1
CommitLineData
5b62e993
MW
1.TH ezmlm-manage 1
2.SH NAME
3ezmlm-manage \- automatically manage a mailing list
4.SH SYNOPSIS
5.B ezmlm-manage
6.I dir
7.SH DESCRIPTION
8.B ezmlm-manage
9handles administrative requests for the mailing list
10stored in
11.IR dir .
12
13.B ezmlm-manage
14is normally invoked from a
15.B .qmail
16file.
17It reads a mail message from its standard input,
18and a mail envelope from the
19.BR SENDER ,
20.BR LOCAL ,
21and
22.BR HOST
23environment variables.
24
25.B ezmlm-manage
26expects
27.B LOCAL
28to be of the form
29.IR list\fB-\fIaction\fB-\fIbox\fB=\fIdomain .
30Here
31.I list
32is the first line of
33.IR dir\fB/inlocal ,
34.I action
35is a request,
36and
37.I box\fB@\fIdomain
38is the target of the request.
39.B ezmlm-manage
40sends a response to the target.
41It attaches the original message to the end of its response.
42
43.B LOCAL
44may instead be of the form
45.IR list\fB-\fIaction .
46Then the envelope sender
47is used as the target.
48
49.B ezmlm-manage
50expects
51.B HOST
52to match the first line of
53.IR dir\fB/inhost .
54
55.B ezmlm-manage
56copies
57.I dir\fB/mailinglist
58into a
59.B Mailing-List
60field in its response.
61If the incoming message has a
62.B Mailing-List
63field,
64.B ezmlm-manage
65refuses to respond.
66.B ezmlm-manage
67also refuses to respond to bounce messages.
68.SH SUBSCRIPTIONS
69If
70.I action
71is
72.BR sc.\fIcookie ,
73where
74.I cookie
75is an appropriate code
76(depending on the target, the approximate time, and other factors),
77.B ezmlm-manage
78adds the target to the mailing list.
79
80If
81.I action
82is
83.BR subscribe ,
84.B ezmlm-manage
85does not subscribe the target,
86but it identifies the right
87.BR sc.\fIcookie
88address in its response.
89
90This confirmation mechanism
91(1) verifies that the target is reachable
92and
93(2) protects the target against forged subscription requests.
94
95Actions of
96.B uc.\fIcookie
97and
98.B unsubscribe
99are used in the same way to delete the target from the mailing list.
100
101If
102.I dir\fB/public
103does not exist,
104.B ezmlm-manage
105rejects all subscription and unsubscription attempts.
106.SH "ARCHIVE RETRIEVALS"
107If
108.I action
109is
110.BR get.\fInum ,
111.B ezmlm-manage
112sends back message
113.I num
114from
115.IR dir\fB/archive .
116
117If
118.I dir\fB/public
119does not exist,
120.B ezmlm-manage
121rejects all archive retrieval attempts.
122.SH "SEE ALSO"
123ezmlm-make(1),
124ezmlm-return(1),
125ezmlm-send(1),
126ezmlm-sub(1),
127ezmlm-unsub(1),
128ezmlm(5),
129qmail-command(8)