当前位置:Linux教程 - RedHat - RED HAT LINUX 7.0 下安装imap

RED HAT LINUX 7.0 下安装imap

  IMAP是支持POP3和IMAP两种协议的,在安装Linux时,如没有把它装好,可以通过以下方法安装。

  把Red Hat Linux7.0的光盘放入执行以下指令:

# mount /dev/dcrom /mnt/cdrom
# cd /mnt/cdrom/RedHat/RPMS
# rpm -i imap-4.7c2-12.i386.rpm
# cd
# umount /mnt/cdrom
# vi /etc/services ''把pop2、pop3、imap2前面的#号去掉
# cd /etc/xinetd.d

  分别生成imap、ipop3、ipop2三个文件,文件内容如下:

service imap
{

  socket_type = stream

  wait = no

  user = root

  server = /usr/sbin/imapd

  log_on_success += DURATION USERID

  log_on_failure += USERID

  disable = no

}

service pop2

{

  socket_type = stream

  wait = no

  user = root

  server = /usr/sbin/ipop2d

  log_on_success += USERID

  log_on_failure += USERID

  disable = no

}

service pop3

{

  socket_type = stream

  wait = no

  user = root

  server = /usr/sbin/ipop3d

  log_on_success += USERID

  log_on_failure += USERID

  disable = no

}



  执行如下指令,要求xinetd程序重新读取设定文件:

# /etc/rc.d/init.d/xinetd reload
# telnet localhost 143

  测试一下看看imap进程起了没有,正确的应该会出现下面的界面

trying 127.0.0.1...

Connected to localhost.

Escape character is ''^]''.

* OK localhost IMAP4rev1 v12.264 server ready