| Last Update: "2009/04/11 08:46:04 makoto" ml を作るfml を make install したり pkg_add fml しても、そのままでは何も起きません。
メーリング・リストを運用するには「新しく ml を作る」という作業をします。
つまり、どのような名前(宛先)で、管理者は誰で、どのような人を初めに登録するか
という設定が必要です。
新しく ml を作るには、
pkg_info -D fml
 の (3) に書いてあるように
/usr/pkg/fml/makefml を使います。
makefml は引数を付けないでそのまま入力すると、help が表示されます。
その中の newml を使います。その使い方は、(3)に書いてある通りで、次のようにします。
この例では hello という名前で作っています。
 newmlfml は user fml で管理するように設置されますが、管理者が自分一人であれば、
次のようにして自分の持物にしておいた方が簡単です。
sudo chown -R my_login_name /var/spool/ml
以下は、その変更後の作業の様子です。 
ttyp0:username@fml 11:46:48/051113(~)> /usr/pkg/fml/makefml newml hello
   THIS HOST (fml.example.com) IS [powerpc-unknown-netbsd2.99.15]
05/11/13 11:46:52 makefml::newml hello  (username)
DO "newml" for hello mailing list.
---Creating hello mailing list
05/11/13 11:46:52 makefml::mkdir /var/spool/ml/hello (username)
   directory /var/spool/ml/hello is created as UID=2029
05/11/13 11:46:52 makefml::mkdir /var/spool/ml/hello/spool (username)
   directory /var/spool/ml/hello/spool is created as UID=2029
---Generting configuration examples.
   Generate template files in /var/spool/ml/hello/
         include include-ctl include-mead aliases Makefile crontab
         fmlwrapper.c fmlwrapper.h
   Generate qmail template files in /var/spool/ml/etc/qmail/alias/
         .qmail-hello .qmail-hello-ctl .qmail-hello-default
         .qmail-hello-admin .qmail-hello-request .qmail-owner-hello
         .qmail-owner-hello-ctl
   Update /var/spool/ml/etc/qmail/users/assign
   Generate qmail template files in /home/username
        You need the following rule in /var/qmail/control/virtualdomains
        to use /home/username/.qmail-ml:example.com-* files
        ml.example.com:username-ml.example.com
   Update /var/spool/ml/etc/crontab/username
   Create config.ph(/var/spool/ml/hello/config.ph):
        /var/spool/ml/hello/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/hello/aliases >> /etc/mail/aliases
        # newaliases
   FYI: See templates in '/var/spool/ml/hello/'
done.
ttyp0:username@fml 11:46:55/051113(~)> 
/etc/mail/aliases上の操作の記録の最後の部分にもありますが、
その後に、宛先の設定を 
sendmail が読む、/etc/mail/aliases に追加します。
(3) creating new Mailing List
   Assuming the name of Mailing List is 'hello', use
      /usr/pkg/fml/makefml newml hello
      su root
cat /var/spool/ml/hello/aliases >> /etc/mail/aliases
      newaliases
この例は ml の名前が hello の場合ですから、その文字は自分用
に変更したものを入力します。
ここで、/etc/mail/aliases の中に、次のような部分があって、
実際には your_login -> your_login@mail.server とする必要がある
場合も多いと思います。
 
hello-admin: your_login
owner-hello: your_login
owner-hello-ctl: your_login
(次) 
 Generic From のこと(等) 
   |