qmailとezmlmのインストール&初期設定。
qmailのインストール。
パッチも当てます。
# fetch ftp://ftp.jp.qmail.org/qmail/qmail-1.03.tar.gz
# fetch http://mirror.averse.net/pub/FreeBSD/ports/local-distfiles/sada/qmail-date-localtime.patch.gz
# tar zxvf qmail-1.03.tar.gz
# gunzip qmail-date-localtime.patch.gz
# patch -p1 < ../qmail-date-localtime.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|This patch causes the various qmail programs to generate date stamps in
|the local timezone. I find GMT too annoying to convert from/to. I make
|no warranties that it will work in your timezone, however it works for me.
|
|--- qmail-1.01/date822fmt.c Tue Apr 15 15:05:23 1997
|+++ date822fmt.c Fri Apr 18 00:39:41 1997
--------------------------
Patching file date822fmt.c using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 13.
done
qmail用ユーザ、グループの作成。
# pw groupadd nofiles -g 3000
# pw groupadd qmail -g 3001
# pw useradd alias -g 3000 -u 3000 -d /var/qmail/alias
# pw useradd qmaild -g 3000 -u 3001 -d /nonexistent
# pw useradd qmaill -g 3000 -u 3002 -d /nonexistent
# pw useradd qmailp -g 3000 -u 3003 -d /nonexistent
# pw useradd qmailq -g 3001 -u 3004 -d /nonexistent
# pw useradd qmailr -g 3001 -u 3005 -d /nonexistent
# pw useradd qmails -g 3001 -u 3006 -d /nonexistent
ディレクトリの作成。
# mkdir /var/qmail
メイクします。
# make
( cat warn-auto.sh; echo CC='`head -1 conf-cc`'; echo LD='`head -1 conf-ld`' ) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
・
・
・
(中略)
・
・
・
cat binm3+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm3+df
chmod 755 binm3+df
# make setup
nroff -man qmail-local.8 > qmail-local.0
nroff -man qmail-lspawn.8 > qmail-lspawn.0
・
・
・
(中略)
・
・
・
./install
# make check
./instcheck
何も出なければOK。
# ./config-fast sundaybreeze.jp
Your fully qualified host name is sundaybreeze.jp.
Putting sundaybreeze.jp into control/me...
Putting sundaybreeze.jp into control/defaultdomain...
Putting sundaybreeze.jp into control/plusdomain...
Putting sundaybreeze.jp into control/locals...
Putting sundaybreeze.jp into control/rcpthosts...
Now qmail will refuse to accept SMTP messages except to sundaybreeze.jp.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!
結局旧サーバのファイルを使うので
あまり意味はなかったりする。
ということで、旧サーバから以下のファイルをそのまま使用。
・/var/qmail/rc → /usr/local/etc/rc.d/qmail.sh として使用
・/var/qmail/alias/.qmail*
・/var/qmail/control/*
・各ユーザのホームディレクトリにあるMaildir
一応配送テスト。
# echo "to: hotmailのアドレス" | /var/qmail/bin/qmail-inject
とりあえず届いたのでOK。
これでqmailは終わりです。
続いて、メーリングリストexmlmのインストール。
# fetch http://cr.yp.to/software/ezmlm-0.53.tar.gz
# fetch http://www.ezmlm.org/archive/0.40/ezmlm-idx-0.40.tar.gz
# tar zxvf ezmlm-0.53.tar.gz
# tar zxvf ezmlm-idx-0.40.tar.gz
# cp -Rpf ezmlm-idx-0.40/* ezmlm-0.53/
# cd ezmlm-0.53
# patch < idx.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- ezmlm-warn.1 1998/02/17 00:32:45 1.1
|+++ ezmlm-warn.1 1998/12/21 04:35:16 1.5
--------------------------
・
・
・
(中略)
・
・
・
Patching file ezmlm-weed.1 using Plan A...
Hunk #1 succeeded at 7.
Hunk #2 succeeded at 35.
Hunk #3 succeeded at 113.
done
# make
( cat warn-auto.sh; echo CC='`head -1 conf-cc`'; echo LD='`head -1 conf-ld`' ) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
・
・
・
(中略)
・
・
・
cp -f ezmlmrc.en_US ezmlmrc
# make man
nroff -man ezmlm.5 > ezmlm.0
nroff -man ezmlm-gate.1 > ezmlm-gate.0
nroff -man ezmlm-idx.1 > ezmlm-idx.0
nroff -man ezmlm-get.1 > ezmlm-get.0
・
・
・
(中略)
・
・
・
nroff -man ezmlmrc.5 > ezmlmrc.0
nroff -man ezmlm-limit.1 > ezmlm-limit.0
# make setup
./compile install.c
・
・
・
(中略)
・
・
・
./install "`head -1 conf-bin`" < BIN
./install "`head -1 conf-man`" < MAN
本来は
/usr/local/bin/ezmlmのなかの
ezmlm-makeやらezmlm-subやらをつかって
一からメーリングリストを作るのですが、
これまた旧サーバで使用していたものがありますので
そのまま使います。
旧サーバの/var/ezmlmをそのまま持ってきました。
ここまでですべてのアプリケーションのインストールは完了。だと思う。
残りの作業は
・バックアップ&共有ディスクの増設+設定
・cronの編集、さざなみフォントインストール、DiCEの移動
7.18追記
さざなみフォント。
# tar jxvf sazanami-20040629.tar.bz2
# mkdir -p /usr/local/fonts/tryetype
# mv sazanami-*.ttf /usr/local/fonts/tryetype/
・コンテンツとデータの移動+Cバッチのリコンパイル
・LAN内で動作確認
・ルータの設定
で新サーバでの稼動開始となります。
ホントはカーネルの再構築とかいろいろやりたかったんだけど。
時間的余裕もなく。
連休中には新サーバでの稼動が開始します。たぶん。
パッチも当てます。
# fetch ftp://ftp.jp.qmail.org/qmail/qmail-1.03.tar.gz
# fetch http://mirror.averse.net/pub/FreeBSD/ports/local-distfiles/sada/qmail-date-localtime.patch.gz
# tar zxvf qmail-1.03.tar.gz
# gunzip qmail-date-localtime.patch.gz
# patch -p1 < ../qmail-date-localtime.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|This patch causes the various qmail programs to generate date stamps in
|the local timezone. I find GMT too annoying to convert from/to. I make
|no warranties that it will work in your timezone, however it works for me.
|
|--- qmail-1.01/date822fmt.c Tue Apr 15 15:05:23 1997
|+++ date822fmt.c Fri Apr 18 00:39:41 1997
--------------------------
Patching file date822fmt.c using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 13.
done
qmail用ユーザ、グループの作成。
# pw groupadd nofiles -g 3000
# pw groupadd qmail -g 3001
# pw useradd alias -g 3000 -u 3000 -d /var/qmail/alias
# pw useradd qmaild -g 3000 -u 3001 -d /nonexistent
# pw useradd qmaill -g 3000 -u 3002 -d /nonexistent
# pw useradd qmailp -g 3000 -u 3003 -d /nonexistent
# pw useradd qmailq -g 3001 -u 3004 -d /nonexistent
# pw useradd qmailr -g 3001 -u 3005 -d /nonexistent
# pw useradd qmails -g 3001 -u 3006 -d /nonexistent
ディレクトリの作成。
# mkdir /var/qmail
メイクします。
# make
( cat warn-auto.sh; echo CC='`head -1 conf-cc`'; echo LD='`head -1 conf-ld`' ) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
・
・
・
(中略)
・
・
・
cat binm3+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm3+df
chmod 755 binm3+df
# make setup
nroff -man qmail-local.8 > qmail-local.0
nroff -man qmail-lspawn.8 > qmail-lspawn.0
・
・
・
(中略)
・
・
・
./install
# make check
./instcheck
何も出なければOK。
# ./config-fast sundaybreeze.jp
Your fully qualified host name is sundaybreeze.jp.
Putting sundaybreeze.jp into control/me...
Putting sundaybreeze.jp into control/defaultdomain...
Putting sundaybreeze.jp into control/plusdomain...
Putting sundaybreeze.jp into control/locals...
Putting sundaybreeze.jp into control/rcpthosts...
Now qmail will refuse to accept SMTP messages except to sundaybreeze.jp.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!
結局旧サーバのファイルを使うので
あまり意味はなかったりする。
ということで、旧サーバから以下のファイルをそのまま使用。
・/var/qmail/rc → /usr/local/etc/rc.d/qmail.sh として使用
・/var/qmail/alias/.qmail*
・/var/qmail/control/*
・各ユーザのホームディレクトリにあるMaildir
一応配送テスト。
# echo "to: hotmailのアドレス" | /var/qmail/bin/qmail-inject
とりあえず届いたのでOK。
これでqmailは終わりです。
続いて、メーリングリストexmlmのインストール。
# fetch http://cr.yp.to/software/ezmlm-0.53.tar.gz
# fetch http://www.ezmlm.org/archive/0.40/ezmlm-idx-0.40.tar.gz
# tar zxvf ezmlm-0.53.tar.gz
# tar zxvf ezmlm-idx-0.40.tar.gz
# cp -Rpf ezmlm-idx-0.40/* ezmlm-0.53/
# cd ezmlm-0.53
# patch < idx.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- ezmlm-warn.1 1998/02/17 00:32:45 1.1
|+++ ezmlm-warn.1 1998/12/21 04:35:16 1.5
--------------------------
・
・
・
(中略)
・
・
・
Patching file ezmlm-weed.1 using Plan A...
Hunk #1 succeeded at 7.
Hunk #2 succeeded at 35.
Hunk #3 succeeded at 113.
done
# make
( cat warn-auto.sh; echo CC='`head -1 conf-cc`'; echo LD='`head -1 conf-ld`' ) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
・
・
・
(中略)
・
・
・
cp -f ezmlmrc.en_US ezmlmrc
# make man
nroff -man ezmlm.5 > ezmlm.0
nroff -man ezmlm-gate.1 > ezmlm-gate.0
nroff -man ezmlm-idx.1 > ezmlm-idx.0
nroff -man ezmlm-get.1 > ezmlm-get.0
・
・
・
(中略)
・
・
・
nroff -man ezmlmrc.5 > ezmlmrc.0
nroff -man ezmlm-limit.1 > ezmlm-limit.0
# make setup
./compile install.c
・
・
・
(中略)
・
・
・
./install "`head -1 conf-bin`" < BIN
./install "`head -1 conf-man`" < MAN
本来は
/usr/local/bin/ezmlmのなかの
ezmlm-makeやらezmlm-subやらをつかって
一からメーリングリストを作るのですが、
これまた旧サーバで使用していたものがありますので
そのまま使います。
旧サーバの/var/ezmlmをそのまま持ってきました。
ここまでですべてのアプリケーションのインストールは完了。だと思う。
残りの作業は
・バックアップ&共有ディスクの増設+設定
・cronの編集、さざなみフォントインストール、DiCEの移動
7.18追記
さざなみフォント。
# tar jxvf sazanami-20040629.tar.bz2
# mkdir -p /usr/local/fonts/tryetype
# mv sazanami-*.ttf /usr/local/fonts/tryetype/
・コンテンツとデータの移動+Cバッチのリコンパイル
・LAN内で動作確認
・ルータの設定
で新サーバでの稼動開始となります。
ホントはカーネルの再構築とかいろいろやりたかったんだけど。
時間的余裕もなく。
連休中には新サーバでの稼動が開始します。たぶん。
このネタへのコメント:
コメントはありません。