POPサーバを動かしてみる
Modified: 23 March 2002
RPMからインストールする
POPのパッケージは、"imap-2000c-15.i386.rpm"の中に入っており、iMAPのソフトと共に組み込まれています。
インストールは、以下のコマンドで行います。
# rpm -ivh imap-2000c-15.i386.rpm
Preparing... ########################################### [100%]
1:imap ########################################### [100%]
#確認は、以下のようにします。
# ls /usr/sbin/ipop3d
/usr/sbin/ipop3d
#”ipop3d” があればOKです。
"/etc/xinetd.d/ipop3"を変更する
"disable"を、"no" にします。
# default: off
# description: The POP3 service allows remote users to access their mail \
# using an POP3 client such as Netscape Communicator, mutt, \
# or fetchmail.
service pop3
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/ipop3d
log_on_success += USERID
log_on_failure += USERID
disable = no
}
hosts.allow を変更する
"/etc/hosts.allow" を変更する
hosts.allow を設定します
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL : 192.168.0.0/255.255.255.0 : allow
hosts.deny を設定する
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
ALL : ALL