-
Notifications
You must be signed in to change notification settings - Fork 15
/
ezmlmrc.5
600 lines (593 loc) · 12.8 KB
/
ezmlmrc.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
.TH ezmlmrc 5
.UC 4
.SH NAME
ezmlmrc \- ezmlm-make configuration file
.SH SYNOPSIS
ezmlmrc
.SH DESCRIPTION
.LP
.B ezmlmrc
is a file that configures
.B ezmlm-make(1)
for setting up new lists.
.B ezmlmrc
if a plain text with four types
of tags. All start in
the first position of the line.
No other text is allowed on the same line. For
security reasons, no periods are allowed anywhere in a tag.
Any line with a ``#'' in position 1 is ignored,
as is any text preceding the first tag.
The first line
in
.B ezmlmrc
is unique. It should start in position 1 with ``x.yz'', where
``x'' is the major version number, ``y'' a minor version number, and ``z''
a bugfix version number.
.B ezmlm-make(1)
will print a warning message if it is used with an
.B ezmlmrc
file that lacks the version identifier, or with an
.B ezmlmrc
file that has a version identifier that differs in
either major or minor version numbers from the
.B ezmlm-make
version.
The
.B ezmlmrc
file is processed top down. Text preceding the first tag is ignored.
Subsequently, one and only one file is open for writing. Any text encountered
in
.B ezmlmrc
is copied to that file as is with a few substitutions (see below). Text
following conditional tags is copied only if the condition is met. A file is
automatically closed when a new file is opened. Opening a file overwrites
any preexisting file with that name.
Tags are:
.TP
.B </filename#aI/>
The following text will be copied to
.IR dir\fB/filename
if the options specified after the ``#'' are active, in this case
.I archived
and not
.IR indexed .
Any number of flags can be specified. This is used to adapt the files and
messages to the type of list created. If no flags are
used, the ``#'' can be omitted. If the file name is the same as the previous
tag, or if it is omitted, the text will be added to the previous file.
When a new file is opened the previous file is closed. Attempts to add
more text to a already closed file overwrites its contents.
For all letter switches (except
.BR \-cCvV ),
upper and lower
case tags are opposite and mutually exclusive. Thus, if
.B \-g
is specified,
.B \-G
is not set and
if
.B \-G
is set,
.B -g
is not.
The tag
.B #E
has special meaning. It is false if the list is being edited, e.g.
.B ezmlm-make
.B \-e
or
.BR \+ ,
but true
if switches
.B \-ee
or
.BR \-++
are used, or if
.B ezmlm-make
.I local
is specified. Thus, for normal edits with unchanged list name, the files
tagged with
.B #E
are not overwritten (preserving manual customizations), but if the list name
changes or if explicitly specified by
.B \-ee
or
.BR \-++
the
.B #E
switch is ignored.
.TP
.B </filename#5^i/>
This is an alternative way of specifying ``if switch \-5 is specified and
the \-i switch is not specified''. ``^'' is used as ``not''.
.TP
.B </-filename#eA/>
.IR dir\fB/filename
will be erased, if the options after the ``#'' are active, in this case
.I not archived
and
.IR edit .
An alternative to specify that a flag, e.g. ``4'' should not be active is
to use ``^4''.
.TP
.B </+directory#aI/>
The directory ``directory'' is created if the flags specified are active, in
this case
.I archived
and not
.IR indexed .
If no flags are specified, the ``#'' can be
omitted.
.TP
.B </:link/directory#aI/>
.B dot\fI\-link
is symlinked to
.I dir/directory
if the flags specified are active, in
this case
.I archived
and not
.IR indexed .
If no flags are specified, the ``#'' can be
omitted.
.PP
.I ezmlm-make
substitutes the following tags anywhere within files when they are
(re)created. Other tags of this format are copied to the files as is.
.TP
.B <#B#>
The path to the
.B ezmlm-idx
binaries.
.TP
.B <#C#>
.I digestcode
.TP
.B <#D#>
.I dir
.TP
.B <#F#>
The alphanumeric flags given to
.I ezmlm-make
concatenated together.
.TP
.B <#H#>
.I host
.TP
.B <#L#>
.I local
.TP
.B <#T#>
.I dot
.TP
.B <#0#>
The argument for
.IR \-0 .
.TP
.B <#1#>
The part of
.I dot
between the first two hyphens (if any).
.TP
.B <#2#>
The part of
.I dot
between the second and third hyphen (if any).
.TP
.BR <#3#> .. <#9#>
The argument to
.IR \-3 .. \-9 .
.PP
Before the template file is processed,
.B ezmlm-make
will create the list directory.
.B ezmlm-make
will also create
.IR dir\fB/key .
.SH "DESCRIPTION OF EZMLMRC"
The ezmlmrc file is preconfigured to act upon
.B ezmlm-make(1)
switches to produce the results as described in the
.B ezmlm-make(1)
man page.
A number of files are created via
.B ezmlmrc
independently of any switches. These are
.I dir\fB/headeradd
adding ``Precedence: bulk'' and ``X-No-Archive: yes'' to outgoing
messages, and
.I dir\fB/headerremove
removing ``Return-Path'', ``Return-Receipt-To'', ``Content-length'', and
``Precedence'' from list messages. These files are not overwritten when
lists are edited.
.I dir\fB/bouncer
and
.I dir\fB/digest/bouncer
are set up to invoke
.B ezmlm-weed(1)
and
.B ezmlm-return(1)
to handle bounces.
In addition to switch-dependent lines, an invocation of
.B ezmlm-warn(1)
is placed at the end of
.IR dir\fB/editor ,
.IR dir\fB/manager ,
and
.I dir\fB/owner
to process the contents of the bounce directory.
.BR ezmlm-reject(1)
is placed first in
.I dir\fB/editor
(unless the
.B \-0\ mainlist@mainhost
switch is used) to reject undesirable messages.
Below is a description of the switches and the consequences
the have for list creation with the standard
.B ezlmrc
file.
.B emzlm-make(1)
by default sets the
.BR \-a ,
and
.B \-p
switches.
.TP
.B \-a
.I dir\fB/archived
and
.I dir\fB/indexed
are created.
.I dir\fB/text/bottom
is adjusted to mention archive access.
.B \-A
.I dir\fB/archived
and
.I dir\fB/indexed
are removed.
.TP
.B \-b
Block archive.
.I dir\fB/modgetonly
is created to allow only moderators archive access.
.TP
.B \-B
.I dir\fB/modgetonly
is removed.
.TP
.B \-d
.I dir\fB/digested
is created, signalling to programs to send digests.
.TP
.B \-D
.I dir\fB/digested
is removed, signalling to not send digests.
.TP
.B \-f
The text ``[\fIlocal\fR]'' is placed in
.I dir\fB/prefix
resulting in the text being used as the list's subject index.
.TP
.B \-F
.I dir\fB/prefix
is removed.
.TP
.B \-g
.I dir\fB/subgetonly
is created, signalling
.B ezmlm-get(1)
to only allow subscribers to access the archive.
.TP
.B \-G
.I dir\fB/subgetonly
is removed, signalling
.B ezmlm-get(1)
That anyone can access the archive if archive (access) in general is
enabled (see
.B \-p
for ``public'',
.B \-a
for ``archived'', and
.B \-i
for ``indexed''.
.TP
.B \-i
.I dir\fB/threaded
is created to signal
.B ezmlm-archive(1)
to run as appropriate after messages are posted. This sets up the
cross-reference for
.B ezmlm-cgi(1)
WWW access.
.TP
.B \-I
.I dir\fB/threaded
is removed.
.TP
.B \-j
.I dir\fB/nounsubconfirm
is created to signal
.B ezmlm-manage(1)
to not require confirmation after unsubscription requests.
.TP
.B \-J
.I dir\fB/nounsubconfirm
is removed.
.TP
.B \-l
.I dir\fB/modcanlist
is created to signal
.B ezmlm-manage(1)
to allow retrieval of subscriber list and list log by remote administrators.
.BR NOTE :
This is pointless, unless the list is also set up for remote administration
with the
.B \-r
switch.
.TP
.B \-L
.I dir\fB/modcanlist
is removed, disallowing access to the subscriber list under any
circumstances.
.TP
.B \-m
Message moderation.
.I dir\fB/modpost
is created, which signals
.B ezmlm-store(1)
to store messages and forward confirmation requests to the moderators.
Special action is taken when the
.B \-m
switch is combined with
.BR \-u .
In this case, the handling is as for the
.B \-m
switch alone, but
.I dir\fB/editor
is set up with
.B ezmlm-gate(1)
which will fork
.B ezmlm-send(1)
for posts with an envelope sender that is a subscriber or a moderator, and
for
.B ezmlm-store(1)
for posts with other envelope senders. The consequence is that posts from
subscribers (with the usual caveats for SENDER checks) are posted directly,
whereas other posts are sent for moderation.
.TP
.B \-M
.I dir\fB/modpost
is removed, undoing the changes above.
.TP
.B \-n
Allow text file editing.
.I dir\fB/modcanedit
is created to signal
.ezmlm-manage(1)
to allow remote admins to via E-mail edit the files in
.IR dir\fB/text/ .
.BR NOTE :
This is pointless, unless the list is also set up for remote administration
with the
.B \-r
switch.
.TP
.B \-N
.I dir\fB/modcanedit
is removed to disallow editing of files in
.IR dir\fB/text .
.TP
.B \-o
.I dir\fB/modpostonly
is created to signal
.B ezmlm-store(1)
ro reject posts from non-moderators on moderated lists rather than
sending them for moderation. This is for some announcement lists.
.TP
.B \-O
.I dir\fB/modpostonly
is removed.
.TP
.B \-p
Public.
.I dir\fB/public
is created, signaling
.B ezmlm-get(1)
to allow archive retrieval attempts, and
.B ezmlm-manage(1)
to allow subscription and unsubscription attempts.
.TP
.B \-P
Not public.
.I dir\fB/public
is removed.
.TP
.B \-r
Remote admin.
.I dir\fB/remote
is created to signal
.B ezmlm-manage(1)
to allow remote administration of mailing lists.
.TP
.B \-R
.I dir\fB/remote
is removed.
.TP
.B \-s
Subscription moderation.
.I dir\fB/modsub
is created to signal
.B ezmlm-manage(1)
to forward confirmed subscription requests to the moderators for
approval. The unsubscription process is unchanged.
.TP
.B \-S
.I dir\fB/modsub
is removed.
.TP
.B \-t
.I dir\fB/addtrailer
is created to signal
.B ezmlm-send(1)
to include the trailer portions in
.I dir\fB/text/trailer
in messages posted to the list.
.TP
.B \-T
.I dir\fB/addtrailer
is removed.
.TP
.B \-u
Subscriber-only posts.
.I dir\fB/subpostonly
is created to allow posts only from subscribers.
.B ezmlm-checksub(1)
is checks the envelope sender against the subscriber address databases.
If the sender is not found, the post is rejected. This results in
subscriber-only posts, with the usual caveats for SENDER checks.
Special action is taken when the
.B \-u
switch is combined with
.BR \-m .
In this case, the setup is as for the
.B \-m
switch alone, but
.B ezmlm-gate(1)
will execute
.B ezmlm-send(1)
for posts with an envelope sender that is a subscriber or a moderator,
and will otherwise moderate the message. The consequence is that posts
from subscribers (with the usual caveats for SENDER checks) are posted
directly, whereas other posts are sent for moderation. Also,
.I dir\fB/noreturnposts
is created to silently drop ignored posts rather than returning them to
their senders.
.TP
.B \-U
.I dir\fB/subpostonly is removed.
.TP
.B \-w
.I dir\fB/nowarn
is created to signal
.B ezmlm-warn(1)
to do no work.
.TP
.B \-W
.I dir\fB/nowarn
is removed.
.TP
.B \-x
.I dir\fB/mimeremove
is created containing many MIME types not routinely supported.
MIME types in
.I dir\fB/mimeremove are stripped from multipart posts before archiving
and distribution.
To view the list of
MIME types, see
.B ezmlmrc
or create a list and view
.IR dir\fB/mimeremove .
In addition
.I dir\fB/msgsize
is created containing ``30000:2'' causing
.B ezmlm-reject(1)
to reject all posts that have a body of less than 2 bytes (empty) or
more than 30000 bytes (too large).
.TP
.B \-y
Confirm postings.
.I dir\fB/confirmpost
is created to signal
.B ezmlm-store(1)
to send a confirmation probe to the sender of each post.
.TP
.B \-Y
.I dir\fB/confirmpost
is removed.
.TP
.B \-0\fI\ mainlist@mainhost
.I dir\fB/sublist
is created with ``mainlist@mainhost''.
.B dir\fB/ezmlm-reject
is not used in
.I dir\fB/editor
to avoid rejecting messages that the main list has accepted.
.TP
.B \-3\fI\ fromarg
The list is set up to add ``from'' to
.I dir\fB/headerremove
and
.B From:\fI fromarg
to
.IR dir\fB/headeradd .
This replaces the incoming ``From:'' header as desirable for some announcement
lists.
.TP
.B \-4\fI\ tstdigopts
.I tstdigopts
will be used as the arguments for
.ezmlm-tstdig(1)
in
.IR dir\fB/editor .
This must be both switches and their arguments for
.BR ezmlm-tstdig(1) .
.BR NOTE :
This is pointless, unless the list is also set up for digests
with the
.B \-d
switch.
.TP
.B \-5\fI\ owner@ownerhost
.I owner@ownerhost is placed in
.I dir\fB/owner
so that mail to ``list-owner'' is forwarded to that address, rather than
being stored in
.IR dir\fB/Mailbox .
If the address does not start with an underscore or alphanumeric character,
the argument must start with an ampersand.
.TP
.B \-6\fI\ plugin:host:port:user:password:datab:table
The string, followed by the list name is placed in
.IR dir\fB/subdb ,
indicating what subscriber database plugin and parameters to use.
.TP
.B \-7\fI\ /msgmodPath
.I msgmodPath
is placed in
.IR dir\fB/modpost
is the list is set up for message moderation with the
.B \-m
switch.
.TP
.B \-8\fI\ /submodPath
.I submodPath
is placed in
.IR dir\fB/modsub
is the list is set up for subscription moderation with the
.B \-s
switch.
.TP
.B \-9\fI\ /remoteAdminPath
.I remoteAdminPath
is placed in
.IR dir\fB/remote
is the list is set up for remote administration with the
.B \-r
switch.
.SH "SEE ALSO"
ezmlm(5),
ezmlm-checksub(1),
ezmlm-clean(1),
ezmlm-gate(1),
ezmlm-get(1),
ezmlm-issubn(1),
ezmlm-make(1),
ezmlm-manage(1),
ezmlm-moderate(1),
ezmlm-request(1),
ezmlm-return(1),
ezmlm-send(1),
ezmlm-store(1),
ezmlm-tstdig(1),
ezmlm-warn(1),