popperの設定


popperをインストールする前にポッパーアカウントを作成しましょう。
ターゲットファイルは、「/etc/passwd」 です。
エディタで弄るのは、恐いので「vipw」を使いましょう。
rootでログインして・・・

>vipw
--------------------------------------------------------------------
root:*:0:0:Charlie &:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/nonexistent
operator:*:2:20:System &:/usr/guest/operator:/bin/csh
bin:*:3:7:Binaries Commands and Source,,,:/:/nonexistent
games:*:7:13:Games pseudo-user:/usr/games:/nonexistent
news:*:8:8:News Subsystem:/:/nonexistent
--------------------------------------------------------------------
適当な所に下記を追加しましょう。
pop:*:68:1:Post Office Owner:/nonexistent:/nonexistent


インストール作業です。
インターネットに接続されているマシンなら簡単ですが、接続されていない
場合は手動でftpしてきて、下記の様に。
場所
ftp.eos.hokudai.ac.jp  /pub/FreeBSD/distfiles/
ftp.jaist.ac.jp        /pub/FreeBSD/distfiles/
ftp.tokyonet.ad.jp     /pub/FreeBSD/distfiles/


ftpしてきた、ターゲット「qpopper2.3.tar.Z」を標準的な場所にコピ
ーしておきます。

>cp qpoper2.3.tar.Z /usr/ports/distfiles


インターネットに接続されていれば、普通は自動的にftpしてきてくれま
す。
それでは、makeしましょう。

>cd /usr/ports/mail/popper
>make
ここで、チェックサムやコンパイルを行って・・・終了です。
まず、Makefileを弄らなくてもokだと思います。
お次は、インストールです。
此れも簡単!

>make install

あっけないですね(爆)
最後はpopperの自動起動の為に、「inetd.conf」を書き換えましょう。

>cd /etc
>ee inetd.conf    もしくは
>vi inetd.conf

多分、記述は「#」 付きで存在すると思いますが、なかったら追加して下さ
い。
「pop3	stream	tcp	nowait	root	/usr/local/libexec/popper   
popper」
あれば、頭の「#」 を削除すればoKです。
後、「-t」オプションを付ければ、LOGをとります。
「pop3  stream  tcp     nowait  root    /usr/local/libexec/popper   
popper -t /var/log/pop.log」

さあ、終了しました。
再起動すれば、自動的にポッパーは動き出します。


パソコン研究室