-----------------------------------------------------------------------
DO EVERYTHING HERE AS USER "ALIAS" OR YOU WILL SUFFER.
-----------------------------------------------------------------------
1. ezmlm-make takes many options. Here is a suggested set :
-lkdpnrq -5 LISTOWNER -4 '-t24 -m30 -k64'
Mail sent to "LISTNAME-owner" will go to the LISTOWNER you specify.
So to add a list called 'LISTNAME' to sourceware.cygnus.com, use:
% ezmlm-make -ldpknrq -5 jsm@cygnus.com -4 '-t24 -m30 -k64' \
/qmail/lists-sourceware/LISTNAME \
/qmail/alias/.qmail-LISTNAME LISTNAME sourceware.cygnus.com
For a mailing list with moderated content, add "m" to the list of command
line options to ezmlm-make.
2. Add some moderators:
% ezmlm-sub /qmail/lists-sourceware/LISTNAME/mod jsm@cygnus.com
Moderators can subscribe and unsubscribe people; they can get a list of
mailing list subscribers; they have a few other capabilities as well.
If the mailing list is set up with the -m option (moderated content),
then moderators approve/reject mail notes.
NOTE: You need to list your _SMTP envelope_ address for moderation,
not whatever gets stuck in your From: field. So if your mail
system sends out mail with "jsm@bugshack.cygnus.com" for the SMTP
envelope (the address in the From_ line), then you need to subscribe
jsm@bugshack.cygnus.com, not jsm@cygnus.com.
3. Subscribe the web/ftp archiver
% ezmlm-sub /qmail/lists-sourceware/LISTNAME listarch-LISTNAME@sourceware.cygnus.com
You'll set up the rest of the archiver a little later on.
4. Restrict message size
If you want to restrict post size to a maximum, say 5MB, do like this:
% umask 002
% echo 5242880 > /qmail/lists-sourceware/LISTNAME/msgsize
See ezmlm-reject(1) for more info. You can also have certain MIME types
stripped or removed--see the same man page. NB no one will be able to
send a mail note over 5MB if you set msgsize, and mail notes over that
size will be bounced back to the originator--the moderator will never see
them or have a chance to approve them.
5. Remove the X-No-Archive line from headeradd.
Edit the file DIR/headeradd
(/qmail/lists-sourceware/LISTNAME/headeradd) and delete the
X-No-Archive line. Add a Sender line, e.g.
"Sender: LISTNAME-owner@sourceware.cygnus.com"
6. Add Sender: to headerremove
If you add a Sender: line in headeradd, but don't add it in
headerremove as well, you'll get mail notes on the list with two
Sender: lines. INN (the news system) seems to dislike this, so you
need to remove the Sender: line from the mail note as it is received
by ezmlm.
-----------------------------------------------------------------------
NOW DO EVERYTHING HERE AS USER "LISTARCH" OR YOU WILL SUFFER.
-----------------------------------------------------------------------
6. Set up the web directory
% mkdir /www/sourceware/htdocs/ml/LISTNAME
% cd /www/sourceware/htdocs/ml/LISTNAME
% chmod 2775 .
(copy a template from another working list)
% cp ../mauve-patches/mauve-patches.mrc ./LISTNAME.mrc
% touch Log
Update the .mrc file (LISTNAME.mrc)
Create a /www/sourceware/htdocs/ml/LISTNAME/index.html file
and make sure to have the magic line
<!--newmonthsgohere-->
where new months will be inserted. Copy from an existing file for
the best results. If this is a low volume archive, you should use
the magic line "<!--newyearsgohere-->". For a medium-volume archive,
use "<!--newquartersgohere-->".
7. Set up the ftp archive distribution:
create a /qmail/listarch/.qmail-LISTNAME
(following in our example of setting up the list LISTNAME).
This file MUST be mode 644. This file should contain three lines like
this:
|if echo "$SENDER" | egrep "@egcs.cygnus.com|@sourceware.cygnus.com" >/dev/null; then exit 0; else exit 100; fi
|/qmail/bin/preline grep -v '^List-Unsubscribe: ' | /www/sourceware/htdocs/ml/www-archives.sh --medium-volume PROJECTNAME LISTNAME || exit 0
|/qmail/bin/preline grep -v '^List-Unsubscribe: ' | /www/sourceware/htdocs/ml/ftp-archives.sh --medium-volume PROJECTNAME LISTNAME || exit 0
If this is a low-volume list, add the --low-volume command line option
to both www-archives.sh and ftp-archives.sh. When --lowvolume is used,
a single archive (&www dir) is created per year. If this is a high volume
list (one archive dir per month), use --high-volume.