-
CML-4.0-Release.tar.gz の入手
CML for qmailは CML4.0 Release の contrib ディレクトリに入っているので
CML のサイト
から CML-4.0-Release.tar.gz を取ってきたら全てのファイル準備完了です。
私は自分のホームディレクトリ /home/hkita/CML というディレクトリを作成し、ここにファイルを入れました。
CML はユーザサイドMLですので、自分のディレクトリにインストールするのが正しいです。
ユーザサイドの設計なので例えば商用プロバイダにもインストール可能かもしれません。
ここが、このMLの素晴らしいところです。
-
ファイルの解凍
$ cd /home/hkita/CML
$ tar -xzvf CML-4.0-Release.tar.gz
-
qmail 用のパッチを当てます
$ cd CML-4.0-Release
$ patch < contrib/Patch-kit-for-qmail/CML-4.0-Release_qmail.patch
-
CML のインストール
$ ./Configure
Checking for sendmail... Done.
Checking for gawk ... Done.
Checking for basename ... Done.
Checking for cat ... Done.
Checking for date ... Done.
Checking for echo ... Done.
Checking for egrep ... Done.
Checking for expr ... Done.
Checking for fgrep ... Done.
Checking for ls ... Done.
Checking for mkdir ... Done.
Checking for mv ... Done.
Checking for rm ... Done.
Checking for sed ... Done.
Checking for sleep ... Done.
Checking for sort ... Done.
Checking for tail ... Done.
Checking for touch ... Done.
Checking for wc ... Done.
Checking for tr ... Done.
Checking for chmod ... Done.
Checking for compress ... Done.
Checking for cp ... Done.
Checking for ed ... Done.
Checking for head ... Done.
Checking for mkdir ... Done.
Checking for tar ... Done.
Checking for uuencode ... Done.
Enter awk command path. [/usr/bin/awk]
Enter grep command path. [/usr/bin/grep]
Checking action of date command ... Done.
Checking domain name ... Done.
Enter domain name. [] nice.kaze.com
Do you want to install cmas ? [y]
Enter install directory. [/usr/local/etc/cml] /home/hkita/CML
Enter spool directory. [/home/hkita/CML]
Do you want to execute 'make install' ? [n] y
*** Start install ***
Installing cmld ... Done.
Installing cmdt ... Done.
Installing killdt ... Done.
Installing addml ... Done.
Installing delml ... Done.
Installing addusr ... Done.
Installing setadmin ... Done.
Installing makecmllist ... Done.
Installing adviceuser ... Done.
Installing b64decode ... Done.
Installing recoverspooll ... Done.
Installing config.default ... Done.
Installing cmas ... Done.
Installing cmad ... Done.
Installing messages ... Done.
Installing rc.cml ... Done.
*** End install ***
***** Attention *****
If you can edit /etc/rc or other system initial files,
insert '/home/hkita/CML/rc.cml' before starting sendmail.
-
セットアップスクリプトのコピー
$ cd contrib/Patch-kit-for-qmail
$ cp alias-root.pl /home/hkita/CML
$ cp alias-user.pl /home/hkita/CML
-
addml の実行
$ cd /home/hkita/CML
$ ./addml inettomo
*** Make mailing list entry tool (addml version 4.0-Release) ***
*** End of make mailing list entry ***
Add this entry to /etc/aliases, and exec 'newaliases' command.
==============================================================
inettomo-request: 'E-mail address of inettomo ML admin.'
inettomo: :include:/home/hkita/CML/exe/inettomo
inettomo-control: :include:/home/hkita/CML/exe/inettomo-control
inettomo-dist: :include:/home/hkita/CML/inettomo/inettomo-list
inettomo-digest-dist: :include:/home/hkita/CML/inettomo/inettomo-digest
-
root になって設定ファイルをロード
$ su
Password:
nice# perl alias-root.pl
Enter your ML name: inettomo
Enter ML administrator's login name: hkita
Enter qmail alias directly [/var/qmail/alias]:
ML name is 'inettomo'.
ML admin is 'hkita'.
qmail alias directly is '/var/qmail/alias'.
Are they correct? [y/N]: y
Installing alias files...
Created /var/qmail/alias/.qmail-inettomo-request
Created /var/qmail/alias/.qmail-inettomo
Created /var/qmail/alias/.qmail-inettomo-control
Created /var/qmail/alias/.qmail-inettomo-dist
Created /var/qmail/alias/.qmail-inettomo-digest-dist
Checking '.qmail-nobody' alias...
line1: Good.
line2: Good.
line3: Good.
line4: Good.
line5: Good.
done.
-
今度は user に戻って設定ファイルのロード
nice# exit
$ perl alias-user.pl
Enter your ML name: inettomo
Enter ML administrator's login name [hkita]:
Enter cml directly [/usr/home/hkita/CML]:
ML name is 'inettomo'.
ML admin is 'hkita'.
CML directly is '/usr/home/hkita/CML'.
Are they correct? [y/N]y
Installing alias files...
Created ~/.qmail-inettomo-request
Created ~/.qmail-inettomo
Created ~/.qmail-inettomo-control
Created ~/.qmail-inettomo-dist
Created ~/.qmail-inettomo-digest-dist
done.
これで終わりです。
すごく簡単です。
たったこれだけで立派なMLが動きます。
必要に応じて、/home/hkita/CML/config.default ファイルを調整します。