Commit | Line | Data |
---|---|---|
f8beb284 MW |
1 | 0.324 - This version identifier must be on line 1 and start in pos 1. |
2 | # | |
3 | #$Id: ezmlmrc.ru,v 1.4 1999/12/23 23:08:19 lindberg Exp $ | |
4 | #$Name: ezmlm-idx-040 $ | |
5 | # | |
6 | # ezmlmrc | |
7 | # ####### | |
8 | # Controls the actions of ezmlm-make as patched with ezmlm-idx-0.31 or later. | |
9 | # | |
10 | # The base directory 'DIR' is always created by ezmlm-make, as is DIR/key. | |
11 | # Everything else is done from here. | |
12 | # | |
13 | # ezmlm-make looks for this file, first as .ezmlmrc in the directory that the | |
14 | # lists .qmail files will be placed in (if you've used the -c command line | |
15 | # switch), then /etc/ezmlmrc, then ezmlmrc in the ezmlm-make binary directory. | |
16 | # Thus, you can customize ezmlm-make on a global level by placing a customized | |
17 | # copy of ezmlmrc in /etc and on a user level by copying it to .ezmlmrc in | |
18 | # the user's home directory AND use the ezmlm-make -c switch. | |
19 | # | |
20 | # Tags are: | |
21 | # </filename/> : put succeeding text lines in DIR/filename | |
22 | # </-filename/> : erase DIR/filename. | |
23 | # </+dirname/> : create directory DIR/dirname | |
24 | # </:lname/dirname> : symlink DIR/.qmail-list-lname -> DIR/dirname | |
25 | # | |
26 | # The name in the tag can be suffixed with '#' and any number of flags, | |
27 | # corresponding to command line switches. The item will be created/extended | |
28 | # only if all the flags listed are set. Files can be extended as long as they | |
29 | # were the last one created, but not if another file has been started since | |
30 | # then. Flags that are not recognized are silently ignored. | |
31 | # | |
32 | # Thus, </filename#aP/> creates the file if and only if the list is archived | |
33 | # (-a) and not public (-P). If the next tag is </filename#m/>, the file is | |
34 | # extended with the lines up to the next tag if the list is message moderated | |
35 | # (-m). If the next tag is </another/>, 'filename' is closed. Any further | |
36 | # tags leading to the reopenining of 'filename' will overwrite the file, not | |
37 | # extend it. | |
38 | # | |
39 | # A set of user-defined command line switches (xX, yY, zZ) are available for | |
40 | # customization. | |
41 | # | |
42 | # Within the text, certain tags are substituted. Other tags are copied as | |
43 | # is. <#A#> and <#R#> are substituted by ezmlm-manage and -store (see man pages) | |
44 | # and <#l#> (lower case L) is replaced dynamically by the list name for | |
45 | # programs handling both 'list' and 'list-digest'. | |
46 | # | |
47 | # Substitutions are: | |
48 | # <#B#> ezmlm binaries path <#C#> digest code <#D#> dir | |
49 | # <#H#> host <#L#> local <#F#> flags | |
50 | # <#T#> dot <#0#> arg for -0. <#3#>...<#9#> arg for -3..9 | |
51 | # <#1#> ext1 <#2#> ext2 [if dot is /path/.qmail-ext1-ext2-name] | |
52 | # The latter useful when a single user is controlling several virtual domains. | |
53 | # | |
54 | # -0 is used for the main list address when setting up sublists | |
55 | # -4 for specifying the ezmlm-tstdig switches used in dir/editor. Default | |
56 | # -k64 -m30 -t24. Only used if -g is used. | |
57 | # -5 for list-owner address. Mail to list-owner will be forwarded to this addr. | |
58 | # -6 for sql connection info | |
59 | # -7 for contents of DIR/modpost | |
60 | # -8 for contents of DIR/modsub | |
61 | # -9 for contents of DIR/remote | |
62 | # | |
63 | # For demonstration purposes, the '-x' switch results in the following | |
64 | # non-standard actions: | |
65 | # - Removal of many non-text MIME parts from messages. | |
66 | # - Limit posts to 2 bytes <= msg body size <= 40000 | |
67 | # | |
68 | # Attempts to create links or directories that already exist, will result | |
69 | # in a FATAL error. Attempts to open files that have already been closed | |
70 | # or already exits, will cause the old file to be overwritten. | |
71 | # | |
72 | # One of the major problems with ezmlm-lists is DIR/inlocal. For normal | |
73 | # users, it is set up to the list name (user-list or so), which is correct. | |
74 | # However, for user 'ezmlm' in control of virtual domain 'host.dom.com' | |
75 | # the list name is 'list@host.dom.com', but inlocal should be 'ezmlm-list', | |
76 | # not 'list'. Similarly, if ezmlm-domain1 is in control of 'host.dom.com, | |
77 | # list@host.dom.com, should yield an inlocal of 'ezmlm-domain1-list'. To | |
78 | # always get the lists correct, place this file as '.ezmlmrc' in the | |
79 | # users home directory (~ezmlm/.ezmlmrc) and change the inlocal text below | |
80 | # to 'ezmlm-<#L#>' or 'ezmlm-<#1#>-<#L#>, respectively. | |
81 | # config to support future editing without giving ezmlm-make command line | |
82 | # arguments other than dir. Useful for GUI/WWW editing tools | |
83 | </config/> | |
84 | F:<#F#> | |
85 | D:<#D#> | |
86 | T:<#T#> | |
87 | L:<#L#> | |
88 | H:<#H#> | |
89 | C:<#C#> | |
90 | 0:<#0#> | |
91 | 3:<#3#> | |
92 | 4:<#4#> | |
93 | 5:<#5#> | |
94 | 6:<#6#> | |
95 | 7:<#7#> | |
96 | 8:<#8#> | |
97 | 9:<#9#> | |
98 | </charset/> | |
99 | # Charset file is a must for russian mailing lists | |
100 | koi8-r | |
101 | </inlocal/> | |
102 | <#L#> | |
103 | </sublist#0/> | |
104 | <#0#> | |
105 | </+archive/> | |
106 | </+subscribers/> | |
107 | </+bounce/> | |
108 | </+text/> | |
109 | # dirs for digests | |
110 | </+digest#d/> | |
111 | </+digest/subscribers#d/> | |
112 | </+digest/bounce#d/> | |
113 | # for extra address db | |
114 | </+allow/> | |
115 | </+allow/subscribers/> | |
116 | # for blacklist | |
117 | </+deny#k/> | |
118 | </+deny/subscribers#k/> | |
119 | # moderator db & mod queue dirs. Needed for -m, -r -s, so we just | |
120 | # make them by default. | |
121 | </+mod/> | |
122 | </+mod/subscribers/> | |
123 | </+mod/pending/> | |
124 | </+mod/accepted/> | |
125 | </+mod/rejected/> | |
126 | # links: dot -> dir/editor | |
127 | </:/editor/> | |
128 | </:-owner/owner/> | |
129 | </:-digest-owner/owner#d/> | |
130 | </:-return-default/bouncer/> | |
131 | </:-digest-return-default/digest/bouncer#d/> | |
132 | </:-default/manager/> | |
133 | # for message moderation only | |
134 | </:-accept-default/moderator#m/> | |
135 | </:-reject-default/moderator#m/> | |
136 | # Get rid of configuration flags for editing mode so we can start with a | |
137 | # clean slate. | |
138 | </-modpost#eM/> | |
139 | </-modsub#eS/> | |
140 | </-remote#eR/> | |
141 | </-public#eP/> | |
142 | </-indexed#eI/> | |
143 | </-archived#eA/> | |
144 | </-prefix#eF/> | |
145 | </-text/trailer#eT/> | |
146 | </-sublist#e^0/> | |
147 | </-mimeremove#eX/> | |
148 | # Not needed, except for message moderation. | |
149 | </-moderator#eM/> | |
150 | # We don't clean out text files to make it easier for users | |
151 | # doing manual config by e.g. touching dir/remote. | |
152 | # subscription moderation | |
153 | </modsub#s/> | |
154 | <#8#> | |
155 | # remote admin | |
156 | </remote#r/> | |
157 | <#9#> | |
158 | # message moderation | |
159 | </modpost#m/> | |
160 | <#7#> | |
161 | # List owner mail | |
162 | </owner#5/> | |
163 | <#5#> | |
164 | </owner#^5/> | |
165 | <#D#>/Mailbox | |
166 | </#W/> | |
167 | |<#B#>/ezmlm-warn '<#D#>' || exit 0 | |
168 | # Handles subscription. Add flags if you want a non-default digest format. | |
169 | # Service subject commands to the # request address if the -q switch is given. | |
170 | # Also -l and -d enable subscriber listing/text file editing, for remote adms. | |
171 | # -u gives subscriber only archive access | |
172 | </manager#iG/> | |
173 | |<#B#>/ezmlm-get '<#D#>' <#C#> | |
174 | </manager#ig/> | |
175 | |<#B#>/ezmlm-get -s '<#D#>' <#C#> | |
176 | </manager#q/> | |
177 | |<#B#>/ezmlm-request '<#D#>' | |
178 | # Ok to add -l/-d even for non-mod lists, since ezmlm-manage | |
179 | # won't allow it unless there are remote admins. | |
180 | </manager#LN/> | |
181 | |<#B#>/ezmlm-manage '<#D#>' | |
182 | </manager#lN/> | |
183 | |<#B#>/ezmlm-manage -l '<#D#>' | |
184 | </manager#Ln/> | |
185 | |<#B#>/ezmlm-manage -e '<#D#>' | |
186 | </manager#ln/> | |
187 | |<#B#>/ezmlm-manage -le '<#D#>' | |
188 | </manager#W/> | |
189 | |<#B#>/ezmlm-warn '<#D#>' || exit 0 | |
190 | </#dW/> | |
191 | |<#B#>/ezmlm-warn -d '<#D#>' || exit 0 | |
192 | </editor/> | |
193 | # reject shouldn't be configured for sublist. | |
194 | </#^0/> | |
195 | # full reject is now default, to get To/Cc: listaddress requirement | |
196 | |<#B#>/ezmlm-reject '<#D#>' | |
197 | # -k => reject posts from blacklisted addresses. Done for moderated | |
198 | # lists as well - allows removal of unwanted noise. | |
199 | </#k^0/> | |
200 | |<#B#>/ezmlm-issubn -n '<#D#>/deny' || { echo "Sorry, I've been told to reject your posts. Contact <#L#>-owner@<#H#> if you have questions about this (#5.7.2)"; exit 100 ; } | |
201 | # switch -u=> restrict to subs of list & digest. If not m | |
202 | # do it with ezmlm-issubn, if 'm' do it with ezmlm-gate | |
203 | </#uM/> | |
204 | |<#B#>/ezmlm-issubn '<#D#>' '<#D#>/digest' '<#D#>/allow' '<#D#>/mod' || { echo "Sorry, only subscribers may post. If you are a subscriber, please forward this message to <#L#>-owner@<#H#> to get your new address included (#5.7.2)"; exit 100 ; } | |
205 | </#um/> | |
206 | |<#B#>/ezmlm-gate '<#D#>' '<#D#>' '<#D#>/digest' '<#D#>/allow' '<#D#>/mod' | |
207 | # For message moderation, editor has store/clean | |
208 | </#mU/> | |
209 | |<#B#>/ezmlm-store '<#D#>' | |
210 | |<#B#>/ezmlm-clean '<#D#>' || exit 0 | |
211 | </#mu/> | |
212 | |<#B#>/ezmlm-clean -R '<#D#>' || exit 0 | |
213 | # for non-message moderated lists, it has send | |
214 | </#M/> | |
215 | |<#B#>/ezmlm-send '<#D#>' | |
216 | # all lists have warn unless -w. | |
217 | </#W/> | |
218 | |<#B#>/ezmlm-warn '<#D#>' || exit 0 | |
219 | # for digest bounces | |
220 | </#dW/> | |
221 | |<#B#>/ezmlm-warn -d '<#D#>' || exit 0 | |
222 | </#d^4/> | |
223 | |<#B#>/ezmlm-tstdig -m30 -k64 -t48 '<#D#>' || exit 99 | |
224 | </#d4/> | |
225 | |<#B#>/ezmlm-tstdig <#4#> '<#D#>' || exit 99 | |
226 | </#d/> | |
227 | |<#B#>/ezmlm-get '<#D#>' || exit 0 | |
228 | # bouncer is complicated. We use ezmlm-receipt if -6 AND -w, but ezmlm-return | |
229 | # if (-6 and -W) OR (not -6 and -w). Since there is no or, we need 2 lines. | |
230 | </bouncer/> | |
231 | |<#B#>/ezmlm-weed | |
232 | </#^6/> | |
233 | |<#B#>/ezmlm-return -D '<#D#>' | |
234 | </#6W/> | |
235 | |<#B#>/ezmlm-return -D '<#D#>' | |
236 | </#6w/> | |
237 | |<#B#>/ezmlm-receipt -D '<#D#>' | |
238 | </digest/bouncer#d/> | |
239 | |<#B#>/ezmlm-weed | |
240 | </#^6d/> | |
241 | |<#B#>/ezmlm-return -d '<#D#>' | |
242 | </#6Wd/> | |
243 | |<#B#>/ezmlm-return -d '<#D#>' | |
244 | </#6wd/> | |
245 | |<#B#>/ezmlm-receipt -d '<#D#>' | |
246 | # moderator is set up only for message moderated lists. However, '-e' does | |
247 | # not remove it since we can't remove the symlinks to it (they're outside | |
248 | # of the list dir. | |
249 | </moderator#m/> | |
250 | |<#B#>/ezmlm-moderate '<#D#>' | |
251 | </#mU/> | |
252 | |<#B#>/ezmlm-clean '<#D#>' || exit 0 | |
253 | </#mu/> | |
254 | |<#B#>/ezmlm-clean -R '<#D#>' || exit 0 | |
255 | </headerremove#E/> | |
256 | return-path | |
257 | return-receipt-to | |
258 | content-length | |
259 | precedence | |
260 | x-confirm-reading-to | |
261 | x-pmrqc | |
262 | # Only one allowed | |
263 | list-help | |
264 | list-unsubscribe | |
265 | list-post | |
266 | </lock/> | |
267 | </lockbounce/> | |
268 | </digest/lockbounce#d/> | |
269 | </digest/lock#d/> | |
270 | </public#p/> | |
271 | </archived#a/> | |
272 | </indexed#i/> | |
273 | </inhost/> | |
274 | <#H#> | |
275 | </outhost/> | |
276 | <#H#> | |
277 | </outlocal/> | |
278 | <#L#> | |
279 | </mailinglist/> | |
280 | contact <#L#>-help@<#H#>; run by ezmlm | |
281 | # Headeradd needs to always exist | |
282 | </headeradd#E/> | |
283 | # Good for mailing list stuff (and vacation program) | |
284 | Precedence: bulk | |
285 | # To prevent indexing by findmail.com | |
286 | X-No-Archive: yes | |
287 | # rfc2369 | |
288 | List-Help: <mailto:<#l#>-help@<#h#>> | |
289 | List-Unsubscribe: <mailto:<#l#>-unsubscribe@<#h#>> | |
290 | List-Subscribe: <mailto:<#l#>-subscribe@<#h#>> | |
291 | List-Post: <mailto:<#L#>@<#H#>> | |
292 | X-Comment: <#l#> mailing list (Russian, KOI8-R) | |
293 | # max & min message size | |
294 | </msgsize#x/> | |
295 | 40000:2 | |
296 | # remove mime parts if -x | |
297 | </mimeremove#x/> | |
298 | application/excel | |
299 | application/rtf | |
300 | application/msword | |
301 | application/ms-tnef | |
302 | text/html | |
303 | text/rtf | |
304 | text/enriched | |
305 | text/x-vcard | |
306 | application/activemessage | |
307 | application/andrew-inset | |
308 | application/applefile | |
309 | application/atomicmail | |
310 | application/dca-rft | |
311 | application/dec-dx | |
312 | application/mac-binhex40 | |
313 | application/mac-compactpro | |
314 | application/macwriteii | |
315 | application/news-message-id | |
316 | application/news-transmission | |
317 | application/octet-stream | |
318 | application/oda | |
319 | application/pdf | |
320 | application/postscript | |
321 | application/powerpoint | |
322 | application/remote-printing | |
323 | application/slate | |
324 | application/wita | |
325 | application/wordperfect5.1 | |
326 | application/x-bcpio | |
327 | application/x-cdlink | |
328 | application/x-compress | |
329 | application/x-cpio | |
330 | application/x-csh | |
331 | application/x-director | |
332 | application/x-dvi | |
333 | application/x-hdf | |
334 | application/x-httpd-cgi | |
335 | application/x-koan | |
336 | application/x-latex | |
337 | application/x-mif | |
338 | application/x-netcdf | |
339 | application/x-stuffit | |
340 | application/x-sv4cpio | |
341 | application/x-sv4crc | |
342 | application/x-tar | |
343 | application/x-tcl | |
344 | application/x-tex | |
345 | application/x-texinfo | |
346 | application/x-troff | |
347 | application/x-troff-man | |
348 | application/x-troff-me | |
349 | application/x-troff-ms | |
350 | application/x-ustar | |
351 | application/x-wais-source | |
352 | audio/basic | |
353 | audio/mpeg | |
354 | audio/x-aiff | |
355 | audio/x-pn-realaudio | |
356 | audio/x-pn-realaudio | |
357 | audio/x-pn-realaudio-plugin | |
358 | audio/x-realaudio | |
359 | audio/x-wav | |
360 | image/gif | |
361 | image/ief | |
362 | image/jpeg | |
363 | image/png | |
364 | image/tiff | |
365 | image/x-cmu-raster | |
366 | image/x-portable-anymap | |
367 | image/x-portable-bitmap | |
368 | image/x-portable-graymap | |
369 | image/x-portable-pixmap | |
370 | image/x-rgb | |
371 | image/x-xbitmap | |
372 | image/x-xpixmap | |
373 | image/x-xwindowdump | |
374 | text/x-sgml | |
375 | video/mpeg | |
376 | video/quicktime | |
377 | video/x-msvideo | |
378 | video/x-sgi-movie | |
379 | x-conference/x-cooltalk | |
380 | x-world/x-vrml | |
381 | # These can also be excluded, but for many lists it is desirable | |
382 | # to allow them. Uncomment to add to mimeremove. | |
383 | # application/zip | |
384 | # application/x-gtar | |
385 | # application/x-gzip | |
386 | # application/x-sh | |
387 | # application/x-shar | |
388 | # chemical/x-pdb | |
389 | # --------------------- Handle SQL connect info | |
390 | </-sql#^6e/> | |
391 | </-digest/sql#^6e/> | |
392 | </-allow/sql#^6e/> | |
393 | </sql#6W/> | |
394 | <#6#> | |
395 | </sql#6w/> | |
396 | <#6#>:<#L#>@<#H#> | |
397 | </digest/sql#6dW/> | |
398 | <#6#>_digest | |
399 | </digest/sql#6dw/> | |
400 | <#6#>_digest:<#L#>_digest@<#H#> | |
401 | </allow/sql#6/> | |
402 | <#6#>_allow | |
403 | # -------------------- End sql stuff | |
404 | </prefix#f/> | |
405 | [<#L#>] | |
406 | </text/trailer#t/> | |
407 | -- | |
408 | To unsubscribe, e-mail: <#L#>-unsubscribe@<#H#> | |
409 | For additional commands, e-mail: <#L#>-help@<#H#> | |
410 | </text/bottom/> | |
411 | ||
412 |