# apt-get install fml # apt-get install fml-doc # apt-get install lha # apt-get install zipメーリングリストを作るfmlとユーザーを作るのが望ましいが、今回は いつも使っているshiojiでメーリングリストのメンテナンスもする ことにした。
# adduser shioji listあとはfmlの設定ということになるので、makefmlで新しいmlを作る。
$ makefml newml test-mlこれでtest-ml@shioji.jpのMLができる。
# cat /var/spool/ml/test-ml/aliases >> /etc/aliases # newaliasesヘッダの変更などはmakefml config test-mlで行う。
/var/spool/ml/test-ml/cfを編集。DOMAINをtouya.jpに変更し、 /var/spool/ml/test-ml/のディレクトリでmakeをしconfig.phを作る。
$ make config.phこれでconfig.phが書き換えられ、 test-ml@shioji.jpにmailを送るとreply-toはtest-ml@touya.jpになる。
次にpostfixのバーチャルドメインの変更。
/etc/postfix/virtualを編集。
/etc/aliasesに追加したtest-ml、test-ml-ctlなどを追加し、それぞれ
test-ml-touya、test-ml-ctl-touyaに配送するようにする。
test-ml@touya.jp test-ml-touya test-ml-ctl@touya.jp test-ml-ctl-touyapostmap hash:/etc/postfix/virtualを実行し変化を反映。
次に/etc/aliasesを変更
test-ml: :include…となっているのを、virtualに追加した、
test-ml-touya: :include…に変更する。
おなじように追加されたtest-ml-ctlなども変更する。
すべて変更し終わったらnewaliases。
helpやconfirmなどのfileにはもともとのtest-ml@shioji.jpとなっているので、 こっちは適宜修正。
これでtest-ml@touya.jp宛でうまく配送できるかチェックする。