| メーリングリスト(fml) |
メーリングリストは、たくさんの人に投稿された記事をメールで 送るシステムである。 メーリングリストのサーバソフトにはいろいろなものがあるが、 なかでも、 深町賢一氏 が作ったfmlが有名である。 ここにホームページがあるので 参照すると良い。 日本人が作ったので、日本語にも対応しています。 結構使い勝手がいいです。 ホームページを見ると詳しくかいてあります。
| ダウンロードとインストール |
2001.09.27時点での最新リリース版は、4.0.2のようである。 こちら からソースをダウンロードすることができる。
インストールは、fmlというユーザで、 /usr/local/fmlに実行ファイルをインストールし、 /var/spool/mlに各MLのディレクトリをつくる。
$ su - Passward: # groupadd fml # useradd -g fml fml # mkdir /usr/local/fml /var/spool/ml # chown fml /usr/local/fml /var/spool/ml # chgrp fml /usr/local/fml /var/spool/ml
以下の手順でインストールできる。
$ su fml
Passward:
$ cd /usr/local/src
$ gtar xvfz /usr/local/src/fml-4.0.2.tar.gz
$ cd fml-4.0.2
$ env RECOMMAND=yes perl makefml install
unshift(@INC, /usr/local/src/fml-4.0.2/src)
---NOT USING configuration file (for the first time)
THIS HOST (yari.bigforest.hn.org) IS [i586-pc-linux-gnu]
---Please Define Your Fml System Configurations
Personal Use or ML-Admin-Group-Shared or fmlserv you use?
Personal, Group, Fmlserv (personal/group/fmlserv) [personal] リターン
DOMAIN NAME [bigforest.hn.org] リターン
FQDN [yari.bigforest.hn.org] リターン
EXEC FILES DIRECTORY [/usr/local/fml] リターン
TOP LEVEL ML DIRECTORY [/var/spool/ml] リターン
Language (Japanese or English) [English] Japanese
TimeZone (TZ: e.g. +0900, -0300) [+0900] リターン
--- summary ---
DOMAIN: bigforest.hn.org
FQDN: yari.bigforest.hn.org
EXEC_DIR: /usr/local/fml
ML_DIR: /var/spool/ml
Language: Japanese
TimeZone: +0900
The current configuration is saved in /usr/local/fml/.fml/system
---Install the Fml system to /usr/local/fml. (y/n) [n] y
Installing fml system to /usr/local/fml
Fixing Path: src ..........................................
.................................. libexec ..... sbin . cf
. bin .................... www/cgi-bin ......... www/lib ..
. sys ......... module ..
Done.
Generate nroff manuals:
Installing bin ...
Installing sbin .
Installing libexec .
Installing cf .
Installing etc ....
Installing sys ..
Installing src .......
Installing drafts ..
Installing messages .....
Installing www ......
Installing module ............
Installing databases ...
Installing doc ...................................................................................
Done.
Setup CGI examples ........
CGI configuration is saved in /usr/local/fml/.fml/cgi.conf
---UnLocking
-- Enjoy Internetworking!
|
| コマンド |
○ 新しくメーリングリストを作る
下記に一例を示す。
$ su fml
Passward
$ cd /usr/local/fml
$ makefml newml moke
DO "newml" for moke mailing list.
---Creating moke mailing list
directory /var/spool/ml/moke is created as UID=501
directory /var/spool/ml/moke/spool is created as UID=501
---Generting configuration examples.
Generate template files in /var/spool/ml/moke/
include include-ctl include-mead aliases Makefile crontab
fmlwrapper.c fmlwrapper.h
Generate qmail template files in /var/spool/ml/etc/qmail/alias/
.qmail-moke .qmail-moke-ctl .qmail-moke-default .qmail-moke-admin
.qmail-moke-request .qmail-owner-moke .qmail-owner-moke-ctl
Update /var/spool/ml/etc/qmail/users/assign
Update /var/spool/ml/etc/crontab/fml
Create config.ph(/var/spool/ml/moke/config.ph):
/var/spool/ml/moke/cf -> config.ph ... Done.
Create template files for commands (help, guide ...)
help help-admin deny guide welcome confirm objective
Update /var/spool/ml/etc/aliases
The next step: update your MTA configuration. For example
% su root
# cat /var/spool/ml/moke/aliases >> /etc/aliases
# newaliases
FYI: See templates in '/var/spool/ml/moke/'
done.
この後に出来上がった/var/spool/ml/moke/aliasesを /etc/aliasesに追加して、newaliasesを実行する。
% su root # cat /var/spool/ml/moke/aliases >> /etc/aliases # newaliases
これで、/var/spool/ml/moke/に新しいmlのディレクトリができる。 moke@bigforet.hn.orgにメールを出せば、メーリングリストに投稿できる。
○ メーリングリストに新しくメンバーを加える。
○ メーリングリスのメンバーを削除する。
○ メンバーのアドレスを変更する。
| 設定の変更 |
$ makefml config moke
=== TOP MENU ===
Mailing List Addresses
FOR POST moke@bigforest.hn.org
FOR COMMAND moke-ctl@bigforest.hn.org
_______________________
0 END
1 POLICY OF ACCESS (WHO CAN POST AND USE COMMANDS)
[POST]
PERMIT_POST_FROM members_only
WHEN POST FROM NOT MEMBER reject
[COMMAND]
PERMIT_COMMAND_FROM members_only
WHEN COMMAND FROM NOT MEMBER reject
2 REGISTRATION METHOD TYPE
AUTO_REGISTRATION_TYPE confirmation
UNSUBSCRIBE_AUTH_TYPE
3 SETTINGS AROUND COMMANDS
address for command moke-ctl@bigforest.hn.org
4 REMOTE ADMINISTRATION
PERMIT ? NO
AUTH_TYPE crypt
5 HEADER CONFIGURATIONS
6 OPTION
7 SECURITY & FILTERING
************************************************************
Which section? (0-7) [0]
以上のような設定画面が出てくる。 あとは、番号で選んでいけば設定を変更することができる。